Move zerotier into its own role

This commit is contained in:
Salt 2020-06-16 09:14:33 -05:00
parent e0169f8915
commit 37a85f625f
2 changed files with 16 additions and 0 deletions

View File

@ -52,6 +52,15 @@
64303363653631653433343361616635373966326433663466636164613062343561333036613937
35616666633737356331653632323639373330396433366639326466373639313630
tags: [ user ]
- role: zerotier
vars:
zerotier_network_id: !vault |
$ANSIBLE_VAULT;1.1;AES256
35646131343239623265663562343333383362366633386462646465643163353866643633636135
6238643231313536323337343663313865323430323437630a353462393830376431376363373232
30656433343263653035333637336165323931363966376264353164326135336131646362623734
3339633961393864330a616437613534643231366634643362383438316233376334636264303361
65313231393433396538663463383731303661633663343066333264303330313133
- role: ansiblehost
vars:
pullplaybook: "desktop.yml"

View File

@ -20,4 +20,11 @@
apt:
name:
- zerotier-one
- name: Join network
command:
argv:
- "zerotier-cli"
- "join"
- "{{ zerotier_network_id }}"
changed_when: no
become: yes