Skip to content

Commit

Permalink
insert passwords from gopass
Browse files Browse the repository at this point in the history
  • Loading branch information
DO1JLR committed Apr 16, 2024
1 parent a884f22 commit 24a847c
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 24a847c

Please sign in to comment.