diff --git a/playbooks/tags_zerotier.yml b/playbooks/tags_zerotier.yml deleted file mode 100755 index bf6eb1e..0000000 --- a/playbooks/tags_zerotier.yml +++ /dev/null @@ -1,15 +0,0 @@ -#!/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 ] diff --git a/playbooks/tags_zt-personal.yml b/playbooks/tags_zt-personal.yml new file mode 100755 index 0000000..80844cd --- /dev/null +++ b/playbooks/tags_zt-personal.yml @@ -0,0 +1,15 @@ +#!/usr/bin/env ansible-playbook +# vim:ft=ansible: +--- +- hosts: tags_zt-personal + 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_zt-personal' not in group_names and item in services" +# tags: [ zerotier ] diff --git a/site.yml b/site.yml index b5c82c1..49cf5cd 100755 --- a/site.yml +++ b/site.yml @@ -11,8 +11,9 @@ # Manufacturer configuration - import_playbook: playbooks/manufacturers_raspi.yml - import_playbook: playbooks/manufacturers_s76.yml + # Zerotier network configuration +- import_playbook: playbooks/tags_zt-personal.yml # Tags for fundamental services -- import_playbook: playbooks/tags_zerotier.yml - import_playbook: playbooks/tags_snmp.yml - import_playbook: playbooks/tags_nagios.yml # Role (in the Netbox sense) configuration