2020-09-15 21:27:06 +02:00
|
|
|
## DEPRECATED -- Use nginxinc.nginx_config role instead (https://github.com/nginxinc/ansible-role-nginx-config)
|
2019-02-15 15:51:09 +01:00
|
|
|
---
|
2020-09-15 21:27:06 +02:00
|
|
|
- name: "Deprecation warning"
|
|
|
|
debug:
|
|
|
|
msg: "DEPRECATED TASKS -- Use nginxinc.nginx_config role instead (https://github.com/nginxinc/ansible-role-nginx-config)"
|
|
|
|
|
|
|
|
- name: "(DEPRECATED) Find NGINX Configuration Files"
|
2020-06-12 23:42:14 +02:00
|
|
|
find:
|
|
|
|
paths: "{{ item.directory }}"
|
|
|
|
patterns: "*.conf"
|
|
|
|
recurse: "{{ item.recurse | default(false) }}"
|
2020-07-27 23:33:56 +02:00
|
|
|
loop: "{{ nginx_cleanup_config_paths }}"
|
|
|
|
when: nginx_cleanup_config_paths is defined
|
2020-06-12 23:42:14 +02:00
|
|
|
register: nginx_config_files
|
|
|
|
|
2020-09-15 21:27:06 +02:00
|
|
|
- name: "(DEPRECATED) Remove NGINX Configuration Files"
|
2019-02-15 15:51:09 +01:00
|
|
|
file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: absent
|
2020-09-18 15:09:59 +02:00
|
|
|
loop: "{{ nginx_config_files.results | default('') | map(attribute='files') | sum(start=[]) | map(attribute='path') | list
|
|
|
|
+ nginx_cleanup_config_files | default('') }}"
|