Compare commits

...

2 Commits

Author SHA1 Message Date
691a934297 Genericize the inclusion of libraspberrypi-bin 2021-08-07 17:23:15 -05:00
d68e3430a8 Modularize zerotier as well 2021-08-07 17:14:28 -05:00
4 changed files with 19 additions and 7 deletions

View File

@ -11,5 +11,7 @@ api_endpoint: "https://netbox.desu.ltd"
group_by:
- device_roles
- tags
- device_types
- manufacturers
device_query_filters:
- has_primary_ip: "true"

View File

@ -25,8 +25,6 @@
tags: [ desktop, udev ]
- role: pulseaudio
tags: [ desktop, pulse, pulseaudio ]
- role: zerotier
tags: [ desktop, zerotier ]
- hosts: lap-s76-lemp9-0.desu.ltd
roles:
- role: desktop

View File

@ -2,12 +2,9 @@
# vim:ft=ansible:
---
# General configuration
- hosts: tags_pis
roles:
- role: zerotier
tags: [ pis, zerotier ]
- hosts: manufacturers_raspi
tasks:
- name: install basic packages
- name: install raspi packages
apt:
name:
- libraspberrypi-bin

15
playbooks/zerotier.yml Executable file
View File

@ -0,0 +1,15 @@
#!/usr/bin/env ansible-playbook
# vim:ft=ansible:
---
- hosts: tags_zerotier
roles:
- role: zerotier
tags: [ zerotier ]
- hosts: all
tasks:
- name: disable zerotier when not tagged
systemd: name={{ item }} state=stopped enabled=no
with_items:
- zerotier-one.service
when: "'tags_zerotier' not in group_names and item in services"
tags: [ zerotier ]