Add Zerotier to the list of things to do for desktops

This commit is contained in:
Salt 2020-06-16 08:58:38 -05:00
parent 59df24dc13
commit e0169f8915
3 changed files with 26 additions and 0 deletions

View File

@ -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 }}"

View File

@ -16,6 +16,7 @@
- name: Update APT cache
apt:
update_cache: yes
cache_valid_time: 86400
- name: Install packages
apt:
name:

View 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