From 7d8fa25ad961e9186a97fb279380d875e71a052f Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Tue, 8 Oct 2024 21:33:01 +0200 Subject: [PATCH] Add caddy reload on caddy tag --- playbooks/serguzim.net.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/playbooks/serguzim.net.yml b/playbooks/serguzim.net.yml index ef3e480..cdf969b 100644 --- a/playbooks/serguzim.net.yml +++ b/playbooks/serguzim.net.yml @@ -26,3 +26,11 @@ loop: "{{ all_services | my_service_attributes(inventory_hostname) }}" loop_control: loop_var: services_item + + - name: Reload caddy on caddy tag + ansible.builtin.include_tasks: + file: tasks/reload-caddy.yml + apply: + tags: caddy + tags: caddy + when: "'caddy' in ansible_run_tags"