Install the ZeroTier network client on the target system. Requires Ansible 2.4 or later.
Assumes the role is being run with become capabilities on the target system.
The following variables may be defined to customize this role:
zerotier_state
: One ofpresent
,latest
orabsent
. Indicates whether to install, upgrade or remove ZeroTier. Default ispresent
.zerotier_network
: ZeroTier network ID to join (16 hex digits).zerotier_network_state
: One ofpresent
orabsent
. Indicates whether to join or leave network. Default ispresent
.
The following example playbook installs the ZeroTier client and joins a network:
- name: install zerotier
hosts: all
roles:
- name: cchurch.zerotier
vars:
zerotier_state: present
zerotier_network: "deadbeefcafe1234"
BSD
Chris Church (cchurch)