Merge "Fix Ansible warnings for use of until with {{ }}"

This commit is contained in:
Zuul 2018-06-05 17:55:55 +00:00 committed by Gerrit Code Review
commit 2d7a221fbf
5 changed files with 17 additions and 17 deletions

View File

@ -81,7 +81,7 @@
-m command
-a "ironic node-set-provision-state {% raw %}{{ inventory_hostname }}{% endraw %} deleted"'
register: delete_result
until: "{{ delete_result | success or 'is locked by host' in delete_result.stdout }}"
until: delete_result | success or 'is locked by host' in delete_result.stdout
retries: "{{ ironic_retries }}"
delay: "{{ ironic_retry_interval }}"
when: initial_provision_state != 'available'
@ -109,7 +109,7 @@
-a "openstack baremetal node show {% raw %}{{ inventory_hostname }}{% endraw %} -f value -c provision_state"'
register: show_result
# Wait until the node is no longer in one of the deleting states.
until: "{{ not show_result.stdout_lines[1:] | intersect(deleting_states) }}"
until: not show_result.stdout_lines[1:] | intersect(deleting_states)
retries: "{{ wait_available_timeout // wait_available_interval }}"
delay: "{{ wait_available_interval }}"
when:

View File

@ -74,7 +74,7 @@
-m command
-a "ironic node-set-provision-state {% raw %}{{ inventory_hostname }}{% endraw %} manage"'
register: manage_result
until: "{{ manage_result | success or 'is locked by host' in manage_result.stdout }}"
until: manage_result | success or 'is locked by host' in manage_result.stdout
retries: "{{ ironic_retries }}"
delay: "{{ ironic_retry_interval }}"
when: initial_provision_state != 'manageable'
@ -98,7 +98,7 @@
-m command
-a "ironic node-set-provision-state {% raw %}{{ inventory_hostname }}{% endraw %} inspect"'
register: provide_result
until: "{{ provide_result | success or 'is locked by host' in provide_result.stdout }}"
until: provide_result | success or 'is locked by host' in provide_result.stdout
retries: "{{ ironic_retries }}"
delay: "{{ ironic_retry_interval }}"
delegate_to: "{{ seed_host }}"
@ -124,7 +124,7 @@
-a "openstack baremetal node show {% raw %}{{ inventory_hostname }}{% endraw %} -f value -c provision_state"'
register: show_result
# Wait until the node is no longer in one of the inspecting states.
until: "{{ not show_result.stdout_lines[1:] | intersect(inspecting_states) }}"
until: not show_result.stdout_lines[1:] | intersect(inspecting_states)
retries: "{{ wait_inspected_timeout // wait_inspected_interval }}"
delay: "{{ wait_inspected_interval }}"
when: wait_inspected | bool

View File

@ -84,7 +84,7 @@
-m command
-a "ironic node-set-provision-state {% raw %}{{ inventory_hostname }}{% endraw %} manage"'
register: manage_result
until: "{{ manage_result | success or 'is locked by host' in manage_result.stdout }}"
until: manage_result | success or 'is locked by host' in manage_result.stdout
retries: "{{ ironic_retries }}"
delay: "{{ ironic_retry_interval }}"
when: initial_provision_state == 'enroll'
@ -108,7 +108,7 @@
-m command
-a "ironic node-set-provision-state {% raw %}{{ inventory_hostname }}{% endraw %} provide"'
register: provide_result
until: "{{ provide_result | success or 'is locked by host' in provide_result.stdout }}"
until: provide_result | success or 'is locked by host' in provide_result.stdout
retries: "{{ ironic_retries }}"
delay: "{{ ironic_retry_interval }}"
when: initial_provision_state in ['enroll', 'manageable']
@ -165,7 +165,7 @@
-a "openstack baremetal node show {% raw %}{{ inventory_hostname }}{% endraw %} -f value -c provision_state"'
register: show_result
# Wait until the node is no longer in one of the deploying states.
until: "{{ not show_result.stdout_lines[1:] | intersect(deploying_states) }}"
until: not show_result.stdout_lines[1:] | intersect(deploying_states)
retries: "{{ wait_active_timeout // wait_active_interval }}"
delay: "{{ wait_active_interval }}"
when:

View File

@ -30,7 +30,7 @@
raw: "racadm set BIOS.BiosBootSettings.BootMode {{ drac_boot_mode | lower | capitalize }}"
register: result
failed_when: "'ERROR' in result.stdout"
until: "{{ drac_boot_mode_busy_message not in result.stdout }}"
until: drac_boot_mode_busy_message not in result.stdout
retries: "{{ drac_boot_mode_retries }}"
delay: "{{ drac_boot_mode_interval }}"
@ -38,7 +38,7 @@
raw: "racadm jobqueue create BIOS.Setup.1-1 -s TIME_NOW"
register: result
failed_when: "'ERROR' in result.stdout"
until: "{{ drac_boot_mode_busy_message not in result.stdout }}"
until: drac_boot_mode_busy_message not in result.stdout
retries: "{{ drac_boot_mode_retries }}"
delay: "{{ drac_boot_mode_interval }}"
@ -57,7 +57,7 @@
raw: "racadm jobqueue view -i {{ drac_boot_mode_bios_job_id }}"
register: result
failed_when: "'ERROR' in result.stdout"
until: "{{ 'Status=Completed' in result.stdout }}"
until: "'Status=Completed' in result.stdout"
retries: "{{ drac_boot_mode_timeout // drac_boot_mode_interval }}"
delay: "{{ drac_boot_mode_interval }}"

View File

@ -83,7 +83,7 @@
when: item.current != item.required
register: result
failed_when: "'ERROR' in result.stdout"
until: "{{ drac_pxe_busy_message not in result.stdout }}"
until: drac_pxe_busy_message not in result.stdout
retries: "{{ drac_pxe_retries }}"
delay: "{{ drac_pxe_interval }}"
@ -93,7 +93,7 @@
when: item.current != item.required
register: result
failed_when: "'ERROR' in result.stdout"
until: "{{ drac_pxe_busy_message not in result.stdout }}"
until: drac_pxe_busy_message not in result.stdout
retries: "{{ drac_pxe_retries }}"
delay: "{{ drac_pxe_interval }}"
@ -128,7 +128,7 @@
raw: "racadm set BIOS.PxeDev1Settings.PxeDev1Interface NIC.Integrated.1-{{ drac_pxe_interface }}-1"
register: result
failed_when: "'ERROR' in result.stdout"
until: "{{ drac_pxe_busy_message not in result.stdout }}"
until: drac_pxe_busy_message not in result.stdout
retries: "{{ drac_pxe_retries }}"
delay: "{{ drac_pxe_interval }}"
when: current_pxe_interface != required_pxe_interface
@ -144,7 +144,7 @@
raw: "racadm set BIOS.BiosBootSettings.BootSeq {{ drac_pxe_bios_boot_sequence }}"
register: result
failed_when: "'ERROR' in result.stdout"
until: "{{ drac_pxe_busy_message not in result.stdout }}"
until: drac_pxe_busy_message not in result.stdout
retries: "{{ drac_pxe_retries }}"
delay: "{{ drac_pxe_interval }}"
when: current_boot_sequence != required_boot_sequence
@ -158,7 +158,7 @@
raw: "racadm jobqueue create BIOS.Setup.1-1 -s TIME_NOW"
register: result
failed_when: "'ERROR' in result.stdout"
until: "{{ drac_pxe_busy_message not in result.stdout }}"
until: drac_pxe_busy_message not in result.stdout
retries: "{{ drac_pxe_retries }}"
delay: "{{ drac_pxe_interval }}"
when: bios_job_required
@ -181,6 +181,6 @@
when: job_ids | length > 0
register: result
failed_when: "'ERROR' in result.stdout"
until: "{{ 'Status=Completed' in result.stdout }}"
until: "'Status=Completed' in result.stdout"
retries: "{{ drac_pxe_timeout // drac_pxe_interval }}"
delay: "{{ drac_pxe_interval }}"