summaryrefslogtreecommitdiff
path: root/ansible/exolobe5.yml
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-01-22 20:08:00 +0200
committerLars Wirzenius <liw@liw.fi>2022-01-22 20:08:00 +0200
commita792f0cd5501c2727894a5a9004065bfb0133f4e (patch)
tree45fa7397fd864863344d2d8834b5bf8c7f59c144 /ansible/exolobe5.yml
parent34787d29f07f5d5db6d22abd8ef4e005cd5af9a6 (diff)
downloadansibleness-a792f0cd5501c2727894a5a9004065bfb0133f4e.tar.gz
this should at least get network up
Sponsored-by: author
Diffstat (limited to 'ansible/exolobe5.yml')
-rw-r--r--ansible/exolobe5.yml24
1 files changed, 23 insertions, 1 deletions
diff --git a/ansible/exolobe5.yml b/ansible/exolobe5.yml
index 5c47249..8ead288 100644
--- a/ansible/exolobe5.yml
+++ b/ansible/exolobe5.yml
@@ -14,6 +14,29 @@
- jq
- vmadm
- python3-lxml
+ - systemd-timesyncd
+ - ifupdown
+ - apt:
+ name: ntp
+ state: absent
+ purge: yes
+ - copy:
+ content: |
+ auto lo
+ iface lo inet loopback
+ dest: /etc/network/interfaces.d/lo
+ - copy:
+ content: |
+ iface eth0 inet manual
+
+ auto br0
+ iface br0 inet dhcp
+ bridge_ports eth0
+ bridge_hw eth0
+ up ip route delete 10.1.1.1 dev eth0
+ up ip route delete 10.1.1.0/24 dev eth0
+ up ip route delete default via 10.1.1.1 dev eth0
+ dest: /etc/network/interfaces.d/br0
- name: "set permission of /mnt/vms"
file:
path: /mnt/vms
@@ -132,4 +155,3 @@
smarthost: pieni.net
smarthost_user: pienirelay
smarthost_password: "{{ lookup('pipe', 'pass show pieni.net/pienirelay') }}"
-