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

Merge pull request #3 from roles-ansible/otp

Optional install zbar toling
This commit is contained in:
L3D 2023-09-30 21:28:53 +02:00 committed by GitHub
commit 200d04c886
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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_jsonapi`` | ``true`` | Install gopass-jsonapi integration for browser integration |
| ``gopass__install_haveibeenpwnd`` | ``true`` | Install haveibeenpwnd.com integration | | ``gopass__install_haveibeenpwnd`` | ``true`` | Install haveibeenpwnd.com integration |
| ``gopass__install_git_credential`` | ``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 ## 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. 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_jsonapi: true
gopass__install_haveibeenpwnd: true gopass__install_haveibeenpwnd: true
gopass__install_git_credential: false gopass__install_git_credential: false
gopass__install_zbar_tools: true
# should we do a version check? (recomended) # should we do a version check? (recomended)
submodules_versioncheck: false submodules_versioncheck: false

View file

@ -45,3 +45,12 @@
with_items: with_items:
- git-credential-gopass - git-credential-gopass
when: gopass__install_git_credential | bool 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: with_items:
- git-credential-gopass - git-credential-gopass
when: gopass__install_git_credential | bool 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: with_items:
- git-credential-gopass - git-credential-gopass
when: gopass__install_git_credential | bool 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 gopass__keyring: /usr/share/keyrings/gopass-archive-keyring.gpg
# versionscheck # versionscheck
playbook_version_number: 02 # should be a integer playbook_version_number: 03 # should be a integer
playbook_version_path: 'l3d.gopass.version' playbook_version_path: 'l3d.gopass.version'