|
18 | 18 |
|
19 | 19 | - set_fact: |
20 | 20 | already_installed: "{{ already_installed.stat.exists }}" |
| 21 | + |
| 22 | + - set_fact: |
| 23 | + wsgi_package_name: "{{ wsgi_package_name }}-py3" |
| 24 | + when: | |
| 25 | + (ansible_facts['distribution_release']|lower == debian_testing_release_name) |
| 26 | + or |
| 27 | + (ansible_facts['distribution']|lower == 'debian' and ansible_facts['distribution_major_version']|int is version('10', '>')) |
| 28 | + or |
| 29 | + (ansible_facts['distribution']|lower == 'ubuntu' and ansible_facts['distribution_major_version']|int is version('20', '>')) |
21 | 30 | |
22 | 31 | - debug: |
23 | 32 | msg: "installation_mode={{ installation_mode }}, already_installed={{ already_installed }}" |
|
83 | 92 | ssh_key_file: .ssh/id_rsa |
84 | 93 | become: true |
85 | 94 |
|
| 95 | + - name: global apache config |
| 96 | + include_tasks: global-apache2-config.yml |
| 97 | + # vars: |
| 98 | + # apache2_required_modules: "{{ apache2_required_modules | default([]) }}" |
| 99 | + # webserver_package_name: "{{ webserver_package_name | default('apache2') }}" |
| 100 | + # http_conf_dir: "{{ http_conf_dir | default('/etc/apache2/sites-available') }}" |
| 101 | + # product_name: "{{ product_name }}" |
| 102 | + # product_version: "{{ product_version }}" |
| 103 | + # api_web_port: "{{ api_web_port | default(8080) }}" |
| 104 | + # server_admin: "{{ server_admin | default('webmaster@localhost') }}" |
| 105 | + # apache_global_settings_file: "{{ apache_global_settings_file | default('/etc/apache2/conf-available/security.conf') }}" |
| 106 | + when: "inventory_hostname in groups['frontends'] or inventory_hostname in groups['middlewareserver'] or inventory_hostname in groups['apiserver']" |
| 107 | + |
86 | 108 | - name: replace fwo web sites with maintenance site |
87 | 109 | include_tasks: maintenance-site.yml |
88 | 110 | when: "installation_mode == 'upgrade' and inventory_hostname in groups['frontends']" |
|
249 | 271 | become: true |
250 | 272 | when: not stat_result.stat.exists |
251 | 273 |
|
252 | | - - set_fact: |
253 | | - wsgi_package_name: "{{ wsgi_package_name }}-py3" |
254 | | - when: | |
255 | | - (ansible_facts['distribution_release']|lower == debian_testing_release_name) |
256 | | - or |
257 | | - (ansible_facts['distribution']|lower == 'debian' and ansible_facts['distribution_major_version']|int is version('10', '>')) |
258 | | - or |
259 | | - (ansible_facts['distribution']|lower == 'ubuntu' and ansible_facts['distribution_major_version']|int is version('20', '>')) |
260 | | -
|
261 | 274 | - name: copy iso.conf to target for legacy importer support only |
262 | 275 | template: |
263 | 276 | src: iso.conf.j2 |
|
0 commit comments