2021-02-26 09:37:23 +01:00
|
|
|
---
|
2021-03-07 13:02:07 +01:00
|
|
|
- hosts: pihole
|
2021-02-26 09:37:23 +01:00
|
|
|
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
|
2021-07-21 10:53:38 +02:00
|
|
|
- name: Setze VIRTUAL_HOST für homer
|
2021-05-02 14:03:16 +02:00
|
|
|
ansible.builtin.blockinfile:
|
|
|
|
path: /etc/lighttpd/external.conf
|
|
|
|
block: |
|
|
|
|
setenv.add-environment = (
|
2021-05-11 09:12:02 +02:00
|
|
|
"VIRTUAL_HOST" => "{{ pihole_homer_fqdn }}"
|
2021-05-02 14:03:16 +02:00
|
|
|
)
|
2021-07-25 14:41:20 +02:00
|
|
|
state: absent
|
2021-07-28 07:53:25 +02:00
|
|
|
- name: deaktiviere rate limiting
|
|
|
|
ansible.builtin.blockinfile:
|
|
|
|
path: /etc/pihole/pihole-FTL.conf
|
|
|
|
block: |
|
|
|
|
RATE_LIMIT=0/0
|
2021-07-28 17:54:41 +02:00
|
|
|
state: present
|
2021-07-28 07:53:25 +02:00
|
|
|
|
|
|
|
|
2021-02-26 09:37:23 +01:00
|
|
|
# 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
|