From 04d89e34573ad5d9d2daab6a2e56bbf70fc92a68 Mon Sep 17 00:00:00 2001 From: Lars Weiler Date: Sat, 14 Feb 2026 14:22:13 +0100 Subject: [PATCH] feat: Add a handler for nginx --- roles/install-sources/handlers/main.yml | 4 ++++ roles/install-sources/tasks/main.yml | 1 + 2 files changed, 5 insertions(+) create mode 100644 roles/install-sources/handlers/main.yml diff --git a/roles/install-sources/handlers/main.yml b/roles/install-sources/handlers/main.yml new file mode 100644 index 0000000..115b389 --- /dev/null +++ b/roles/install-sources/handlers/main.yml @@ -0,0 +1,4 @@ +- name: Reload nginx to apply new configuration + ansible.builtin.service: + name: nginx + state: reloaded diff --git a/roles/install-sources/tasks/main.yml b/roles/install-sources/tasks/main.yml index 41ec5bc..7aac047 100644 --- a/roles/install-sources/tasks/main.yml +++ b/roles/install-sources/tasks/main.yml @@ -43,3 +43,4 @@ owner: "{{ fiftyohm_user }}" group: "{{ fiftyohm_group }}" mode: '0644' + notify: Reload nginx to apply new configuration