sliver

Ansible Role: Sliver

Pre-Commit Molecule Test Ansible Galaxy License

Deprecated

This role has been moved to https://github.com/l50/ansible-collection-arsenal/tree/main/roles/sliver.


This role installs Sliver on Linux hosts.


Role Variables

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

Example Playbooks

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

Local Development

Make sure to run the following to develop locally:

PATH_TO_ROLE="${PWD}"
ln -s "${PATH_TO_ROLE}" "${HOME}/.ansible/roles/l50.sliver"

Testing

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
About

Install Sliver for Linux hosts.

Install
ansible-galaxy install l50/ansible-sliver
GitHub repository
License
mit
Downloads
2431