Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions ansible/roles/containers/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@
failed_when: false
become: true

- name: Run docker-compose up for Caddy and Uptime Kuma
ansible.builtin.command: >
docker compose
-f "/root/app/caddy/docker-compose.yml"
-f "/root/app/uptime-kuma/docker-compose.yml"
up -d
- name: Run docker-compose up for Caddy
ansible.builtin.command: docker compose up -d
args:
chdir: /root/app/caddy
become: true

- name: Run docker-compose up for Uptime Kuma
ansible.builtin.command: docker compose up -d
args:
chdir: /root/app/uptime-kuma
become: true
14 changes: 10 additions & 4 deletions ansible/roles/tailscale/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@
line: "http://dl-2.alpinelinux.org/alpine/edge/community"
state: present

- name: Install dhclient and tailscale
# https://tailscale.com/kb/1188/linux-dns#dhcp-dhclient-overwriting-etcresolvconf
- name: Disable overwriting resolv.conf
ansible.builtin.lineinfile:
dest: /etc/udhcpc/udhcpc.conf
regexp: "^#?RESOLV_CONF=\"no\""
line: "RESOLV_CONF=\"no\""
state: present

- name: Install tailscale
ansible.builtin.package:
name:
- dhclient # https://tailscale.com/kb/1188/linux-dns#dhcp-dhclient-overwriting-etcresolvconf
- tailscale
name: tailscale
state: latest
update_cache: yes
Loading