moved pihole to use definition
parent
fe175729a3
commit
a7bafc988b
@ -0,0 +1,8 @@
|
||||
---
|
||||
pihole_state: present
|
||||
pihole_image: pihole/pihole
|
||||
pihole_tag: 2022.09.2
|
||||
pihole_portainer_stack_name: pihole
|
||||
pihole_container_name: pihole
|
||||
# this variable MUST be set. See the tasks for the expected value.
|
||||
pihole_volumes: {}
|
||||
@ -0,0 +1,41 @@
|
||||
---
|
||||
- name: "Pihole | Restore any missing volumes from S3"
|
||||
ansible.builtin.include_role:
|
||||
name: chatton.docker_backup.docker_s3_volume_restore
|
||||
vars:
|
||||
docker_backup_s3_volume: "{{ item }}"
|
||||
with_items:
|
||||
- name: "{{ pihole_portainer_stack_name }}_{{ inventory_hostname_short }}_app"
|
||||
- name: "{{ pihole_portainer_stack_name }}_{{ inventory_hostname_short }}_dns"
|
||||
|
||||
- name: Setting host facts using complex arguments
|
||||
ansible.builtin.set_fact:
|
||||
vol_one: "{{ inventory_hostname_short }}_app"
|
||||
|
||||
- name: "Pihole | Update Portainer."
|
||||
chatton.portainer.portainer_stack:
|
||||
username: '{{ portainer_user }}'
|
||||
password: '{{ portainer.password }}'
|
||||
base_url: '{{ portainer_base_url }}'
|
||||
stack_name: '{{ pihole_portainer_stack_name }}'
|
||||
endpoint_id: '{{ portainer_endpoint }}'
|
||||
state: "{{ pihole_state }}"
|
||||
definition:
|
||||
version: "3"
|
||||
services:
|
||||
pihole:
|
||||
labels: "{{ backup_labels }}"
|
||||
container_name: "{{ pihole_container_name }}"
|
||||
image: "{{ pihole_image }}:{{ pihole_tag }}"
|
||||
ports:
|
||||
- "53:53/tcp"
|
||||
- "53:53/udp"
|
||||
- "85:80/tcp"
|
||||
environment:
|
||||
WEBPASSWORD: '{{ pihole_web_password }}'
|
||||
DNSMASQ_LISTENING: "all"
|
||||
volumes:
|
||||
- '{{ inventory_hostname_short }}_app:/etc/pihole'
|
||||
- '{{ inventory_hostname_short }}_dns:/etc/dnsmasq.d'
|
||||
restart: unless-stopped
|
||||
volumes: "{{ pihole_volumes }}"
|
||||
@ -1,16 +0,0 @@
|
||||
---
|
||||
version: "3.1"
|
||||
services:
|
||||
gotify:
|
||||
labels:
|
||||
ie.cianhatton.backup.enabled: "true"
|
||||
ie.cianhatton.backup.schedule: "{{ backups.schedule_keys.nightly }}"
|
||||
image: gotify/server
|
||||
container_name: gotify
|
||||
volumes:
|
||||
- data:/app/data
|
||||
ports:
|
||||
- 7875:80
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
data:
|
||||
@ -1,26 +0,0 @@
|
||||
---
|
||||
version: '3'
|
||||
services:
|
||||
minio:
|
||||
image: "{{ template_vars.image }}:{{ template_vars.tag }}"
|
||||
ports:
|
||||
# The web console
|
||||
- "11000:9000"
|
||||
# The API
|
||||
- "11001:9001"
|
||||
volumes:
|
||||
- minio_storage:/data
|
||||
environment:
|
||||
# specified in the vault file
|
||||
MINIO_ROOT_USER: "{{ minio_username }}"
|
||||
MINIO_ROOT_PASSWORD: "{{ minio_password }}"
|
||||
MINIO_API_ROOT_ACCESS: "on"
|
||||
MINIO_BROWSER_REDIRECT_URL: http://192.168.178.42:11000
|
||||
# enable encryption
|
||||
MINIO_KMS_AUTO_ENCRYPTION: "on"
|
||||
MINIO_KMS_SECRET_KEY: "minio-key:{{ minio_encryption_key }}"
|
||||
|
||||
command: server --console-address ":9001" /data
|
||||
|
||||
volumes:
|
||||
minio_storage: {}
|
||||
@ -1,24 +0,0 @@
|
||||
---
|
||||
version: "3"
|
||||
services:
|
||||
pihole:
|
||||
labels:
|
||||
ie.cianhatton.backup.enabled: "true"
|
||||
ie.cianhatton.backup.schedule: "{{ backups.schedule_keys.nightly }}"
|
||||
container_name: pihole
|
||||
image: "pihole/pihole:2022.09.2"
|
||||
ports:
|
||||
- "53:53/tcp"
|
||||
- "53:53/udp"
|
||||
- "85:80/tcp"
|
||||
environment:
|
||||
WEBPASSWORD: '{{ pihole_web_password }}'
|
||||
DNSMASQ_LISTENING: "all"
|
||||
volumes:
|
||||
- '{{ inventory_hostname_short }}_app:/etc/pihole'
|
||||
- '{{ inventory_hostname_short }}_dns:/etc/dnsmasq.d'
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
{{ inventory_hostname_short }}_app:
|
||||
{{ inventory_hostname_short }}_dns:
|
||||
Loading…
Reference in New Issue