From b5de12a76796bc69906b7e6776086fea49d30395 Mon Sep 17 00:00:00 2001 From: Jacob Babor Date: Fri, 17 Jan 2025 02:10:31 -0600 Subject: [PATCH] Improve zerotier checks --- roles/zerotier/tasks/main.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/roles/zerotier/tasks/main.yml b/roles/zerotier/tasks/main.yml index cb53cbc..d551bc4 100644 --- a/roles/zerotier/tasks/main.yml +++ b/roles/zerotier/tasks/main.yml @@ -1,9 +1,13 @@ #!/usr/bin/env ansible-playbook # vim:ft=ansible: --- -- name: check for zerotier +- name: check for zerotier in /usr/bin stat: path=/usr/bin/zerotier-cli register: zerotier_cli_path +- name: check for zerotier in /usr/sbin + stat: path=/usr/sbin/zerotier-cli + register: zerotier_cli_path + when: not zerotier_cli_path.stat.exists - name: install zerotier if we're joining networks block: - name: configure zerotier for apt