Compare commits
2 Commits
759df2f593
...
691a934297
Author | SHA1 | Date | |
---|---|---|---|
691a934297 | |||
d68e3430a8 |
@ -11,5 +11,7 @@ api_endpoint: "https://netbox.desu.ltd"
|
|||||||
group_by:
|
group_by:
|
||||||
- device_roles
|
- device_roles
|
||||||
- tags
|
- tags
|
||||||
|
- device_types
|
||||||
|
- manufacturers
|
||||||
device_query_filters:
|
device_query_filters:
|
||||||
- has_primary_ip: "true"
|
- has_primary_ip: "true"
|
||||||
|
@ -25,8 +25,6 @@
|
|||||||
tags: [ desktop, udev ]
|
tags: [ desktop, udev ]
|
||||||
- role: pulseaudio
|
- role: pulseaudio
|
||||||
tags: [ desktop, pulse, pulseaudio ]
|
tags: [ desktop, pulse, pulseaudio ]
|
||||||
- role: zerotier
|
|
||||||
tags: [ desktop, zerotier ]
|
|
||||||
- hosts: lap-s76-lemp9-0.desu.ltd
|
- hosts: lap-s76-lemp9-0.desu.ltd
|
||||||
roles:
|
roles:
|
||||||
- role: desktop
|
- role: desktop
|
||||||
|
@ -2,12 +2,9 @@
|
|||||||
# vim:ft=ansible:
|
# vim:ft=ansible:
|
||||||
---
|
---
|
||||||
# General configuration
|
# General configuration
|
||||||
- hosts: tags_pis
|
- hosts: manufacturers_raspi
|
||||||
roles:
|
|
||||||
- role: zerotier
|
|
||||||
tags: [ pis, zerotier ]
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: install basic packages
|
- name: install raspi packages
|
||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
- libraspberrypi-bin
|
- libraspberrypi-bin
|
||||||
|
15
playbooks/zerotier.yml
Executable file
15
playbooks/zerotier.yml
Executable 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 ]
|
Loading…
Reference in New Issue
Block a user