Added some format fixed, disabling resolved using port 53 but redirecting requests and correct order. Also loading correctly, needs cloudflare fix
This commit is contained in:
parent
f4a43403b9
commit
2abbed00ca
|
@ -3,12 +3,6 @@
|
|||
- docker-ce
|
||||
|
||||
tasks:
|
||||
- name: Disable current DNS service (this kills network temorarily)
|
||||
systemd:
|
||||
name: systemd-resolved
|
||||
state: started
|
||||
enabled: yes
|
||||
|
||||
- name: Install network related packages
|
||||
apt:
|
||||
pkg:
|
||||
|
@ -24,13 +18,13 @@
|
|||
- name: UFW allow SSH
|
||||
ufw:
|
||||
rule: allow
|
||||
port: 22
|
||||
port: "22"
|
||||
proto: tcp
|
||||
|
||||
- name: Allow http
|
||||
ufw:
|
||||
rule: allow
|
||||
port: 80
|
||||
port: "80"
|
||||
proto: tcp
|
||||
|
||||
- name: Add user
|
||||
|
@ -44,18 +38,21 @@
|
|||
clone: yes
|
||||
dest: ~/pihole-https-docker/
|
||||
|
||||
- name: Pull images
|
||||
docker_compose:
|
||||
pull: no
|
||||
state: absent
|
||||
stopped: yes
|
||||
project_src: ~/pihole-https-docker/
|
||||
- name: Add DNS line to resolved
|
||||
lineinfile:
|
||||
path: /etc/systemd/resolved.conf
|
||||
line: "DNS=127.0.0.1"
|
||||
|
||||
- name: Disable current DNS service (this kills network temorarily)
|
||||
- name: Disable resolved using port 53
|
||||
lineinfile:
|
||||
path: /etc/systemd/resolved.conf
|
||||
line: "DNSStubListener=no"
|
||||
|
||||
- name: Restart resolved
|
||||
systemd:
|
||||
name: systemd-resolved
|
||||
state: stopped
|
||||
enabled: no
|
||||
state: restarted
|
||||
enabled: yes
|
||||
|
||||
- name: Bring up stack
|
||||
docker_compose:
|
||||
|
|
Loading…
Reference in New Issue