From 24a847c01b37817ed46314d6ae724f95114ca580 Mon Sep 17 00:00:00 2001 From: L3D Date: Tue, 16 Apr 2024 14:39:30 +0200 Subject: [PATCH] insert passwords from gopass --- collections/ansible_collections/community/general | 2 +- collections/ansible_collections/l3d/users | 2 +- group_vars/all.yml | 5 +++++ group_vars/work.yml | 4 ++++ 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/collections/ansible_collections/community/general b/collections/ansible_collections/community/general index 9307b76..6c8f949 160000 --- a/collections/ansible_collections/community/general +++ b/collections/ansible_collections/community/general @@ -1 +1 @@ -Subproject commit 9307b76e744661ef8d62bf829f02393100e8ba91 +Subproject commit 6c8f949ba950309931d8931f4820b99707898850 diff --git a/collections/ansible_collections/l3d/users b/collections/ansible_collections/l3d/users index 406e3cf..05b0b7c 160000 --- a/collections/ansible_collections/l3d/users +++ b/collections/ansible_collections/l3d/users @@ -1 +1 @@ -Subproject commit 406e3cf339a07c7933e98b88d49e74e88671d26b +Subproject commit 05b0b7cd2d8e223348bdc39b047c0b9f0ee70bbb diff --git a/group_vars/all.yml b/group_vars/all.yml index dd77de6..d56c2e0 100644 --- a/group_vars/all.yml +++ b/group_vars/all.yml @@ -9,6 +9,7 @@ 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' @@ -16,6 +17,7 @@ l3d_users__default_users: admin_ansible_login: true - name: 'alice' state: 'absent' + remove: true # # l3d.users @@ -95,3 +97,6 @@ l3d_pkgs__install_extra_packages: # globaly enably simple versionscheck - if available submodules_versioncheck: true + +# gopass dir +gopass_prefix: '' diff --git a/group_vars/work.yml b/group_vars/work.yml index 653e6d3..08bdc9a 100644 --- a/group_vars/work.yml +++ b/group_vars/work.yml @@ -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/'