[PATCH 2/9] guestfs: diy: print defined vm list
Daniel Gomez <[email protected]>
| Newsgroups | dev.linux.lists.kdevops |
|---|---|
| Message-ID | <[email protected]> |
From: Daniel Gomez <[email protected]> Print defined list of VMs. Signed-off-by: Daniel Gomez <[email protected]> --- playbooks/roles/guestfs/tasks/bringup/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/playbooks/roles/guestfs/tasks/bringup/main.yml b/playbooks/roles/guestfs/tasks/bringup/main.yml index 3fd677ff..e5fcbb2e 100644 --- a/playbooks/roles/guestfs/tasks/bringup/main.yml +++ b/playbooks/roles/guestfs/tasks/bringup/main.yml @@ -10,6 +10,8 @@ - name: Debug defined VMs debug: msg: "Hostname: {{ inventory_hostname }}, Defined VMs: {{ hostvars['localhost']['defined_vms']['list_vms'] | default([]) }}, Check: {{ inventory_hostname not in (hostvars['localhost']['defined_vms']['list_vms'] | default([])) }}" + vars: + ansible_callback_diy_runner_on_ok_msg: "{{ ansible_callback_diy.result.output.msg }}" - name: Provision each target node when: -- 2.50.1