Add Zerotier to the list of things to do for desktops
This commit is contained in:
parent
59df24dc13
commit
e0169f8915
@ -40,6 +40,8 @@
|
||||
include_tasks: packages.yml
|
||||
- name: Configure Mopidy
|
||||
include_tasks: mopidy.yml
|
||||
- name: Configure Zerotier
|
||||
include_tasks: zerotier.yml
|
||||
- name: Stop services
|
||||
systemd:
|
||||
name: "{{ item }}"
|
||||
|
@ -16,6 +16,7 @@
|
||||
- name: Update APT cache
|
||||
apt:
|
||||
update_cache: yes
|
||||
cache_valid_time: 86400
|
||||
- name: Install packages
|
||||
apt:
|
||||
name:
|
||||
|
23
roles/desktop/tasks/zerotier.yml
Normal file
23
roles/desktop/tasks/zerotier.yml
Normal file
@ -0,0 +1,23 @@
|
||||
#!/usr/bin/ansible-playbook
|
||||
# vim:ft=ansible:
|
||||
---
|
||||
- name: Configure system packages
|
||||
block:
|
||||
- name: Add zerotier repo key
|
||||
apt_key:
|
||||
url: "https://raw.githubusercontent.com/zerotier/ZeroTierOne/master/doc/contact%40zerotier.com.gpg"
|
||||
- name: Add repos
|
||||
apt_repository:
|
||||
repo: "{{ item }}"
|
||||
loop:
|
||||
# These repos work for Buster and >=19.10
|
||||
- "deb http://download.zerotier.com/debian/buster buster main"
|
||||
- name: Update APT cache
|
||||
apt:
|
||||
update_cache: yes
|
||||
cache_valid_time: 86400
|
||||
- name: Install packages
|
||||
apt:
|
||||
name:
|
||||
- zerotier-one
|
||||
become: yes
|
Loading…
Reference in New Issue
Block a user