aboutsummaryrefslogtreecommitdiff
path: root/sliver-c2/handlers/main.yaml
diff options
context:
space:
mode:
authorheqnx <root@heqnx.com>2025-05-25 08:23:11 +0300
committerheqnx <root@heqnx.com>2025-05-25 08:23:11 +0300
commit56b09942c04c191b7581a26e1375226d40709a34 (patch)
tree4042a01a25b62ac16571b1dc86daf9fe2c6313d9 /sliver-c2/handlers/main.yaml
parentbcd55b16115ed51075686a68402134680ac80ae9 (diff)
downloadansible-playbooks-56b09942c04c191b7581a26e1375226d40709a34.tar.gz
ansible-playbooks-56b09942c04c191b7581a26e1375226d40709a34.zip
added sliver ansible playbook
Diffstat (limited to 'sliver-c2/handlers/main.yaml')
-rw-r--r--sliver-c2/handlers/main.yaml30
1 files changed, 30 insertions, 0 deletions
diff --git a/sliver-c2/handlers/main.yaml b/sliver-c2/handlers/main.yaml
new file mode 100644
index 0000000..a6c8d49
--- /dev/null
+++ b/sliver-c2/handlers/main.yaml
@@ -0,0 +1,30 @@
+- name: update grub
+ command: update-grub
+
+- name: reload fail2ban
+ command: fail2ban-client reload
+
+- name: reload systemd daemon
+ command: systemctl daemon-reload
+ when: ansible_facts['service_mgr'] == 'systemd'
+
+- name: restart ssh
+ systemd:
+ name: ssh
+ state: restarted
+ enabled: true
+ when: ansible_facts['service_mgr'] == 'systemd'
+
+- name: restart fail2ban
+ systemd:
+ name: fail2ban
+ state: restarted
+ enabled: true
+ when: ansible_facts['service_mgr'] == 'systemd'
+
+- name: sliver systemd handler
+ systemd:
+ name: sliver
+ state: restarted
+ enabled: true
+ when: ansible_facts['service_mgr'] == 'systemd'