diff options
author | heqnx <root@heqnx.com> | 2025-05-29 19:34:32 +0300 |
---|---|---|
committer | heqnx <root@heqnx.com> | 2025-05-29 19:34:32 +0300 |
commit | b8f1d76bd38d03e68fbc51f8e7340a9963a4104d (patch) | |
tree | 1cf7347b862e4c6059463ea6b811f44a0d37c41c /roles/sliver-c2/tasks | |
parent | 0e9c8dc71a87b86a9d99c82b5f9aaa37dffeb9bd (diff) | |
download | ansible-playbooks-b8f1d76bd38d03e68fbc51f8e7340a9963a4104d.tar.gz ansible-playbooks-b8f1d76bd38d03e68fbc51f8e7340a9963a4104d.zip |
removed handlers, need to run all the time
Diffstat (limited to 'roles/sliver-c2/tasks')
-rw-r--r-- | roles/sliver-c2/tasks/sliver_configure.yaml | 8 | ||||
-rw-r--r-- | roles/sliver-c2/tasks/sliver_systemd.yaml | 11 |
2 files changed, 18 insertions, 1 deletions
diff --git a/roles/sliver-c2/tasks/sliver_configure.yaml b/roles/sliver-c2/tasks/sliver_configure.yaml index b90d955..cd3fa04 100644 --- a/roles/sliver-c2/tasks/sliver_configure.yaml +++ b/roles/sliver-c2/tasks/sliver_configure.yaml @@ -28,7 +28,13 @@ loop_control: loop_var: operator command: /opt/sliver/sliver-server operator --name {{ operator }} --lhost {{ sliver_server }} --save /root/.sliver-client/configs - notify: sliver systemd handler + +- name: sliver systemd handler + systemd: + name: sliver + state: restarted + enabled: true + when: ansible_service_mgr == 'systemd' - name: fix permissions for .sliver-client directory file: diff --git a/roles/sliver-c2/tasks/sliver_systemd.yaml b/roles/sliver-c2/tasks/sliver_systemd.yaml index 3b29f0f..40ff890 100644 --- a/roles/sliver-c2/tasks/sliver_systemd.yaml +++ b/roles/sliver-c2/tasks/sliver_systemd.yaml @@ -8,3 +8,14 @@ notify: - reload systemd - sliver systemd handler + +- name: reload systemd + command: systemctl daemon-reload + when: ansible_service_mgr == 'systemd' + +- name: sliver systemd handler + systemd: + name: sliver + state: restarted + enabled: true + when: ansible_service_mgr == 'systemd' |