2019-02-15 15:51:09 +01:00
|
|
|
---
|
2020-06-12 23:42:14 +02:00
|
|
|
- name: "(Setup: All OSs) Find NGINX Configuration Files"
|
|
|
|
find:
|
|
|
|
paths: "{{ item.directory }}"
|
|
|
|
patterns: "*.conf"
|
|
|
|
recurse: "{{ item.recurse | default(false) }}"
|
|
|
|
loop: "{{ nginx_cleanup_config_path }}"
|
|
|
|
register: nginx_config_files
|
|
|
|
|
|
|
|
- name: "(Setup: All OSs) Remove NGINX Configuration Files"
|
2019-02-15 15:51:09 +01:00
|
|
|
file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: absent
|
2020-06-12 23:42:14 +02:00
|
|
|
loop: "{{ nginx_config_files.results | map(attribute='files') | sum(start=[]) | map(attribute='path') | list }}"
|