nginx/tasks/purge.yml

22 lines
396 B
YAML

---
- name: Purge Nginx
apt:
state: absent
purge: true
name:
- nginx
- nginx-common
- nginx-core
- name: Delete Nginx configuration
file:
state: absent
path: '{{ nginx__dir_etc }}'
- name: Delete maintenance files
file:
state: absent
path: '{{ nginx__dir_www_html }}/{{ item }}'
with_items:
- 'maintenance.html'
- 'maintenance.jpg'