Purge Nginx
This commit is contained in:
parent
2d83a2aa36
commit
d701755996
2 changed files with 13 additions and 0 deletions
|
@ -11,6 +11,8 @@
|
|||
when: common__apache__state == 'install'
|
||||
- meta: flush_handlers
|
||||
|
||||
- include_tasks: nginx/purge.yml
|
||||
when: common__nginx__state == 'purge'
|
||||
- include_tasks: nginx/install.yml
|
||||
when: common__nginx__state == 'install'
|
||||
- meta: flush_handlers
|
||||
|
|
11
tasks/nginx/purge.yml
Normal file
11
tasks/nginx/purge.yml
Normal file
|
@ -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 a new issue