l50.sliver
Ansible Role: Sliver
Deprecated
This role has been moved to this new location.
This role helps to install Sliver on Linux machines.
Role Variables
You can find the available variables below, along with their default settings (see defaults/main.yml
):
- Path for the Sliver install script:
install_path: /tmp/install-sliver.sh
- Enable setting up a Sliver systemd service (default: false):
setup_systemd: true
Example Playbooks
To install Sliver and set up the systemd service:
- hosts: all
become: true
vars:
setup_systemd: true
roles:
- role: l50.sliver
To install and configure Sliver with specific 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
Local Development
For local development, run the following commands:
PATH_TO_ROLE="${PWD}"
ln -s "${PATH_TO_ROLE}" "${HOME}/.ansible/roles/l50.sliver"
Testing
To test any changes made to this role, use the following commands:
# For Apple Silicon machines:
if [[ "$(uname -a | awk '{ print $NF }')" == "arm64" ]]; then
export DOCKER_DEFAULT_PLATFORM=linux/arm64
fi
molecule create
molecule converge
molecule idempotence
# If everything works, remove the docker container created by molecule:
molecule destroy
Installa
ansible-galaxy install l50.sliver
Licenza
mit
Download
2.5k
Proprietario