aboutsummaryrefslogtreecommitdiff
path: root/roles/sliver-c2/tasks/sliver_configure.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/sliver-c2/tasks/sliver_configure.yaml')
-rw-r--r--roles/sliver-c2/tasks/sliver_configure.yaml8
1 files changed, 7 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: