From 27b71feaa79024126033f4410205804b3c657399 Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Sat, 1 Apr 2017 15:53:03 -0500 Subject: Optimize installation, make things work better. --- tasks/main.yml | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'tasks') diff --git a/tasks/main.yml b/tasks/main.yml index b0379a2..c5a4d7f 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -17,17 +17,8 @@ force: yes when: ansible_os_family == 'Debian' -- name: Install NTP (RedHat). - yum: name=ntp state=installed - when: ansible_os_family == 'RedHat' - -- name: Install NTP (Debian). - apt: name=ntp state=installed - when: ansible_os_family == 'Debian' - -- name: Install NTP (FreeBSD). - pkgng: name=ntp state=present - when: ansible_os_family == 'FreeBSD' +- name: Install NTP. + package: name=ntp state=present - name: Ensure NTP is running and enabled as configured. service: -- cgit v1.2.3