Purge Nginx
This commit is contained in:
parent
2d83a2aa36
commit
d701755996
|
@ -11,6 +11,8 @@
|
||||||
when: common__apache__state == 'install'
|
when: common__apache__state == 'install'
|
||||||
- meta: flush_handlers
|
- meta: flush_handlers
|
||||||
|
|
||||||
|
- include_tasks: nginx/purge.yml
|
||||||
|
when: common__nginx__state == 'purge'
|
||||||
- include_tasks: nginx/install.yml
|
- include_tasks: nginx/install.yml
|
||||||
when: common__nginx__state == 'install'
|
when: common__nginx__state == 'install'
|
||||||
- meta: flush_handlers
|
- meta: flush_handlers
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
---
|
||||||
|
- name: Purge Nginx
|
||||||
|
apt:
|
||||||
|
name: nginx
|
||||||
|
state: absent
|
||||||
|
purge: true
|
||||||
|
|
||||||
|
- name: Delete Nginx configuration
|
||||||
|
file:
|
||||||
|
state: absent
|
||||||
|
path: '{{ common__nginx__conf_dir }}'
|
Loading…
Reference in New Issue