Add sanity checks
This commit is contained in:
parent
6f0a8bec2c
commit
adefc850bb
|
@ -76,6 +76,13 @@
|
|||
when: inventory_hostname in groups.lxc_hosts
|
||||
|
||||
|
||||
- name: Sanity checks
|
||||
assert:
|
||||
that:
|
||||
- ssh_keys is defined
|
||||
- ssh_keys is iterable
|
||||
|
||||
|
||||
- name: Check for no-validate parameter in download template
|
||||
shell: "/usr/share/lxc/templates/lxc-download --help | grep no-validate || true"
|
||||
changed_when: false
|
||||
|
|
Loading…
Reference in a new issue