Skip to content

Commit d671ed3

Browse files
committed
Correct runtime error during cleanup.
TASK [ansible-role-nginx-config : Remove NGINX config files] ******************************************************************************************************************************************************* Monday 27 May 2024 11:53:13 +0100 (0:00:00.029) 0:00:14.736 ************ fatal: [localhost]: FAILED! => {"msg": "'dict object' has no attribute 'results'. 'dict object' has no attribute 'results'"}
1 parent dcff52f commit d671ed3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/config/cleanup-config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
ansible.builtin.file:
1313
path: "{{ item }}"
1414
state: absent
15-
loop: "{{ nginx_config_files['results'] | map(attribute='files') | sum(start=[]) | map(attribute='path') | list + nginx_config_cleanup_files | default('') | list }}"
15+
loop: "{{ nginx_config_files['results'] | default('') | map(attribute='files') | sum(start=[]) | map(attribute='path') | list + nginx_config_cleanup_files | default('') | list }}"
1616
notify: (Handler - NGINX Config) Run NGINX

0 commit comments

Comments
 (0)