tf-ansible-workflow

Terraform/Ansible Workflow for Libvirt
git clone https://git.in0rdr.ch/tf-ansible-workflow.git
Log | Files | Refs | Pull requests |Archive

dhcp-static-hosts.yml (473B)


      1 ---
      2 
      3 # create dnsmasq config for static ip addresses
      4 - hosts: local
      5   vars:
      6     qemu_config: "{{ lookup('file', 'qemu-config.yml') | from_yaml }}"
      7   tasks:
      8     - name: create dnsmasq config snippet with ip mac mapping
      9       template:
     10         src: 'templates/dnsmasq.j2'
     11         dest: './dnsmasq.conf'
     12     - name: create libvirt network config snippet with ip mac mapping
     13       template:
     14         src: 'templates/libvirt-network.xml.j2'
     15         dest: './libvirt-network.xml'