feat: create handlers in top-level
Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
parent
e3bff6c8c4
commit
e89bd7956e
3 changed files with 13 additions and 0 deletions
6
handlers/main.yml
Normal file
6
handlers/main.yml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
- name: Restart nginx
|
||||||
|
ansible.builtin.service:
|
||||||
|
name: nginx
|
||||||
|
state: restarted
|
||||||
|
become: true
|
|
@ -112,3 +112,7 @@
|
||||||
wg_address: "{{ item.address }}"
|
wg_address: "{{ item.address }}"
|
||||||
wg_peers: "{{ item.peers }}"
|
wg_peers: "{{ item.peers }}"
|
||||||
tags: wireguard
|
tags: wireguard
|
||||||
|
|
||||||
|
handlers:
|
||||||
|
- name: Import common handlers
|
||||||
|
ansible.builtin.import_tasks: ../handlers/main.yml
|
||||||
|
|
|
@ -3,3 +3,6 @@
|
||||||
hosts: all
|
hosts: all
|
||||||
gather_facts: true
|
gather_facts: true
|
||||||
roles: []
|
roles: []
|
||||||
|
handlers:
|
||||||
|
- name: Import common handlers
|
||||||
|
ansible.builtin.import_tasks: ../handlers/main.yml
|
||||||
|
|
Loading…
Reference in a new issue