Skip to content

Instantly share code, notes, and snippets.

@pedrompcaetano
Created February 14, 2018 17:07
Show Gist options
  • Save pedrompcaetano/8508cf57bcf39fd26e389edb360aa624 to your computer and use it in GitHub Desktop.
Save pedrompcaetano/8508cf57bcf39fd26e389edb360aa624 to your computer and use it in GitHub Desktop.
ansible vars
---
- hosts: all
tasks:
- name: config vnets
virt_net:
command: list_nets
register: merdum
- name: get xml
virt_net:
command: get_xml
name: '{{ virt_net }}'
@pedrompcaetano
Copy link
Author


  • hosts: all
    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 }}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment