Add RedHat support to 1password role
This commit is contained in:
parent
8ef426139b
commit
e1ee8795cc
4
playbooks/1password.yaml
Normal file
4
playbooks/1password.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
- hosts: localhost
|
||||||
|
roles:
|
||||||
|
- 1password
|
22
roles/1password/tasks/RedHat.yaml
Normal file
22
roles/1password/tasks/RedHat.yaml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
---
|
||||||
|
- name: add yum repository key
|
||||||
|
become: true
|
||||||
|
rpm_key:
|
||||||
|
key: https://downloads.1password.com/linux/keys/1password.asc
|
||||||
|
|
||||||
|
- name: add yum repository
|
||||||
|
become: true
|
||||||
|
yum_repository:
|
||||||
|
name: 1password
|
||||||
|
description: 1Password Stable Channel
|
||||||
|
baseurl: https://downloads.1password.com/linux/rpm/stable/$basearch
|
||||||
|
enabled: true
|
||||||
|
gpgcheck: true
|
||||||
|
repo_gpgcheck: true
|
||||||
|
gpgkey: ['https://downloads.1password.com/linux/keys/1password.asc']
|
||||||
|
|
||||||
|
- name: install yum package
|
||||||
|
become: true
|
||||||
|
yum:
|
||||||
|
name: 1password
|
||||||
|
state: latest
|
Loading…
x
Reference in New Issue
Block a user