Merge "Fix Ansible warnings for use of until with {{ }}"
This commit is contained in:
commit
2d7a221fbf
@ -81,7 +81,7 @@
|
|||||||
-m command
|
-m command
|
||||||
-a "ironic node-set-provision-state {% raw %}{{ inventory_hostname }}{% endraw %} deleted"'
|
-a "ironic node-set-provision-state {% raw %}{{ inventory_hostname }}{% endraw %} deleted"'
|
||||||
register: delete_result
|
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 }}"
|
retries: "{{ ironic_retries }}"
|
||||||
delay: "{{ ironic_retry_interval }}"
|
delay: "{{ ironic_retry_interval }}"
|
||||||
when: initial_provision_state != 'available'
|
when: initial_provision_state != 'available'
|
||||||
@ -109,7 +109,7 @@
|
|||||||
-a "openstack baremetal node show {% raw %}{{ inventory_hostname }}{% endraw %} -f value -c provision_state"'
|
-a "openstack baremetal node show {% raw %}{{ inventory_hostname }}{% endraw %} -f value -c provision_state"'
|
||||||
register: show_result
|
register: show_result
|
||||||
# Wait until the node is no longer in one of the deleting states.
|
# 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 }}"
|
retries: "{{ wait_available_timeout // wait_available_interval }}"
|
||||||
delay: "{{ wait_available_interval }}"
|
delay: "{{ wait_available_interval }}"
|
||||||
when:
|
when:
|
||||||
|
@ -74,7 +74,7 @@
|
|||||||
-m command
|
-m command
|
||||||
-a "ironic node-set-provision-state {% raw %}{{ inventory_hostname }}{% endraw %} manage"'
|
-a "ironic node-set-provision-state {% raw %}{{ inventory_hostname }}{% endraw %} manage"'
|
||||||
register: manage_result
|
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 }}"
|
retries: "{{ ironic_retries }}"
|
||||||
delay: "{{ ironic_retry_interval }}"
|
delay: "{{ ironic_retry_interval }}"
|
||||||
when: initial_provision_state != 'manageable'
|
when: initial_provision_state != 'manageable'
|
||||||
@ -98,7 +98,7 @@
|
|||||||
-m command
|
-m command
|
||||||
-a "ironic node-set-provision-state {% raw %}{{ inventory_hostname }}{% endraw %} inspect"'
|
-a "ironic node-set-provision-state {% raw %}{{ inventory_hostname }}{% endraw %} inspect"'
|
||||||
register: provide_result
|
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 }}"
|
retries: "{{ ironic_retries }}"
|
||||||
delay: "{{ ironic_retry_interval }}"
|
delay: "{{ ironic_retry_interval }}"
|
||||||
delegate_to: "{{ seed_host }}"
|
delegate_to: "{{ seed_host }}"
|
||||||
@ -124,7 +124,7 @@
|
|||||||
-a "openstack baremetal node show {% raw %}{{ inventory_hostname }}{% endraw %} -f value -c provision_state"'
|
-a "openstack baremetal node show {% raw %}{{ inventory_hostname }}{% endraw %} -f value -c provision_state"'
|
||||||
register: show_result
|
register: show_result
|
||||||
# Wait until the node is no longer in one of the inspecting states.
|
# 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 }}"
|
retries: "{{ wait_inspected_timeout // wait_inspected_interval }}"
|
||||||
delay: "{{ wait_inspected_interval }}"
|
delay: "{{ wait_inspected_interval }}"
|
||||||
when: wait_inspected | bool
|
when: wait_inspected | bool
|
||||||
|
@ -84,7 +84,7 @@
|
|||||||
-m command
|
-m command
|
||||||
-a "ironic node-set-provision-state {% raw %}{{ inventory_hostname }}{% endraw %} manage"'
|
-a "ironic node-set-provision-state {% raw %}{{ inventory_hostname }}{% endraw %} manage"'
|
||||||
register: manage_result
|
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 }}"
|
retries: "{{ ironic_retries }}"
|
||||||
delay: "{{ ironic_retry_interval }}"
|
delay: "{{ ironic_retry_interval }}"
|
||||||
when: initial_provision_state == 'enroll'
|
when: initial_provision_state == 'enroll'
|
||||||
@ -108,7 +108,7 @@
|
|||||||
-m command
|
-m command
|
||||||
-a "ironic node-set-provision-state {% raw %}{{ inventory_hostname }}{% endraw %} provide"'
|
-a "ironic node-set-provision-state {% raw %}{{ inventory_hostname }}{% endraw %} provide"'
|
||||||
register: provide_result
|
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 }}"
|
retries: "{{ ironic_retries }}"
|
||||||
delay: "{{ ironic_retry_interval }}"
|
delay: "{{ ironic_retry_interval }}"
|
||||||
when: initial_provision_state in ['enroll', 'manageable']
|
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"'
|
-a "openstack baremetal node show {% raw %}{{ inventory_hostname }}{% endraw %} -f value -c provision_state"'
|
||||||
register: show_result
|
register: show_result
|
||||||
# Wait until the node is no longer in one of the deploying states.
|
# 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 }}"
|
retries: "{{ wait_active_timeout // wait_active_interval }}"
|
||||||
delay: "{{ wait_active_interval }}"
|
delay: "{{ wait_active_interval }}"
|
||||||
when:
|
when:
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
raw: "racadm set BIOS.BiosBootSettings.BootMode {{ drac_boot_mode | lower | capitalize }}"
|
raw: "racadm set BIOS.BiosBootSettings.BootMode {{ drac_boot_mode | lower | capitalize }}"
|
||||||
register: result
|
register: result
|
||||||
failed_when: "'ERROR' in result.stdout"
|
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 }}"
|
retries: "{{ drac_boot_mode_retries }}"
|
||||||
delay: "{{ drac_boot_mode_interval }}"
|
delay: "{{ drac_boot_mode_interval }}"
|
||||||
|
|
||||||
@ -38,7 +38,7 @@
|
|||||||
raw: "racadm jobqueue create BIOS.Setup.1-1 -s TIME_NOW"
|
raw: "racadm jobqueue create BIOS.Setup.1-1 -s TIME_NOW"
|
||||||
register: result
|
register: result
|
||||||
failed_when: "'ERROR' in result.stdout"
|
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 }}"
|
retries: "{{ drac_boot_mode_retries }}"
|
||||||
delay: "{{ drac_boot_mode_interval }}"
|
delay: "{{ drac_boot_mode_interval }}"
|
||||||
|
|
||||||
@ -57,7 +57,7 @@
|
|||||||
raw: "racadm jobqueue view -i {{ drac_boot_mode_bios_job_id }}"
|
raw: "racadm jobqueue view -i {{ drac_boot_mode_bios_job_id }}"
|
||||||
register: result
|
register: result
|
||||||
failed_when: "'ERROR' in result.stdout"
|
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 }}"
|
retries: "{{ drac_boot_mode_timeout // drac_boot_mode_interval }}"
|
||||||
delay: "{{ drac_boot_mode_interval }}"
|
delay: "{{ drac_boot_mode_interval }}"
|
||||||
|
|
||||||
|
@ -83,7 +83,7 @@
|
|||||||
when: item.current != item.required
|
when: item.current != item.required
|
||||||
register: result
|
register: result
|
||||||
failed_when: "'ERROR' in result.stdout"
|
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 }}"
|
retries: "{{ drac_pxe_retries }}"
|
||||||
delay: "{{ drac_pxe_interval }}"
|
delay: "{{ drac_pxe_interval }}"
|
||||||
|
|
||||||
@ -93,7 +93,7 @@
|
|||||||
when: item.current != item.required
|
when: item.current != item.required
|
||||||
register: result
|
register: result
|
||||||
failed_when: "'ERROR' in result.stdout"
|
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 }}"
|
retries: "{{ drac_pxe_retries }}"
|
||||||
delay: "{{ drac_pxe_interval }}"
|
delay: "{{ drac_pxe_interval }}"
|
||||||
|
|
||||||
@ -128,7 +128,7 @@
|
|||||||
raw: "racadm set BIOS.PxeDev1Settings.PxeDev1Interface NIC.Integrated.1-{{ drac_pxe_interface }}-1"
|
raw: "racadm set BIOS.PxeDev1Settings.PxeDev1Interface NIC.Integrated.1-{{ drac_pxe_interface }}-1"
|
||||||
register: result
|
register: result
|
||||||
failed_when: "'ERROR' in result.stdout"
|
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 }}"
|
retries: "{{ drac_pxe_retries }}"
|
||||||
delay: "{{ drac_pxe_interval }}"
|
delay: "{{ drac_pxe_interval }}"
|
||||||
when: current_pxe_interface != required_pxe_interface
|
when: current_pxe_interface != required_pxe_interface
|
||||||
@ -144,7 +144,7 @@
|
|||||||
raw: "racadm set BIOS.BiosBootSettings.BootSeq {{ drac_pxe_bios_boot_sequence }}"
|
raw: "racadm set BIOS.BiosBootSettings.BootSeq {{ drac_pxe_bios_boot_sequence }}"
|
||||||
register: result
|
register: result
|
||||||
failed_when: "'ERROR' in result.stdout"
|
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 }}"
|
retries: "{{ drac_pxe_retries }}"
|
||||||
delay: "{{ drac_pxe_interval }}"
|
delay: "{{ drac_pxe_interval }}"
|
||||||
when: current_boot_sequence != required_boot_sequence
|
when: current_boot_sequence != required_boot_sequence
|
||||||
@ -158,7 +158,7 @@
|
|||||||
raw: "racadm jobqueue create BIOS.Setup.1-1 -s TIME_NOW"
|
raw: "racadm jobqueue create BIOS.Setup.1-1 -s TIME_NOW"
|
||||||
register: result
|
register: result
|
||||||
failed_when: "'ERROR' in result.stdout"
|
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 }}"
|
retries: "{{ drac_pxe_retries }}"
|
||||||
delay: "{{ drac_pxe_interval }}"
|
delay: "{{ drac_pxe_interval }}"
|
||||||
when: bios_job_required
|
when: bios_job_required
|
||||||
@ -181,6 +181,6 @@
|
|||||||
when: job_ids | length > 0
|
when: job_ids | length > 0
|
||||||
register: result
|
register: result
|
||||||
failed_when: "'ERROR' in result.stdout"
|
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 }}"
|
retries: "{{ drac_pxe_timeout // drac_pxe_interval }}"
|
||||||
delay: "{{ drac_pxe_interval }}"
|
delay: "{{ drac_pxe_interval }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user