refs #8025 Fix: Get NSLCD password from Passbolt

This commit is contained in:
Juan Ferrer 2024-10-02 13:34:54 +02:00
parent 5f7041dfbf
commit 6bce31ab19
3 changed files with 3 additions and 4 deletions

View File

@ -1,4 +1,6 @@
ansible_host: "{{inventory_hostname_short}}.{{host_domain}}" ansible_host: "{{inventory_hostname_short}}.{{host_domain}}"
passbolt: 'anatomicjc.passbolt.passbolt'
passbolt_inventory: 'anatomicjc.passbolt.passbolt_inventory'
sysadmin_mail: sysadmin@verdnatura.es sysadmin_mail: sysadmin@verdnatura.es
sysadmin_group: sysadmin sysadmin_group: sysadmin
smtp_server: smtp.verdnatura.es smtp_server: smtp.verdnatura.es

View File

@ -1,9 +1,6 @@
- name: Fetch passbolt password - name: Fetch passbolt password
hosts: all hosts: all
gather_facts: no gather_facts: no
vars:
passbolt: 'anatomicjc.passbolt.passbolt'
passbolt_inventory: 'anatomicjc.passbolt.passbolt_inventory'
tasks: tasks:
- debug: - debug:
msg: "Password: {{ lookup(passbolt, 'test').password }}" msg: "Password: {{ lookup(passbolt, 'test').password }}"

View File

@ -8,7 +8,7 @@ idle_timelimit 60
base {{ ldap_base }} base {{ ldap_base }}
binddn cn=nss,ou=admins,{{ ldap_base }} binddn cn=nss,ou=admins,{{ ldap_base }}
bindpw {{ nslcd_password }} bindpw {{ lookup(passbolt, 'nslcd').password }}
pagesize 500 pagesize 500
filter group (&(objectClass=posixGroup)(cn={{ sysadmin_group }})) filter group (&(objectClass=posixGroup)(cn={{ sysadmin_group }}))