Run taks only when host_var is enabled
This commit is contained in:
parent
6ff025d4b7
commit
ef238e83df
1 changed files with 3 additions and 3 deletions
|
@ -18,7 +18,7 @@
|
||||||
# Most of our apache2 instances are currently running behind public reverse proxies.
|
# Most of our apache2 instances are currently running behind public reverse proxies.
|
||||||
# Thus, they do not offer HTTPS and do not need DH parameters.
|
# Thus, they do not offer HTTPS and do not need DH parameters.
|
||||||
# The only possible exceptions are external hosts (e.g. orwell).
|
# The only possible exceptions are external hosts (e.g. orwell).
|
||||||
when: "'extern_hosts' in group_names"
|
when: apache.is_proxy is defined and apache.is_proxy
|
||||||
|
|
||||||
- name: "Configuration | Copy misc configuration files"
|
- name: "Configuration | Copy misc configuration files"
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: present
|
state: present
|
||||||
notify: reload apache2
|
notify: reload apache2
|
||||||
when: "'extern_hosts' in group_names"
|
when: apache.is_proxy is defined and apache.is_proxy
|
||||||
loop:
|
loop:
|
||||||
- headers
|
- headers
|
||||||
- mpm_event
|
- mpm_event
|
||||||
|
@ -55,7 +55,7 @@
|
||||||
cmd: "a2enconf {{ item }}"
|
cmd: "a2enconf {{ item }}"
|
||||||
creates: "/etc/apache2/conf-enabled/{{ item }}"
|
creates: "/etc/apache2/conf-enabled/{{ item }}"
|
||||||
notify: reload apache2
|
notify: reload apache2
|
||||||
when: "'extern_hosts' in group_names"
|
when: apache.is_proxy is defined and apache.is_proxy
|
||||||
loop:
|
loop:
|
||||||
- add-headers.conf
|
- add-headers.conf
|
||||||
- letsencrypt.conf
|
- letsencrypt.conf
|
||||||
|
|
Loading…
Reference in a new issue