28 lines
855 B
YAML
28 lines
855 B
YAML
---
|
|
###########################################################
|
|
#
|
|
# 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
|