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