From e6d7a8c66fee02a6f498a3b62a49000d53411ebd Mon Sep 17 00:00:00 2001 From: diodonfrost Date: Fri, 28 Dec 2018 12:37:38 +0100 Subject: [PATCH] add OpenBSD support --- README.md | 4 ++++ meta/main.yml | 4 ++++ tasks/packages/setup-OpenBSD.yml | 13 +++++++++++++ vars/OpenBSD.yml | 2 ++ 4 files changed, 23 insertions(+) create mode 100644 tasks/packages/setup-OpenBSD.yml create mode 100644 vars/OpenBSD.yml diff --git a/README.md b/README.md index 367fe00..5538448 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,10 @@ Supported platforms: - 11.2 - 10.4 - 10.3 +- name: OpenBSD + versions: + - 6.0 + - 6.4 ``` ## Role Variables diff --git a/meta/main.yml b/meta/main.yml index cd4e354..f5246b4 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -63,6 +63,10 @@ galaxy_info: - 11.2 - 10.4 - 10.3 + - name: OpenBSD + versions: + - 6.0 + - 6.4 galaxy_tags: - system diff --git a/tasks/packages/setup-OpenBSD.yml b/tasks/packages/setup-OpenBSD.yml new file mode 100644 index 0000000..e1f3ed4 --- /dev/null +++ b/tasks/packages/setup-OpenBSD.yml @@ -0,0 +1,13 @@ +--- +# Tasks file for install ntp daemon on OpenBSD system + +- name: Install ntp daemon on OpenBSD + package: + name: "{{ ntp_package }}" + state: present + +- name: Service ntp on OpenBSD + service: + name: "{{ ntp_service }}" + enabled: yes + state: started diff --git a/vars/OpenBSD.yml b/vars/OpenBSD.yml new file mode 100644 index 0000000..cba4248 --- /dev/null +++ b/vars/OpenBSD.yml @@ -0,0 +1,2 @@ +ntp_package: ntp +ntp_service: ntpd