1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_gopass.git synced 2024-09-14 20:06:42 +02:00

Improve Archlinux Support

This commit is contained in:
L3D 2023-09-29 21:42:25 +02:00
parent 571030e2e1
commit 893db54c05
No known key found for this signature in database
GPG key ID: AD65B920933B4B20
4 changed files with 72 additions and 4 deletions

View file

@ -3,5 +3,6 @@ gopass__add_apt_repo: true
gopass__install_jsonapi: true gopass__install_jsonapi: true
gopass__install_haveibeenpwnd: true gopass__install_haveibeenpwnd: true
gopass__install_git_credential: false
# should we do a version check? (recomended) # should we do a version check? (recomended)
submodules_versioncheck: false submodules_versioncheck: false

View file

@ -6,13 +6,13 @@
state: present state: present
with_items: with_items:
- git - git
- gnupg2 - gnupg
- rng-tools - rng-tools
- xsel - xsel
- xclip - xclip
- name: Install Gopass - name: Install Gopass
ansible.builtin.apt: ansible.builtin.package:
name: "{{ item }}" name: "{{ item }}"
state: present state: present
become: true become: true
@ -20,7 +20,7 @@
- gopass - gopass
- name: Install gopass-jsonapi for browser integration - name: Install gopass-jsonapi for browser integration
ansible.builtin.apt: ansible.builtin.package:
name: "{{ item }}" name: "{{ item }}"
state: present state: present
become: true become: true
@ -29,10 +29,19 @@
when: gopass__install_jsonapi | bool when: gopass__install_jsonapi | bool
- name: Install gopass-hibp for haveibeenpwnd.com integration - name: Install gopass-hibp for haveibeenpwnd.com integration
ansible.builtin.apt: ansible.builtin.package:
name: "{{ item }}" name: "{{ item }}"
state: present state: present
become: true become: true
with_items: with_items:
- gopass-hibp - gopass-hibp
when: gopass__install_haveibeenpwnd | bool when: gopass__install_haveibeenpwnd | bool
- name: Install git-credential-gopass as git-credentials helper
ansible.builtin.package:
name: "{{ item }}"
state: present
become: true
with_items:
- git-credential-gopass
when: gopass__install_git_credential | bool

View file

@ -0,0 +1,49 @@
---
- name: Install requirements for gopass
become: true
community.general.pacman:
name: "{{ item }}"
state: present
update_cache: true
with_items:
- git
- gnupg
- rng-tools
- xsel
- xclip
- xorg-xclipboard
- name: Install Gopass
community.general.pacman:
name: "{{ item }}"
state: present
become: true
with_items:
- gopass
- name: Install gopass-jsonapi for browser integration
community.general.pacman:
name: "{{ item }}"
state: present
become: true
with_items:
- gopass-jsonapi
when: gopass__install_jsonapi | bool
- name: Install gopass-hibp for haveibeenpwnd.com integration
community.general.pacman:
name: "{{ item }}"
state: present
become: true
with_items:
- gopass-hibp
when: gopass__install_haveibeenpwnd | bool
- name: Install git-credential-gopass as git-credentials helper
community.general.pacman:
name: "{{ item }}"
state: present
become: true
with_items:
- git-credential-gopass
when: gopass__install_git_credential | bool

View file

@ -67,3 +67,12 @@
with_items: with_items:
- gopass-hibp - gopass-hibp
when: gopass__install_haveibeenpwnd | bool when: gopass__install_haveibeenpwnd | bool
- name: Install git-credential-gopass as git-credentials helper
ansible.builtin.apt:
name: "{{ item }}"
state: present
become: true
with_items:
- git-credential-gopass
when: gopass__install_git_credential | bool