32 lines
652 B
YAML
32 lines
652 B
YAML
######################################
|
|
# Configuration Client-Server #
|
|
######################################
|
|
---
|
|
- name: Edit Network interface file on Client Server
|
|
blockinfile:
|
|
path: /etc/network/interfaces
|
|
block: |
|
|
auto enp7s0
|
|
iface enp7s0 inet dhcp
|
|
post-up ip route add default via 10.0.0.1
|
|
|
|
- name: Add Hetzner Nameserver
|
|
blockinfile:
|
|
path: /etc/resolvconf/resolv.conf.d/head
|
|
block: |
|
|
nameserver 8.8.8.8
|
|
nameserver 8.8.4.4
|
|
|
|
- name: Enable Updates for resolvconf
|
|
raw: "resolvconf --enable-updates"
|
|
|
|
- name: Update resolvconf
|
|
raw: "resolvconf -u"
|
|
|
|
- name: Reboot Clients
|
|
reboot:
|
|
|
|
|
|
|
|
|