initial checkin
This commit is contained in:
commit
38200536b6
|
@ -0,0 +1,6 @@
|
||||||
|
# Ansible Role: sops
|
||||||
|
|
||||||
|
## Introduction
|
||||||
|
|
||||||
|
This role will install the mozilla sops application.
|
||||||
|
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue