From c70875cbdc378628d423886bda38f240a589e322 Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Wed, 18 Oct 2023 20:59:48 -0700 Subject: [PATCH] pihole:2023.10.0 --- on-fire-within/main.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/on-fire-within/main.yml b/on-fire-within/main.yml index e7018fd..4597006 100644 --- a/on-fire-within/main.yml +++ b/on-fire-within/main.yml @@ -3,20 +3,20 @@ - import_playbook: hass-io.yml - import_playbook: pi-hole.yml - become: true - hosts: on-fire-within + become: true vars_files: - vars.private tasks: - name: Set authorized keys from GitHub - authorized_key: + ansible.posix.authorized_key: user: alpha state: present key: https://github.com/kejadlen.keys - name: Install dependencies - apt: + ansible.builtin.apt: name: - git - vim @@ -47,14 +47,14 @@ - /mnt/mushu/syncthing - name: Mount USB drive - mount: + ansible.posix.mount: path: /mnt/mushu src: /dev/sda fstype: ext4 state: mounted - name: Configure ddclient - copy: + ansible.builtin.copy: content: | daemon=300 @@ -62,17 +62,17 @@ ssl=yes protocol=googledomains - {% for host in hosts %} + {% for host in ddclient_hosts %} login={{ host.login }}, password={{ host.password }} {{ host.host }} {% endfor %} dest: /etc/ddclient/ddclient.conf - mode: 0600 + mode: "0600" vars: - hosts: "{{ ddclient.hosts }}" + ddclient_hosts: "{{ ddclient.hosts }}" notify: Restart ddclient - name: Traefik static configuration - copy: + ansible.builtin.copy: content: | providers: docker: @@ -123,9 +123,9 @@ - debug - name: Docker ALL the things! - docker_compose: + community.docker.docker_compose: project_name: on-fire-within - pull: yes + pull: true definition: version: '2' services: @@ -166,7 +166,7 @@ # - traefik.http.routers.mitmproxy-web.tls.certresolver=le # - traefik.http.services.mitmproxy-web.loadbalancer.server.port=8081 pihole: - image: pihole/pihole:2023.05.2 + image: pihole/pihole:2023.10.0 container_name: pihole ports: - 53:53/tcp