summaryrefslogtreecommitdiffstats
path: root/tasks
diff options
context:
space:
mode:
authorJeff Geerling <geerlingguy@mac.com>2017-04-01 15:53:03 -0500
committerJeff Geerling <geerlingguy@mac.com>2017-04-01 15:53:03 -0500
commit27b71feaa79024126033f4410205804b3c657399 (patch)
tree68f135d11a2d0e5a773b441aaf459de1b7e1f76d /tasks
parent61cf403dd97e43c16e05dc0dd03694df1543574f (diff)
downloadntp-27b71feaa79024126033f4410205804b3c657399.tar.gz
ntp-27b71feaa79024126033f4410205804b3c657399.tar.bz2
ntp-27b71feaa79024126033f4410205804b3c657399.tar.xz
ntp-27b71feaa79024126033f4410205804b3c657399.zip
Optimize installation, make things work better.
Diffstat (limited to 'tasks')
-rw-r--r--tasks/main.yml13
1 files changed, 2 insertions, 11 deletions
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: