From 30617b19a6e14aacdbc5b4c13a50d2745f8e172d Mon Sep 17 00:00:00 2001 From: Martin Wohlert Date: Mon, 7 Jun 2021 23:23:34 +0200 Subject: [PATCH] missing files --- host_vars/docker1 | 8 ++++++++ roles/virt_vm/templates/ci-networkconfig.j2 | 10 ++++++++++ 2 files changed, 18 insertions(+) create mode 100644 host_vars/docker1 create mode 100644 roles/virt_vm/templates/ci-networkconfig.j2 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 }}