summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkadecole <kcole@yahoo.com>2015-06-17 23:16:47 -0500
committerkadecole <kcole@yahoo.com>2015-06-17 23:16:47 -0500
commit10c936c1a64b12ad139c214ae7f7444b670b84c3 (patch)
tree0c9e1c58a182e30f836f1e59f1c208a7691459a0
parent77ffe90601c9207470b27a8a3625a38a0912cb11 (diff)
downloadntp-10c936c1a64b12ad139c214ae7f7444b670b84c3.tar.gz
ntp-10c936c1a64b12ad139c214ae7f7444b670b84c3.tar.bz2
ntp-10c936c1a64b12ad139c214ae7f7444b670b84c3.tar.xz
ntp-10c936c1a64b12ad139c214ae7f7444b670b84c3.zip
Added support for FreeBSD
-rw-r--r--meta/main.yml3
-rw-r--r--tasks/main.yml4
-rw-r--r--vars/FreeBSD.yml2
3 files changed, 9 insertions, 0 deletions
diff --git a/meta/main.yml b/meta/main.yml
index 0c5ecdc..2731fc2 100644
--- a/meta/main.yml
+++ b/meta/main.yml
@@ -17,5 +17,8 @@ galaxy_info:
- name: Ubuntu
versions:
- all
+ - name: FreeBSD
+ versions:
+ - all
categories:
- system
diff --git a/tasks/main.yml b/tasks/main.yml
index 9ae6783..b71ac16 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -13,6 +13,10 @@
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: Ensure NTP is running and enabled at system start.
service: >
name={{ ntp_daemon }}
diff --git a/vars/FreeBSD.yml b/vars/FreeBSD.yml
new file mode 100644
index 0000000..430d7d0
--- /dev/null
+++ b/vars/FreeBSD.yml
@@ -0,0 +1,2 @@
+---
+ntp_daemon: ntpd