Rename common role to always

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

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