diff --git a/README.md b/README.md index 4081530..ab889bf 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/defaults/main.yml b/defaults/main.yml index a51ae46..ecee212 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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 diff --git a/tasks/gopass-install/install-gopass-default.yml b/tasks/gopass-install/install-gopass-default.yml index 77bc68f..2b9e182 100644 --- a/tasks/gopass-install/install-gopass-default.yml +++ b/tasks/gopass-install/install-gopass-default.yml @@ -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 diff --git a/tasks/gopass-install/install-on-archlinux.yml b/tasks/gopass-install/install-on-archlinux.yml index fe3524a..8724e5b 100644 --- a/tasks/gopass-install/install-on-archlinux.yml +++ b/tasks/gopass-install/install-on-archlinux.yml @@ -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 diff --git a/tasks/gopass-install/install-on-debian.yml b/tasks/gopass-install/install-on-debian.yml index 7d1058f..6b0dae8 100644 --- a/tasks/gopass-install/install-on-debian.yml +++ b/tasks/gopass-install/install-on-debian.yml @@ -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 diff --git a/vars/main.yml b/vars/main.yml index 3c08ad9..d0bbe88 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -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'