From a5aa21429c6857b03b8c60bc7ae79292efcc79c0 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 19 Aug 2020 18:58:58 +0100 Subject: [PATCH] Conditionally run reflector role rather than manually defining which machines run arch --- ansible/main.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/ansible/main.yml b/ansible/main.yml index ac11543..4627c8e 100644 --- a/ansible/main.yml +++ b/ansible/main.yml @@ -5,6 +5,8 @@ become: true vars: ntp_timezone: Europe/London + - role: realorangeone.reflector + when: ansible_os_family == 'Archlinux' - hosts: casey roles: @@ -35,14 +37,6 @@ - duplicati - grafana -# Arch boxes -- hosts: - - grimes - - casey - - walker - roles: - - realorangeone.reflector - - hosts: walker roles: - contessa