aboutsummaryrefslogtreecommitdiff
path: root/roles/tor/handlers
diff options
context:
space:
mode:
authorheqnx <root@heqnx.com>2025-05-25 11:51:57 +0300
committerheqnx <root@heqnx.com>2025-05-25 11:51:57 +0300
commit8fb0b275bf00c963a24c21e1dfbaa64491c4f445 (patch)
tree28e9b4bbf0d4391f092f832d8f00d84ec20fed4f /roles/tor/handlers
parent7c8ed923df3c02338dfbf826fd6fd9a23dac502e (diff)
downloadansible-playbooks-8fb0b275bf00c963a24c21e1dfbaa64491c4f445.tar.gz
ansible-playbooks-8fb0b275bf00c963a24c21e1dfbaa64491c4f445.zip
added role-based playbooks
Diffstat (limited to 'roles/tor/handlers')
-rw-r--r--roles/tor/handlers/main.yaml6
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/tor/handlers/main.yaml b/roles/tor/handlers/main.yaml
new file mode 100644
index 0000000..8903ad6
--- /dev/null
+++ b/roles/tor/handlers/main.yaml
@@ -0,0 +1,6 @@
+- name: restart tor
+ systemd:
+ name: tor
+ state: restarted
+ enabled: true
+ when: ansible_facts['service_mgr'] == 'systemd'