|
|
@ -2,6 +2,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
- hosts: congenital-optimist
|
|
|
|
- hosts: congenital-optimist
|
|
|
|
become: yes
|
|
|
|
become: yes
|
|
|
|
|
|
|
|
vars_files:
|
|
|
|
|
|
|
|
- congenital-optimist/vars.yml.private
|
|
|
|
tasks:
|
|
|
|
tasks:
|
|
|
|
|
|
|
|
|
|
|
|
- name: Uninstall old versions
|
|
|
|
- name: Uninstall old versions
|
|
|
@ -80,9 +82,6 @@
|
|
|
|
volumes:
|
|
|
|
volumes:
|
|
|
|
- "{{ ansible_env.HOME }}/znc:/znc-data"
|
|
|
|
- "{{ ansible_env.HOME }}/znc:/znc-data"
|
|
|
|
|
|
|
|
|
|
|
|
- name: Get public IP
|
|
|
|
|
|
|
|
ipify_facts:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Create pi-hole mounted volumes
|
|
|
|
- name: Create pi-hole mounted volumes
|
|
|
|
file:
|
|
|
|
file:
|
|
|
|
path: ~/pihole/{{ item }}
|
|
|
|
path: ~/pihole/{{ item }}
|
|
|
@ -92,14 +91,19 @@
|
|
|
|
- pihole
|
|
|
|
- pihole
|
|
|
|
- dnsmasq.d
|
|
|
|
- dnsmasq.d
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Get public IP
|
|
|
|
|
|
|
|
ipify_facts:
|
|
|
|
|
|
|
|
|
|
|
|
- name: Run pi-hole container
|
|
|
|
- name: Run pi-hole container
|
|
|
|
docker_container:
|
|
|
|
docker_container:
|
|
|
|
name: pihole
|
|
|
|
name: pihole
|
|
|
|
image: diginc/pi-hole:alpine
|
|
|
|
image: diginc/pi-hole:alpine
|
|
|
|
state: started
|
|
|
|
state: started
|
|
|
|
|
|
|
|
pull: yes
|
|
|
|
restart: yes
|
|
|
|
restart: yes
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
ServerIP: "{{ ipify_public_ip }}"
|
|
|
|
ServerIP: "{{ ipify_public_ip }}"
|
|
|
|
|
|
|
|
WEBPASSWORD: "{{ pi_hole_password }}"
|
|
|
|
ports:
|
|
|
|
ports:
|
|
|
|
- "53:53/tcp"
|
|
|
|
- "53:53/tcp"
|
|
|
|
- "53:53/udp"
|
|
|
|
- "53:53/udp"
|
|
|
|