diff options
| author | heqnx <root@heqnx.com> | 2025-05-25 08:33:41 +0300 | 
|---|---|---|
| committer | heqnx <root@heqnx.com> | 2025-05-25 08:33:41 +0300 | 
| commit | 1f073d1d2114bcb66baadaa6bfa15ab8a27faa59 (patch) | |
| tree | a9cab4d78cd24dfaed26f9677a382f94a1927f3f /sliver-c2/tasks | |
| parent | 56b09942c04c191b7581a26e1375226d40709a34 (diff) | |
| download | ansible-playbooks-1f073d1d2114bcb66baadaa6bfa15ab8a27faa59.tar.gz ansible-playbooks-1f073d1d2114bcb66baadaa6bfa15ab8a27faa59.zip | |
added different home dir for sliver
Diffstat (limited to 'sliver-c2/tasks')
| -rw-r--r-- | sliver-c2/tasks/sliver_configure.yaml | 9 | 
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 |