Add sudo for install and zerotier-cli commands

pull/24/head
Donovan Finch 2018-11-30 13:08:03 -08:00
parent 89c5635b5d
commit 74017ebd0a
2 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,7 @@
shell: zerotier-cli info | awk '{print $3}'
register: nodeid
changed_when: false
become: yes
- name: Set NodeID as fact
set_fact:

View File

@ -3,6 +3,7 @@
- import_tasks: install.yml
when:
- not skip_install|default(false)|bool
become: yes
- import_tasks: authorize_node.yml
when:
@ -11,3 +12,4 @@
- import_tasks: join_network.yml
when:
- zerotier_network_id is defined
become: yes