mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
pbx - Enable apache when installed
This commit is contained in:
parent
fbf714154f
commit
38ff8a99af
1 changed files with 10 additions and 1 deletions
|
@ -25,10 +25,19 @@
|
|||
command: a2dissite freepbx.conf
|
||||
when: not pbx_enabled
|
||||
|
||||
- name: Restart Apache service ({{ apache_service }})
|
||||
- name: Restart and Enable Apache service ({{ apache_service }}) if pbx_enabled
|
||||
systemd:
|
||||
name: "{{ apache_service }}" # apache2
|
||||
state: restarted
|
||||
enabled: yes
|
||||
when: pbx_enabled
|
||||
|
||||
- name: Stop and Disable Apache service ({{ apache_service }}) if not pbx_enabled
|
||||
systemd:
|
||||
name: "{{ apache_service }}" # apache2
|
||||
state: stopped
|
||||
enabled: no
|
||||
when: not pbx_enabled
|
||||
|
||||
when: not pbx_try_nginx
|
||||
|
||||
|
|
Loading…
Reference in a new issue