Skip to content

Instantly share code, notes, and snippets.

@pedrompcaetano
Created February 14, 2018 17:09
Show Gist options
  • Save pedrompcaetano/cc5ace7d0853f3ee95e6d63fbd6839ef to your computer and use it in GitHub Desktop.
Save pedrompcaetano/cc5ace7d0853f3ee95e6d63fbd6839ef to your computer and use it in GitHub Desktop.
task output
pedro@pocket:~/playbooks/libvirt$ ansible-playbook -vi hosts test.yml
Using /home/pedro/playbooks/libvirt/ansible.cfg as config file
PLAY [all] ****************************************************************************************************
TASK [Gathering Facts] ****************************************************************************************
ok: [127.0.0.1]
TASK [config vnets] *******************************************************************************************
ok: [127.0.0.1] => {"changed": false, "list_nets": ["default", "private"]}
TASK [get xml] ************************************************************************************************
fatal: [127.0.0.1]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'virt_net' is undefined\n\nThe error appears to have been in '/home/pedro/playbooks/libvirt/test.yml': line 9, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n - name: get xml\n ^ here\n"}
to retry, use: --limit @/home/pedro/playbooks/libvirt/test.retry
PLAY RECAP ****************************************************************************************************
127.0.0.1 : ok=2 changed=0 unreachable=0 failed=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment