Merge "Remove neutron agent task fails to loop through multiple agents."
This commit is contained in:
commit
38dbe804a9
@ -46,7 +46,8 @@
|
|||||||
- name: Remove neutron agent service on {{ host_to_be_removed }}
|
- name: Remove neutron agent service on {{ host_to_be_removed }}
|
||||||
shell: |
|
shell: |
|
||||||
. {{ ansible_env.HOME }}/openrc
|
. {{ ansible_env.HOME }}/openrc
|
||||||
neutron agent-delete {{ neutron_agent_list_results.stdout }}
|
neutron agent-delete {{ item }}
|
||||||
|
with_items: "{{ neutron_agent_list_results.stdout_lines }}"
|
||||||
register: neutron_delete_results
|
register: neutron_delete_results
|
||||||
changed_when: neutron_delete_results.rc == 0
|
changed_when: neutron_delete_results.rc == 0
|
||||||
failed_when: neutron_delete_results.rc > 0
|
failed_when: neutron_delete_results.rc > 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user