So I have the following tasks

 name: get running guests
  virt:
    command: "list_vms"
  register: vms
  when: test_kvm |default(False)

- name: List running guests
  debug:
    msg: "{{ vms }}"
  when: test_kvm |default(False)

I would expect when you register a variable, you should see stdout
associated with this variable. Instead,

ok: [vmhost] => {
    "msg": {
        "changed": false,
        "failed": false,
        "list_vms": [
            "testcentos"
        ]
    }
}

Is there a bit of inconsistency going on here or am I just confused?

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAHEKYV4OrkFAzk-MkCGbYWi8A0-KNTVC2qKFdLhi8ZYs3z6-NQ%40mail.gmail.com.

Reply via email to