summaryrefslogtreecommitdiff
path: root/roles/xray/handlers/main.yaml
diff options
context:
space:
mode:
authorrepliqa <sarzilhossain@proton.me>2025-07-23 14:06:15 +0600
committerrepliqa <sarzilhossain@proton.me>2025-07-23 14:06:15 +0600
commit69acb7a82a68eeb439e55b994281056df52c81b1 (patch)
tree7c6a53694e11511a3014470c213255a503f9c95e /roles/xray/handlers/main.yaml
v0.0.1alphaHEADmain
Diffstat (limited to 'roles/xray/handlers/main.yaml')
-rw-r--r--roles/xray/handlers/main.yaml11
1 files changed, 11 insertions, 0 deletions
diff --git a/roles/xray/handlers/main.yaml b/roles/xray/handlers/main.yaml
new file mode 100644
index 00000000..63ee84c8
--- /dev/null
+++ b/roles/xray/handlers/main.yaml
@@ -0,0 +1,11 @@
+---
+- name: restart_xray
+ ansible.builtin.service:
+ name: xray
+ state: restarted
+ enabled: true
+
+- name: remove_xray_tempdir
+ ansible.builtin.file:
+ path: "{{ xray_tempdir.path }}"
+ state: absent