diff options
| author | heqnx <root@heqnx.com> | 2025-05-25 08:23:11 +0300 | 
|---|---|---|
| committer | heqnx <root@heqnx.com> | 2025-05-25 08:23:11 +0300 | 
| commit | 56b09942c04c191b7581a26e1375226d40709a34 (patch) | |
| tree | 4042a01a25b62ac16571b1dc86daf9fe2c6313d9 /sliver-c2/handlers | |
| parent | bcd55b16115ed51075686a68402134680ac80ae9 (diff) | |
| download | ansible-playbooks-56b09942c04c191b7581a26e1375226d40709a34.tar.gz ansible-playbooks-56b09942c04c191b7581a26e1375226d40709a34.zip | |
added sliver ansible playbook
Diffstat (limited to 'sliver-c2/handlers')
| -rw-r--r-- | sliver-c2/handlers/main.yaml | 30 | 
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' |