commit 38200536b616434fd0e6b5ce52e017c42b5091fe Author: Radar231 Date: Thu Dec 23 07:13:39 2021 -0500 initial checkin diff --git a/README.md b/README.md new file mode 100644 index 0000000..17c29ba --- /dev/null +++ b/README.md @@ -0,0 +1,6 @@ +# Ansible Role: sops + +## Introduction + +This role will install the mozilla sops application. + diff --git a/meta/main.yml b/meta/main.yml new file mode 100644 index 0000000..eb37897 --- /dev/null +++ b/meta/main.yml @@ -0,0 +1,9 @@ +galaxy_info: + author: radar231 + + license: license (GPL-2.0-or-later, MIT, etc) + min_ansible_version: 2.1 + galaxy_tags: [] +dependencies: [] + +# EOF diff --git a/tasks/main.yml b/tasks/main.yml new file mode 100644 index 0000000..bbcebb3 --- /dev/null +++ b/tasks/main.yml @@ -0,0 +1,27 @@ +--- +########################################################### +# +# This role will install the mozilla sops application. +# +# requires that the following variables be set; +# - 'sops_ver' - the version tag of the desired verion (ie, v3.7.1) +# - 'sops_pkg' - the package name to install (ie, sops_3.7.1_amd64.deb) +# +########################################################### +# tasks file for sops + +- name: Retrieve the mozilla sops deb package from github + get_url: + url: "https://github.com/mozilla/sops/releases/download/{{ sops_ver }}/{{ sops_pkg }}" + dest: "/tmp/{{ sops_pkg }}" + mode: "0644" + owner: root + group: root + +- name: Install sops deb package + apt: + deb: "/tmp/{{ sops_pkg }}" + state: present + when: ansible_distribution == "Ubuntu" or ansible_distribution == "Pop!_OS" or ansible_distribution == "Linux Mint" + +# EOF