summaryrefslogtreecommitdiffstats
path: root/tasks/main.yml
diff options
context:
space:
mode:
authorJeff Geerling <geerlingguy@mac.com>2017-04-01 16:13:19 -0500
committerGitHub <noreply@github.com>2017-04-01 16:13:19 -0500
commitcdd7bcd824c68209b0664ba62cf9e7b50e715d3a (patch)
tree3b3a85f35c718b69248008e252a4679c55fb8a4b /tasks/main.yml
parent1109fb207af21ed0a529ae03101aa521e7069dca (diff)
parentfd5694f2f65b36c394c4933a6fc4ccbc24d12830 (diff)
downloadntp-cdd7bcd824c68209b0664ba62cf9e7b50e715d3a.tar.gz
ntp-cdd7bcd824c68209b0664ba62cf9e7b50e715d3a.tar.bz2
ntp-cdd7bcd824c68209b0664ba62cf9e7b50e715d3a.tar.xz
ntp-cdd7bcd824c68209b0664ba62cf9e7b50e715d3a.zip
Merge pull request #24 from geerlingguy/test-abstraction
Test abstraction
Diffstat (limited to 'tasks/main.yml')
-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: