nginx/tasks/uninstall-nginx-Debian.yml

43 lines
760 B
YAML

---
- name: "Remove Nginx"
apt:
pkg: "{{item}}"
state: absent
purge: yes
force: yes
autoremove: yes
autoclean: yes
with_items:
- nginx-full
- libnginx-mod-http-headers-more-filter
- libnginx-mod-http-cache-purge
- libnginx-mod-http-uploadprogress
- libnginx-mod-stream
- python
- python-dev
- gcc
- dialog
- libaugeas0
- augeas-lenses
- libssl-dev
- libffi-dev
- ca-certificates
- python-pip
- python-virtualenv
- git
- libpython-dev
- zlib1g-dev
tags:
- uninstall
- name: "Remove directory"
file:
state: directory
path: "{{ item }}"
with_items:
- "/etc/nginx"
- "/var/cache/nginx"
- "/var/log/nginx"
tags:
- uninstall