Rename common role to always

This commit is contained in:
Tobias Reisinger 2024-10-02 16:35:58 +02:00
commit 825393bbd3
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
4 changed files with 6 additions and 8 deletions

View file

@ -2,8 +2,7 @@
- name: Run roles for node002
hosts: node002
roles:
- role: common
tags: always
- role: always
- role: backup
tags: backup
- role: lego
@ -13,6 +12,8 @@
vars:
caddy_ports_extra:
- 8448:8448
- role: watchtower
tags: watchtower
- role: authentik
tags: authentik
@ -56,8 +57,6 @@
tags: uptime_kuma
- role: vikunja
tags: vikunja
- role: watchtower
tags: watchtower]
- role: webhook
tags: webhook
- role: woodpecker

View file

@ -2,14 +2,15 @@
- name: Run roles for node003
hosts: node003
roles:
- role: common
tags: common
- role: always
- role: docker
tags: common
- role: backup
tags: backup
- role: caddy
tags: caddy
- role: watchtower
tags: watchtower
- role: acme_dns
tags: acme-dns
@ -19,7 +20,5 @@
tags: mailcow
- role: umami
tags: umami
- role: watchtower
tags: watchtower
- role: wiki_js
tags: wiki_js

View file

@ -0,0 +1,7 @@
---
- name: Reload caddy
ansible.builtin.command:
cmd: docker compose exec app sh -c "caddy validate --config /etc/caddy/Caddyfile && caddy reload --config /etc/caddy/Caddyfile"
chdir: "{{ caddy_path }}"
when: "'local-dev' != inventory_hostname"
changed_when: true

View file

@ -0,0 +1,9 @@
---
- name: Create the services directory
ansible.builtin.file:
path: "{{ services_path }}"
state: directory
mode: "0755"
owner: "{{ ansible_user }}"
group: "{{ ansible_user }}"
become: true