homeserver/playbooks/service/pihole.yml
mg b3db0e13a3 Bugfix: Group Vars (#20)
Bugfix: Group Vars

Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#20
Co-Authored-By: mg <mg@noreply.git.mgrote.net>
Co-Committed-By: mg <mg@noreply.git.mgrote.net>
2021-03-07 13:02:07 +01:00

26 lines
613 B
YAML

---
- hosts: pihole
become: yes
tasks:
- name: Setze DNS-Resolver fuer pihole-*
ansible.builtin.lineinfile:
path: /etc/resolv.conf.head
line: nameserver 192.168.2.3
create: yes
backrefs: false
mode: 0664
# Wenn die VM beim Start mit "systemd-networkd-wait-online." hängt
# Deaktiviere DHCP in:
# sudo nano /etc/netplan/01-netcfg.yaml
# network:
# version: 2
# ethernets:
# ens18:
# addresses:
# - 192.168.2.3/24
# dhcp4: no
# gateway4: 192.168.2.1
# netplan apply
# sudo init 6