mirror of
https://github.com/ansible/awx.git
synced 2026-03-02 09:18:48 -03:30
Fix playbook error when files do not exist.
I was seeing "Failed to template loop_control.label: 'dict object' has no attribute 'path'"
This commit is contained in:
@@ -27,7 +27,7 @@
|
|||||||
when: not lookup('vars', item.item, default='') and not item.stat.exists
|
when: not lookup('vars', item.item, default='') and not item.stat.exists
|
||||||
loop: "{{ secrets.results }}"
|
loop: "{{ secrets.results }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: '{{ item.stat.path }}'
|
label: '{{ item.item }}'
|
||||||
|
|
||||||
- name: Include generated secrets unless they are explicitly passed in
|
- name: Include generated secrets unless they are explicitly passed in
|
||||||
include_vars: "{{ sources_dest }}/secrets/{{ item.item }}.yml"
|
include_vars: "{{ sources_dest }}/secrets/{{ item.item }}.yml"
|
||||||
|
|||||||
Reference in New Issue
Block a user