Created
February 14, 2018 17:07
-
-
Save pedrompcaetano/8508cf57bcf39fd26e389edb360aa624 to your computer and use it in GitHub Desktop.
ansible vars
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: all | |
tasks: | |
- name: config vnets | |
virt_net: | |
command: list_nets | |
register: merdum | |
- name: get xml | |
virt_net: | |
command: get_xml | |
name: '{{ virt_net }}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tasks:
name: config vnets
virt_net:
command: list_nets
register: merdum
name: get xml
virt_net:
command: get_xml
name: '{{ item }}'
with_items: "{{ merdum.list_nets }}"