Conditionally run reflector role rather than manually defining which machines run arch

This commit is contained in:
Jake Howard 2020-08-19 18:58:58 +01:00
parent 63ec7c671a
commit a5aa21429c
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -5,6 +5,8 @@
become: true become: true
vars: vars:
ntp_timezone: Europe/London ntp_timezone: Europe/London
- role: realorangeone.reflector
when: ansible_os_family == 'Archlinux'
- hosts: casey - hosts: casey
roles: roles:
@ -35,14 +37,6 @@
- duplicati - duplicati
- grafana - grafana
# Arch boxes
- hosts:
- grimes
- casey
- walker
roles:
- realorangeone.reflector
- hosts: walker - hosts: walker
roles: roles:
- contessa - contessa