Skip to content

Commit

Permalink
Correct runtime error during cleanup.
Browse files Browse the repository at this point in the history
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'"}
  • Loading branch information
pecastro committed May 29, 2024
1 parent dcff52f commit d671ed3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/config/cleanup-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
ansible.builtin.file:
path: "{{ item }}"
state: absent
loop: "{{ nginx_config_files['results'] | map(attribute='files') | sum(start=[]) | map(attribute='path') | list + nginx_config_cleanup_files | default('') | list }}"
loop: "{{ nginx_config_files['results'] | default('') | map(attribute='files') | sum(start=[]) | map(attribute='path') | list + nginx_config_cleanup_files | default('') | list }}"
notify: (Handler - NGINX Config) Run NGINX

0 comments on commit d671ed3

Please sign in to comment.