initial checkin

This commit is contained in:
Radar231 2021-12-23 07:13:39 -05:00
commit 38200536b6
3 changed files with 42 additions and 0 deletions

6
README.md Normal file
View File

@ -0,0 +1,6 @@
# Ansible Role: sops
## Introduction
This role will install the mozilla sops application.

9
meta/main.yml Normal file
View File

@ -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

27
tasks/main.yml Normal file
View File

@ -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