Commit d2e8a983 authored by nanahira's avatar nanahira

fix

parent 239e0379
...@@ -100,13 +100,13 @@ ...@@ -100,13 +100,13 @@
vars: vars:
conn: '{{item}}' conn: '{{item}}'
with_items: '{{ connections }}' with_items: '{{ connections }}'
when: "not noUpdateLinks and item.protocol == 'null' and not item.noUpdate" when: "not noUpdateLinks and item.protocol is defined and item.protocol == 'null' and not item.noUpdate"
- name: 'loop through list from a variable' - name: 'loop through list from a variable'
include_tasks: 'protocols/{{item.protocol}}/configure.yaml' include_tasks: 'protocols/{{item.protocol}}/configure.yaml'
vars: vars:
conn: '{{item}}' conn: '{{item}}'
with_items: '{{ connections }}' with_items: '{{ connections }}'
when: "not noUpdateLinks and item.protocol != 'null' and not item.noUpdate" when: "not noUpdateLinks and item.protocol is defined and item.protocol != 'null' and not item.noUpdate"
# end # end
- name: services conf - name: services conf
copy: copy:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment