Refactor: Organize Ansible project structure
- Reorganized Ansible project structure to follow best practices. - Created dedicated directories: , , , , and . - Categorized playbooks into (host-specific) and (service-specific). - Moved all roles into the directory and standardized their naming conventions. - Relocated to for better variable management. - Renamed to to reflect its global variable scope. - Created to correctly set the to the new directory. - Moved and into the directory. - Added to providing explanations for common commands. - Cleaned up directories from all individual roles to centralize version control.
This commit is contained in:
20
roles/docker_spin_up/tasks/pi-hole.yml
Normal file
20
roles/docker_spin_up/tasks/pi-hole.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
- name: pi-hole
|
||||
community.docker.docker_container:
|
||||
name: pi-hole
|
||||
image: pihole/pihole:2024.03.2
|
||||
# For DHCP it is recommended to remove these ports and instead add: network_mode: "host"
|
||||
ports:
|
||||
- "53:53/tcp"
|
||||
- "53:53/udp"
|
||||
# - "8092:80/tcp"
|
||||
env:
|
||||
TZ: 'Europe/Prague'
|
||||
WEBPASSWORD: "{{ password }}"
|
||||
# Volumes store your data between container upgrades
|
||||
volumes:
|
||||
- "{{ docker_homepath }}/etc-pihole:/etc/pihole"
|
||||
- "{{ docker_homepath }}/etc-dnsmasq.d:/etc/dnsmasq.d"
|
||||
# https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
|
||||
restart_policy: unless-stopped
|
||||
networks:
|
||||
- name: http
|
||||
Reference in New Issue
Block a user