Skip to content

Commit

Permalink
Merge pull request #3 from roles-ansible/otp
Browse files Browse the repository at this point in the history
Optional install zbar toling
  • Loading branch information
DO1JLR authored Sep 30, 2023
2 parents 8d980b2 + e23bb7d commit 200d04c
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 9 additions & 0 deletions tasks/gopass-install/install-gopass-default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 9 additions & 0 deletions tasks/gopass-install/install-on-archlinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 9 additions & 0 deletions tasks/gopass-install/install-on-debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion vars/main.yml
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit 200d04c

Please sign in to comment.