nginx/tasks/purge.yml

23 lines
395 B
YAML
Raw Normal View History

2021-09-18 19:37:57 +00:00
---
- name: Purge Nginx
apt:
state: absent
purge: true
name:
- nginx
- nginx-common
- nginx-core
- name: Delete Nginx configuration
file:
state: absent
2023-05-29 12:30:47 +00:00
path: '{{ nginx__dir_etc }}'
2023-05-29 13:14:15 +00:00
2023-08-17 10:59:09 +00:00
- name: Delete additional files
2023-05-29 13:14:15 +00:00
file:
state: absent
path: '{{ nginx__dir_www_html }}/{{ item }}'
with_items:
- 'maintenance.html'
- 'maintenance.jpg'