Correct zerotier role to be more clear about apt-centricity
This commit is contained in:
parent
d0d4437cdd
commit
775bbeff5f
@ -1,14 +1,17 @@
|
|||||||
#!/usr/bin/env ansible-playbook
|
#!/usr/bin/env ansible-playbook
|
||||||
# vim:ft=ansible:
|
# vim:ft=ansible:
|
||||||
---
|
---
|
||||||
- name: ensure zerotier repo key
|
- name: configure zerotier for apt
|
||||||
apt_key: url=https://raw.githubusercontent.com/zerotier/ZeroTierOne/master/doc/contact%40zerotier.com.gpg
|
block:
|
||||||
- name: ensure zerotier repo
|
- name: ensure zerotier repo key
|
||||||
apt_repository: repo="deb http://download.zerotier.com/debian/buster buster main"
|
apt_key: url=https://raw.githubusercontent.com/zerotier/ZeroTierOne/master/doc/contact%40zerotier.com.gpg
|
||||||
- name: update apt cache
|
- name: ensure zerotier repo
|
||||||
apt: update_cache=yes cache_valid_time=86400
|
apt_repository: repo="deb http://download.zerotier.com/debian/buster buster main"
|
||||||
- name: ensure packages
|
- name: update apt cache
|
||||||
apt: name=zerotier-one
|
apt: update_cache=yes cache_valid_time=86400
|
||||||
|
- name: ensure packages
|
||||||
|
apt: name=zerotier-one
|
||||||
|
when: ansible_pkg_mgr == "apt"
|
||||||
- name: template unit file
|
- name: template unit file
|
||||||
template: src=zerotier-one.service dest=/etc/systemd/system/zerotier-one.service
|
template: src=zerotier-one.service dest=/etc/systemd/system/zerotier-one.service
|
||||||
notify: restart zerotier
|
notify: restart zerotier
|
||||||
|
Loading…
Reference in New Issue
Block a user