1
0
Fork 0
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:
Jerry Vonau 2021-08-11 10:07:35 -05:00
parent fbf714154f
commit 38ff8a99af

View file

@ -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