Adding initial files

This commit is contained in:
2021-02-28 21:30:03 +00:00
parent 7acac96910
commit 63657fbe47
30 changed files with 930 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
---
- name: Configure /etc/network/interfaces
template:
src: "{{interfaces_template}}"
dest: /etc/network/interfaces
register: _configure_interfaces
- block:
- name: Reboot for networking changes
shell: "sleep 5 && shutdown -r now 'Networking changes found, rebooting'"
async: 1
poll: 0
- name: Wait for server to come back online
wait_for_connection:
delay: 15
when: _configure_interfaces is changed

View File

@@ -0,0 +1,9 @@
# The loopback network interface
auto lo
iface lo inet loopback
# eth0 network interface
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp
dns-search server