Skip to content

Commit

Permalink
Added assertion to check value of 'startup'
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonking3 committed May 9, 2024
1 parent 56bb585 commit 84e9ee0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions playbooks/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@
delegate_to: localhost
run_once: yes

- assert:
that:
- startup == 'all' or startup == 'host'
msg: "startup must be either 'all' or 'host'"
delegate_to: localhost
run_once: yes

- name: Create the lab
cisco.cml.cml_lab:
host: "{{ cml_host }}"
Expand Down

0 comments on commit 84e9ee0

Please sign in to comment.