Skip to content

Commit

Permalink
Merge pull request #46 from DO1JLR/wrk
Browse files Browse the repository at this point in the history
insert passwords from gopass
  • Loading branch information
DO1JLR authored Apr 16, 2024
2 parents d28d778 + 24a847c commit bfcea6f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions group_vars/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ l3d_users__default_users:
shell: '/bin/bash'
create_home: true
pubkeys: "{{ lookup('url', 'https://github.com/do1jlr.keys', split_lines=False) }}"
password: "{{ lookup('community.general.passwordstore', gopass_prefix + 'ansible/hosts/' + inventory_hostname + '/users/lilian/pwd_hash') }}"
exklusive_pubkeys: true
admin: true
admin_commands: 'ALL'
admin_nopassword: false
admin_ansible_login: true
- name: 'alice'
state: 'absent'
remove: true

#
# l3d.users
Expand Down Expand Up @@ -95,3 +97,6 @@ l3d_pkgs__install_extra_packages:

# globaly enably simple versionscheck - if available
submodules_versioncheck: true

# gopass dir
gopass_prefix: ''
4 changes: 4 additions & 0 deletions group_vars/work.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@ l3d_users__local_users:
shell: '/bin/bash'
create_home: true
pubkeys: "{{ lookup('url', 'https://github.com/do1jlr.keys', split_lines=False) }}"
password: "{{ lookup('community.general.passwordstore', 'private/ansible/hosts/' + inventory_hostname + '/users/lilian/pwd_hash') }}"
exklusive_pubkeys: true
admin: true
admin_commands: 'ALL'
admin_nopassword: false
admin_ansible_login: true

# gopass dir
gopass_prefix: 'private/'

0 comments on commit bfcea6f

Please sign in to comment.