initial checkin

This commit is contained in:
Radar231 2021-12-23 07:12:07 -05:00
commit ea4f4c9bd6
3 changed files with 60 additions and 0 deletions

6
README.md Normal file
View File

@ -0,0 +1,6 @@
# Ansible Role: age
## Introduction
This role will install the age encryption 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

45
tasks/main.yml Normal file
View File

@ -0,0 +1,45 @@
---
###########################################################
#
# This role will install the age encryption application.
#
# requires that the following variables be set;
# - 'age_ver' - the version tag of the desired verion (ie, v1.0.0)
# - 'age_pkg' - the tar filename to install (ie, age-v1.0.0-linux-amd64.tar.gz)
#
###########################################################
# tasks file for sops
- name: Retrieve the age tar file from github
get_url:
url: "https://github.com/FiloSottile/age/releases/download/{{ age_ver }}/{{ age_pkg }}"
dest: "/tmp/{{ age_pkg }}"
mode: "0644"
owner: root
group: root
- name: Unarchive age tar file in /tmp
unarchive:
src: "/tmp/{{ age_pkg }}"
dest: /tmp
remote_src: yes
- name: copy age-keygen to /usr/local/bin
copy:
src: /tmp/age/age-keygen
dest: /usr/local/bin/age-keygen
owner: root
group: root
mode: "0755"
remote_src: yes
- name: copy age to /usr/local/bin
copy:
src: /tmp/age/age
dest: /usr/local/bin/age
owner: root
group: root
mode: "0755"
remote_src: yes
# EOF