From 189a72de6ce93c453889afbdf463cb4f8a4694a6 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Tue, 13 Jul 2021 06:15:03 -0500 Subject: [PATCH] Create HUGO file. --- tasks/server/software/hugo.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tasks/server/software/hugo.yml diff --git a/tasks/server/software/hugo.yml b/tasks/server/software/hugo.yml new file mode 100644 index 0000000..c81a813 --- /dev/null +++ b/tasks/server/software/hugo.yml @@ -0,0 +1,17 @@ +# Install HUGO to host sites like parrotsec.org + +- name: Server | Software | HUGO | Variables (apt) + set_fact: + hugo_package: hugo + when: ansible_pkg_mgr == "apt" + +- name: Server | Software | HUGO | Variables (FreeBSD) + set_fact: + hugo_package: gohugo + when: ansible_system == "FreeBSD" + + +- name: Server | Software | HUGO | Variables (FreeBSD) + package: + name: "{{ hugo_package }}" + state: present \ No newline at end of file