|
|
@ -3,20 +3,20 @@
|
|
|
|
- import_playbook: hass-io.yml
|
|
|
|
- import_playbook: hass-io.yml
|
|
|
|
- import_playbook: pi-hole.yml
|
|
|
|
- import_playbook: pi-hole.yml
|
|
|
|
|
|
|
|
|
|
|
|
become: true
|
|
|
|
|
|
|
|
- hosts: on-fire-within
|
|
|
|
- hosts: on-fire-within
|
|
|
|
|
|
|
|
become: true
|
|
|
|
vars_files:
|
|
|
|
vars_files:
|
|
|
|
- vars.private
|
|
|
|
- vars.private
|
|
|
|
tasks:
|
|
|
|
tasks:
|
|
|
|
|
|
|
|
|
|
|
|
- name: Set authorized keys from GitHub
|
|
|
|
- name: Set authorized keys from GitHub
|
|
|
|
authorized_key:
|
|
|
|
ansible.posix.authorized_key:
|
|
|
|
user: alpha
|
|
|
|
user: alpha
|
|
|
|
state: present
|
|
|
|
state: present
|
|
|
|
key: https://github.com/kejadlen.keys
|
|
|
|
key: https://github.com/kejadlen.keys
|
|
|
|
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
- name: Install dependencies
|
|
|
|
apt:
|
|
|
|
ansible.builtin.apt:
|
|
|
|
name:
|
|
|
|
name:
|
|
|
|
- git
|
|
|
|
- git
|
|
|
|
- vim
|
|
|
|
- vim
|
|
|
@ -47,14 +47,14 @@
|
|
|
|
- /mnt/mushu/syncthing
|
|
|
|
- /mnt/mushu/syncthing
|
|
|
|
|
|
|
|
|
|
|
|
- name: Mount USB drive
|
|
|
|
- name: Mount USB drive
|
|
|
|
mount:
|
|
|
|
ansible.posix.mount:
|
|
|
|
path: /mnt/mushu
|
|
|
|
path: /mnt/mushu
|
|
|
|
src: /dev/sda
|
|
|
|
src: /dev/sda
|
|
|
|
fstype: ext4
|
|
|
|
fstype: ext4
|
|
|
|
state: mounted
|
|
|
|
state: mounted
|
|
|
|
|
|
|
|
|
|
|
|
- name: Configure ddclient
|
|
|
|
- name: Configure ddclient
|
|
|
|
copy:
|
|
|
|
ansible.builtin.copy:
|
|
|
|
content: |
|
|
|
|
content: |
|
|
|
|
daemon=300
|
|
|
|
daemon=300
|
|
|
|
|
|
|
|
|
|
|
@ -62,17 +62,17 @@
|
|
|
|
ssl=yes
|
|
|
|
ssl=yes
|
|
|
|
protocol=googledomains
|
|
|
|
protocol=googledomains
|
|
|
|
|
|
|
|
|
|
|
|
{% for host in hosts %}
|
|
|
|
{% for host in ddclient_hosts %}
|
|
|
|
login={{ host.login }}, password={{ host.password }} {{ host.host }}
|
|
|
|
login={{ host.login }}, password={{ host.password }} {{ host.host }}
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
dest: /etc/ddclient/ddclient.conf
|
|
|
|
dest: /etc/ddclient/ddclient.conf
|
|
|
|
mode: 0600
|
|
|
|
mode: "0600"
|
|
|
|
vars:
|
|
|
|
vars:
|
|
|
|
hosts: "{{ ddclient.hosts }}"
|
|
|
|
ddclient_hosts: "{{ ddclient.hosts }}"
|
|
|
|
notify: Restart ddclient
|
|
|
|
notify: Restart ddclient
|
|
|
|
|
|
|
|
|
|
|
|
- name: Traefik static configuration
|
|
|
|
- name: Traefik static configuration
|
|
|
|
copy:
|
|
|
|
ansible.builtin.copy:
|
|
|
|
content: |
|
|
|
|
content: |
|
|
|
|
providers:
|
|
|
|
providers:
|
|
|
|
docker:
|
|
|
|
docker:
|
|
|
@ -123,9 +123,9 @@
|
|
|
|
- debug
|
|
|
|
- debug
|
|
|
|
|
|
|
|
|
|
|
|
- name: Docker ALL the things!
|
|
|
|
- name: Docker ALL the things!
|
|
|
|
docker_compose:
|
|
|
|
community.docker.docker_compose:
|
|
|
|
project_name: on-fire-within
|
|
|
|
project_name: on-fire-within
|
|
|
|
pull: yes
|
|
|
|
pull: true
|
|
|
|
definition:
|
|
|
|
definition:
|
|
|
|
version: '2'
|
|
|
|
version: '2'
|
|
|
|
services:
|
|
|
|
services:
|
|
|
@ -166,7 +166,7 @@
|
|
|
|
# - traefik.http.routers.mitmproxy-web.tls.certresolver=le
|
|
|
|
# - traefik.http.routers.mitmproxy-web.tls.certresolver=le
|
|
|
|
# - traefik.http.services.mitmproxy-web.loadbalancer.server.port=8081
|
|
|
|
# - traefik.http.services.mitmproxy-web.loadbalancer.server.port=8081
|
|
|
|
pihole:
|
|
|
|
pihole:
|
|
|
|
image: pihole/pihole:2023.05.2
|
|
|
|
image: pihole/pihole:2023.10.0
|
|
|
|
container_name: pihole
|
|
|
|
container_name: pihole
|
|
|
|
ports:
|
|
|
|
ports:
|
|
|
|
- 53:53/tcp
|
|
|
|
- 53:53/tcp
|
|
|
|