Remove neutron agent task fails to loop through multiple agents.
Change-Id: I58150d2607a37fcb3d6d7a52ec4d7a88177f676a
This commit is contained in:
parent
bc8a440d42
commit
47cde0a9c9
@ -46,7 +46,8 @@
|
||||
- name: Remove neutron agent service on {{ host_to_be_removed }}
|
||||
shell: |
|
||||
. {{ 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
|
||||
changed_when: neutron_delete_results.rc == 0
|
||||
failed_when: neutron_delete_results.rc > 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user