mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-02-02 20:59:02 +08:00
convert over the when_string to a when and change the variable syntax
lemme tell you how much I am looking forward to doing this all over
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
|
||||
- name: fail if the hose is not already defined/existent
|
||||
local_action: fail msg="host does not exist on $vmhost"
|
||||
when: {{ inventory_hostname }} not in {{ result.list_vms }}
|
||||
when: inventory_hostname not in result.list_vms
|
||||
|
||||
- name: pause for 30s before doing it
|
||||
pause: seconds=30 prompt="Destroying vm now $target, abort if this is wrong"
|
||||
|
||||
Reference in New Issue
Block a user