From 86b8f5a1028386665c2c43bff2962b8ea476be78 Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Sun, 11 Jun 2017 14:45:59 -0500 Subject: Fixes #33: Install tzdata alongside ntp so timezone data is present. --- tasks/main.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'tasks') diff --git a/tasks/main.yml b/tasks/main.yml index 8a14050..a022447 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -2,15 +2,18 @@ - name: Include OS-specific variables. include_vars: "{{ ansible_os_family }}.yml" +- name: Ensure NTP-related packages are installed. + package: + name: "{{ item }}" + state: present + with_items: + - ntp + - tzdata + - name: Set timezone timezone: name: "{{ ntp_timezone }}" -- name: Install NTP. - package: - name: ntp - state: present - - name: Ensure NTP is running and enabled as configured. service: name: "{{ ntp_daemon }}" -- cgit v1.2.3