mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
pbx/tasks/enable-or-disable.yml: "Stop & Disable" apache2 (etc)
This commit is contained in:
parent
d794a267b3
commit
9d57783888
1 changed files with 3 additions and 3 deletions
|
@ -25,16 +25,16 @@
|
|||
command: a2dissite freepbx.conf
|
||||
when: not pbx_enabled
|
||||
|
||||
- name: Restart and Enable Apache service ({{ apache_service }}) if pbx_enabled
|
||||
- name: Restart & Enable '{{ apache_service }}' systemd 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
|
||||
- name: Stop & Disable '{{ apache_service }}' systemd service, if not pbx_enabled
|
||||
systemd:
|
||||
name: "{{ apache_service }}" # apache2
|
||||
name: "{{ apache_service }}"
|
||||
state: stopped
|
||||
enabled: no
|
||||
when: not pbx_enabled
|
||||
|
|
Loading…
Reference in a new issue