Remove neutron agent task fails to loop through multiple agents.
Change-Id: I58150d2607a37fcb3d6d7a52ec4d7a88177f676a
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user