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

Optional install zbar toling

zbar tools can be used to read qrcodes. You could need that to scan OTP Secrets.
This commit is contained in:
L3D 2023-09-30 14:46:20 +02:00
parent 8d980b256f
commit e23bb7d8dd
6 changed files with 32 additions and 1 deletions

View file

@ -14,6 +14,8 @@ This role will only install the gopass passwordmanager. You have to configure an
| ``gopass__install_jsonapi`` | ``true`` | Install gopass-jsonapi integration for browser integration |
| ``gopass__install_haveibeenpwnd`` | ``true`` | Install haveibeenpwnd.com integration |
| ``gopass__install_git_credential`` | ``true`` | Install haveibeenpwnd.com integration |
| ``gopass__install_zbar_tools`` | ``true`` | Install optional zbar tooling to read qrcodes |
| ``submodules_versioncheck`` | ``false`` | Run optional versionscheck to prevent old versions of tis ansible |
## Contributing
Please feel free to open a issue. Or suggest changes and improvements via Pull-Request. I will be happy to have a look at it.

View file

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

View file

@ -45,3 +45,12 @@
with_items:
- git-credential-gopass
when: gopass__install_git_credential | bool
- name: Install zbar-tools for QR CodeReading using OTP Secrets
ansible.builtin.package:
name: "{{ item }}"
state: present
become: true
with_items:
- zbar-tools
when: gopass__install_zbar_tools | bool

View file

@ -47,3 +47,12 @@
with_items:
- git-credential-gopass
when: gopass__install_git_credential | bool
- name: Install zbar-tools for QR CodeReading using OTP Secrets
community.general.pacman:
name: "{{ item }}"
state: present
become: true
with_items:
- zbar-tools
when: gopass__install_zbar_tools | bool

View file

@ -76,3 +76,12 @@
with_items:
- git-credential-gopass
when: gopass__install_git_credential | bool
- name: Install zbar-tools for QR CodeReading using OTP Secrets
ansible.builtin.apt:
name: "{{ item }}"
state: present
become: true
with_items:
- zbar-tools
when: gopass__install_zbar_tools | bool

View file

@ -1,5 +1,5 @@
---
gopass__keyring: /usr/share/keyrings/gopass-archive-keyring.gpg
# versionscheck
playbook_version_number: 02 # should be a integer
playbook_version_number: 03 # should be a integer
playbook_version_path: 'l3d.gopass.version'