summaryrefslogtreecommitdiff
path: root/installer-ansible.yml
diff options
context:
space:
mode:
Diffstat (limited to 'installer-ansible.yml')
-rw-r--r--installer-ansible.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/installer-ansible.yml b/installer-ansible.yml
index a53d998..5e56d32 100644
--- a/installer-ansible.yml
+++ b/installer-ansible.yml
@@ -27,6 +27,26 @@
regexp: Storage=
line: Storage=volatile
+ - name: "drop ifupdown interfaces file"
+ file:
+ path: /etc/network/interfaces
+ state: absent
+
+ - name: "enable systemd-networkd"
+ systemd:
+ name: systemd-networkd
+ enabled: true
+
+ - name: "add eth0.network"
+ copy:
+ content: |
+ [Match]
+ Name=eth0
+
+ [Network]
+ DHCP=ipv4
+ dest: /etc/systemd/network/eth0.network
+
- name: "create /root/.ssh"
file:
state: directory