generated from roles-ansible/ansible_role_template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from roles-ansible/b
add requirements, improve lintin
- Loading branch information
Showing
8 changed files
with
114 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
collections: | ||
- name: 'community.general' | ||
version: ">=7.5.0,<=8.0.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,52 @@ | ||
--- | ||
- name: Install requirements for gopass | ||
- name: Install requirements for gopass # noqa: H1901 | ||
become: true | ||
community.general.pacman: | ||
name: "{{ item }}" | ||
state: present | ||
state: 'present' | ||
update_cache: true | ||
with_items: | ||
- git | ||
- gnupg | ||
- rng-tools | ||
- xsel | ||
- xclip | ||
- xorg-xclipboard | ||
loop: "{{ gopass__required_archlinux_packages }}" | ||
|
||
- name: Install Gopass | ||
- name: Install Gopass # noqa: H1901 | ||
community.general.pacman: | ||
name: "{{ item }}" | ||
state: present | ||
state: 'present' | ||
become: true | ||
with_items: | ||
- gopass | ||
loop: | ||
- 'gopass' | ||
|
||
- name: Install gopass-jsonapi for browser integration | ||
- name: Install gopass-jsonapi for browser integration # noqa: H1901 | ||
community.general.pacman: | ||
name: "{{ item }}" | ||
state: present | ||
state: 'present' | ||
become: true | ||
with_items: | ||
- gopass-jsonapi | ||
loop: | ||
- 'gopass-jsonapi' | ||
when: gopass__install_jsonapi | bool | ||
|
||
- name: Install gopass-hibp for haveibeenpwnd.com integration | ||
- name: Install gopass-hibp for haveibeenpwnd.com integration # noqa: H1901 | ||
community.general.pacman: | ||
name: "{{ item }}" | ||
state: present | ||
state: 'present' | ||
become: true | ||
with_items: | ||
- gopass-hibp | ||
loop: | ||
- 'gopass-hibp' | ||
when: gopass__install_haveibeenpwnd | bool | ||
|
||
- name: Install git-credential-gopass as git-credentials helper | ||
- name: Install git-credential-gopass as git-credentials helper # noqa: H1901 | ||
community.general.pacman: | ||
name: "{{ item }}" | ||
state: present | ||
state: 'present' | ||
become: true | ||
with_items: | ||
- git-credential-gopass | ||
loop: | ||
- 'git-credential-gopass' | ||
when: gopass__install_git_credential | bool | ||
|
||
- name: Install zbar-tools for QR CodeReading using OTP Secrets | ||
- name: Install zbar-tools for QR CodeReading using OTP Secrets # noqa: H1901 | ||
community.general.pacman: | ||
name: "{{ item }}" | ||
state: present | ||
state: 'present' | ||
become: true | ||
with_items: | ||
- zbar-tools | ||
loop: | ||
- 'zbar-tools' | ||
when: gopass__install_zbar_tools | bool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
--- | ||
- name: Run optional versionscheck | ||
ansible.builtin.include_tasks: versioncheck.yml | ||
ansible.builtin.include_tasks: | ||
file: versioncheck.yml | ||
when: submodules_versioncheck | bool | ||
|
||
- name: Install GoPass Packages | ||
ansible.builtin.include_tasks: "{{ lookup('ansible.builtin.first_found', gopass_install) }}" | ||
vars: | ||
gopass_install: | ||
files: | ||
- "install-on-{{ ansible_os_family | lower }}.yml" | ||
- 'install-gopass-default.yml' | ||
paths: | ||
- 'tasks/gopass-install' | ||
ansible.builtin.include_tasks: | ||
file: "{{ lookup('ansible.builtin.first_found', gopass_install) }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,34 @@ | ||
--- | ||
gopass__keyring: /usr/share/keyrings/gopass-archive-keyring.gpg | ||
# versionscheck | ||
playbook_version_number: 03 # should be a integer | ||
gopass__keyring: '/usr/share/keyrings/gopass-archive-keyring.gpg' | ||
gopass_install: | ||
files: | ||
- "install-on-{{ ansible_os_family | lower }}.yml" | ||
- 'install-gopass-default.yml' | ||
paths: | ||
- 'tasks/gopass-install' | ||
|
||
gopass__required_packages: | ||
- git | ||
- gnupg | ||
- rng-tools | ||
- xsel | ||
- xclip | ||
|
||
gopass__required_debian_packages: | ||
- git | ||
- gnupg2 | ||
- rng-tools | ||
- xsel | ||
- xclip | ||
|
||
gopass__required_archlinux_packages: | ||
- git | ||
- gnupg | ||
- rng-tools | ||
- xsel | ||
- xclip | ||
- xorg-xclipboard | ||
|
||
# simple versionscheck | ||
playbook_version_number: 04 | ||
playbook_version_path: 'l3d.gopass.version' |