mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
use pbx_apache_installed in place of pbx_use_apache2
This commit is contained in:
parent
912fe4c610
commit
1fee1c6dd6
1 changed files with 3 additions and 3 deletions
|
@ -9,7 +9,7 @@
|
|||
file: # As 'a2dissite freepbx.conf' might not be installed
|
||||
path: /etc/{{ apache_service }}/sites-enabled/freepbx.conf # apache2
|
||||
state: absent
|
||||
when: pbx_apache_installed and not pbx_enabled
|
||||
when: pbx_apache_installed is defined and not pbx_enabled
|
||||
|
||||
|
||||
- name: "ENACT ABOVE SETTING FOR APACHE - 'pbx_use_apache: False' might arise later, so best ALWAYS run..."
|
||||
|
@ -21,7 +21,7 @@
|
|||
name: "{{ apache_service }}" # apache2
|
||||
state: restarted
|
||||
enabled: yes
|
||||
when: pbx_apache_installed and pbx_enabled
|
||||
when: pbx_apache_installed is defined and pbx_enabled
|
||||
|
||||
- name: OR ELSE - Stop & Disable '{{ apache_service }}' systemd service - if not (pbx_use_apache and pbx_enabled)
|
||||
systemd:
|
||||
|
@ -29,7 +29,7 @@
|
|||
name: "{{ apache_service }}"
|
||||
state: stopped
|
||||
enabled: no
|
||||
when: pbx_apache_installed and not pbx_enabled
|
||||
when: pbx_apache_installed is defined and not pbx_enabled
|
||||
|
||||
- name: Open-or-Close Asterix ports (including Apache port {{ pbx_http_port }}) in iptables firewall, depending on pbx_enabled [{{ pbx_enabled }}] in local_vars.yml - in support of './runrole pbx'
|
||||
command: /usr/bin/iiab-gen-iptables
|
||||
|
|
Loading…
Add table
Reference in a new issue