aboutsummaryrefslogtreecommitdiff
path: root/roles/xrdp/handlers/main.yaml
diff options
context:
space:
mode:
authorheqnx <root@heqnx.com>2025-05-26 08:59:02 +0300
committerheqnx <root@heqnx.com>2025-05-26 08:59:02 +0300
commita529d1f47572e240118c453d87f06ddde1232e65 (patch)
treebbbafb19296d6aa7bd8a61bc1a962e71ac6d069e /roles/xrdp/handlers/main.yaml
parentf1a930a111bc039c3bba6666c67c1783411d1c69 (diff)
downloadansible-playbooks-a529d1f47572e240118c453d87f06ddde1232e65.tar.gz
ansible-playbooks-a529d1f47572e240118c453d87f06ddde1232e65.zip
added restart handlers
Diffstat (limited to 'roles/xrdp/handlers/main.yaml')
-rw-r--r--roles/xrdp/handlers/main.yaml13
1 files changed, 13 insertions, 0 deletions
diff --git a/roles/xrdp/handlers/main.yaml b/roles/xrdp/handlers/main.yaml
new file mode 100644
index 0000000..5790f8b
--- /dev/null
+++ b/roles/xrdp/handlers/main.yaml
@@ -0,0 +1,13 @@
+- name: restart xrdp
+ systemd:
+ name: xrdp
+ state: restarted
+ enabled: true
+ when: ansible_facts['service_mgr'] == 'systemd'
+
+- name: restart xrdp-sesman
+ systemd:
+ name: xrdp-sesman
+ state: restarted
+ enabled: true
+ when: ansible_facts['service_mgr'] == 'systemd'