ansible-role-nginx/tasks/config/cleanup-config.yml

22 lines
850 B
YAML
Raw Normal View History

2020-09-15 21:27:06 +02:00
## DEPRECATED -- Use nginxinc.nginx_config role instead (https://github.com/nginxinc/ansible-role-nginx-config)
---
2020-09-19 17:32:17 +02:00
- name: Deprecation warning
2020-09-15 21:27:06 +02:00
debug:
2020-09-19 17:32:17 +02:00
msg: DEPRECATED TASKS -- Use nginxinc.nginx_config role instead (https://github.com/nginxinc/ansible-role-nginx-config)
2020-09-15 21:27:06 +02:00
2020-09-19 17:32:17 +02:00
- 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) }}"
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-19 17:32:17 +02:00
- name: (DEPRECATED) Remove NGINX Configuration Files
file:
path: "{{ item }}"
state: absent
loop: "{{ nginx_config_files.results | default('') | map(attribute='files') | sum(start=[]) | map(attribute='path') | list
+ nginx_cleanup_config_files | default('') }}"