Skip to content

Commit

Permalink
Don't use reserved name "retries"
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonking3 committed May 13, 2024
1 parent 84e9ee0 commit 0b7504e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions playbooks/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
vars:
startup: 'all' # Specify 'host' for per host startup
wait: 'no'
retries: 40
max_retries: 40
tasks:
- name: Check to see if all hosts are BOOTED
cisco.cml.cml_lab_facts:
Expand All @@ -106,7 +106,7 @@
lab: "{{ cml_lab }}"
register: cml_lab_facts
until: (states | length == 1) and (states[0] == 'BOOTED')
retries: "{{ retries }}"
retries: "{{ max_retries }}"
delay: 15
vars:
states: "{{ cml_lab_facts.cml_facts.nodes | default({}) | dict2items | selectattr('value.state','defined') | map(attribute='value.state') | unique | list }}"
Expand Down

0 comments on commit 0b7504e

Please sign in to comment.