This role has been moved to https://github.com/l50/ansible-collection-arsenal/tree/main/roles/sliver.
This role installs Sliver on Linux hosts.
Available variables are listed below, along with default values (see defaults/main.yml
):
Path to the Sliver install script.
install_path: /tmp/install-sliver.sh
Setup Sliver systemd service (default: false).
setup_systemd: true
Install Sliver and setup systemd service.
- hosts: all
become: true
vars:
setup_systemd: true
roles:
- role: l50.sliver
Install and configure Sliver with custom file paths.
- hosts: all
become: true
vars:
server_path: /root/sliver-server
client_path: /usr/local/bin/sliver
sliver_service_path: /etc/systemd/system/sliver.service
sliver_client_config_path: /root/.sliver-client/configs
roles:
- role: l50.sliver
Make sure to run the following to develop locally:
PATH_TO_ROLE="${PWD}"
ln -s "${PATH_TO_ROLE}" "${HOME}/.ansible/roles/l50.sliver"
To test changes made to this role, run the following commands:
# If on an Apple Silicon machine:
if [[ "$(uname -a | awk '{ print $NF }')" == "arm64" ]]; then
export DOCKER_DEFAULT_PLATFORM=linux/arm64
fi
molecule create
molecule converge
molecule idempotence
# If everything passed, tear down the docker container spawned by molecule:
molecule destroy