Purge Apache
This commit is contained in:
parent
9b07acfdd4
commit
2d83a2aa36
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
- name: Purge Apache
|
||||
apt:
|
||||
name: apache2
|
||||
state: absent
|
||||
purge: true
|
||||
|
||||
- name: Delete Apache configuration
|
||||
file:
|
||||
state: absent
|
||||
path: '{{ common__apache__conf_dir }}'
|
|
@ -5,6 +5,8 @@
|
|||
- include_tasks: iptables.yml
|
||||
- include_tasks: certbot.yml
|
||||
|
||||
- include_tasks: apache/purge.yml
|
||||
when: common__apache__state == 'purge'
|
||||
- include_tasks: apache/install.yml
|
||||
when: common__apache__state == 'install'
|
||||
- meta: flush_handlers
|
||||
|
|
Loading…
Reference in New Issue