aboutsummaryrefslogtreecommitdiff
path: root/sliver-c2/tasks/sliver_configure.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'sliver-c2/tasks/sliver_configure.yaml')
-rw-r--r--sliver-c2/tasks/sliver_configure.yaml9
1 files changed, 4 insertions, 5 deletions
diff --git a/sliver-c2/tasks/sliver_configure.yaml b/sliver-c2/tasks/sliver_configure.yaml
index 68d2ba4..bf4797e 100644
--- a/sliver-c2/tasks/sliver_configure.yaml
+++ b/sliver-c2/tasks/sliver_configure.yaml
@@ -1,6 +1,6 @@
- name: ensure .sliver config directory exists
file:
- path: /root/.sliver/configs
+ path: "{{ install_path }}/.sliver/configs"
state: directory
owner: root
group: root
@@ -9,7 +9,7 @@
- name: deploy custom server.json config
template:
src: server.json.j2
- dest: /root/.sliver/configs/server.json
+ dest: "{{ install_path }}/.sliver/configs/server.json"
owner: root
group: root
mode: '0600'
@@ -17,7 +17,7 @@
- name: ensure sliver client config directory exists
file:
- path: /root/.sliver-client/configs
+ path: "{{ install_path }}/.sliver-client/configs"
state: directory
owner: root
group: root
@@ -27,8 +27,7 @@
loop: "{{ sliver_operators }}"
loop_control:
loop_var: operator
- command: >
- /opt/sliver/sliver-server operator --name {{ operator }} --lhost {{ sliver_server }} --save /root/.sliver-client/configs
+ command: /opt/sliver/sliver-server operator --name {{ operator }} --lhost {{ sliver_server }} --save /root/.sliver-client/configs
notify: sliver systemd handler
- name: fix permissions for .sliver-client directory