nginx/tasks/purge.yml

27 lines
507 B
YAML
Raw Permalink Normal View History

2021-09-18 19:37:57 +00:00
---
- name: Purge Nginx
apt:
state: absent
purge: true
name:
2023-08-29 18:56:08 +00:00
- libnginx-mod-http-geoip
2023-08-30 12:12:15 +00:00
- libnginx-mod-http-geoip2
2024-01-04 02:49:38 +00:00
- libnginx-mod-stream
2021-09-18 19:37:57 +00:00
- nginx
- nginx-common
- nginx-core
2023-08-29 18:56:08 +00:00
- nginx-full
2021-09-18 19:37:57 +00:00
- 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'