From c6d9102e1ebf0d61276fce769b318262725a74d8 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 4 Mar 2021 15:45:47 +0000 Subject: [PATCH] Don't install NTP on LXC containers This can cause issues with containers trying to sync the system clock, and getting it wrong --- ansible/main.yml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/ansible/main.yml b/ansible/main.yml index b335edd..4e9fae9 100644 --- a/ansible/main.yml +++ b/ansible/main.yml @@ -1,12 +1,6 @@ - hosts: all roles: - base - - role: geerlingguy.ntp - become: true - vars: - ntp_timezone: "{{ TZ }}" - ntp_manage_config: true - when: ansible_os_family != 'Alpine' # https://github.com/ansible-collections/community.general/issues/781 - role: realorangeone.reflector when: ansible_os_family == 'Archlinux' @@ -15,6 +9,20 @@ - gateway - nebula +- hosts: + - pve + - casey + - grimes + - ingress + - deluge + roles: + - role: geerlingguy.ntp + become: true + vars: + ntp_timezone: "{{ TZ }}" + ntp_manage_config: true + when: ansible_os_family != 'Alpine' # https://github.com/ansible-collections/community.general/issues/781 + - hosts: - grimes - pve-docker