diff --git a/host_vars/docker1 b/host_vars/docker1 new file mode 100644 index 0000000..c46c9f1 --- /dev/null +++ b/host_vars/docker1 @@ -0,0 +1,8 @@ +mgmt: + ip: 192.168.122.31 + mask: 255.255.255.0 + gw: 192.168.122.1 + dns: + - 192.168.122.1 + - 8.8.8.8 +ansible_host: "{{ mgmt.ip }}" diff --git a/roles/virt_vm/templates/ci-networkconfig.j2 b/roles/virt_vm/templates/ci-networkconfig.j2 new file mode 100644 index 0000000..a20da3b --- /dev/null +++ b/roles/virt_vm/templates/ci-networkconfig.j2 @@ -0,0 +1,10 @@ +version: 2 +ethernets: + eth0: + name: eth0 + set-name: eth0 + addresses: + - {{ mgmt.ip }}/{{ mgmt.mask }} + gateway4: {{ mgmt.gw }} + nameservers: + addresses: {{ mgmt.dns }}