From a2f9c2ad51ebbeb21e2065deed9954b1d73fc387 Mon Sep 17 00:00:00 2001 From: Scott Koranda Date: Wed, 20 May 2020 07:31:41 -0500 Subject: [PATCH] Update LDIF and add tag and force variable Update the LDIF with new password hash and add a tag and new variable to make it easy to force an update of the LDIF file on the training nodes. --- roles/training/files/config-always-01.ldif | 2 +- roles/training/tasks/main.yml | 3 +++ roles/training/vars/main.yml | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/roles/training/files/config-always-01.ldif b/roles/training/files/config-always-01.ldif index 2dfcdf3..064c8f4 100644 --- a/roles/training/files/config-always-01.ldif +++ b/roles/training/files/config-always-01.ldif @@ -16,7 +16,7 @@ objectClass: account objectClass: simpleSecurityObject uid: registry_user description: COmanage Registry user -userPassword: {CRYPT}$6$rounds=5000$RMNH6IpoChSTxPzx$r9c67vaf.vP7HExQTFeR.7kioNEWU5/BiJHfs/.3xjcYmJ9R594IIRpey.IyENS5iBdTnpfBOvOYqS/cCM/8.0 +userPassword: {CRYPT}$6$rounds=5000$NONtmZNhW3kDoLfx$qbPetT/IJsOQmS0DqsklGkMKzTHysESz5/66NcEWWZ2ZhS4xo3BcLUbyiV5i4nwyNwxi.fKtj01iFQtBbo3y11 dn: ou=people,o=Training,dc=comanage,dc=incommon,dc=training changetype: add diff --git a/roles/training/tasks/main.yml b/roles/training/tasks/main.yml index f739161..1fd4ff9 100644 --- a/roles/training/tasks/main.yml +++ b/roles/training/tasks/main.yml @@ -57,6 +57,9 @@ owner: root group: root mode: '0644' + force: "{{ force_update_structure_ldif_file }}" + tags: + - update_structure_ldif_file - name: Copy olcAccess LDIF input file copy: diff --git a/roles/training/vars/main.yml b/roles/training/vars/main.yml index e1b2160..79df49f 100644 --- a/roles/training/vars/main.yml +++ b/roles/training/vars/main.yml @@ -1,6 +1,7 @@ --- force_update_stack_file: no - olc_root_pw: "{CRYPT}$6$rounds=5000$RMNH6IpoChSTxPzx$r9c67vaf.vP7HExQTFeR.7kioNEWU5/BiJHfs/.3xjcYmJ9R594IIRpey.IyENS5iBdTnpfBOvOYqS/cCM/8.0" + force_update_structure_ldif_file: no + olc_root_pw: "{CRYPT}$6$rounds=5000$NONtmZNhW3kDoLfx$qbPetT/IJsOQmS0DqsklGkMKzTHysESz5/66NcEWWZ2ZhS4xo3BcLUbyiV5i4nwyNwxi.fKtj01iFQtBbo3y11" olc_root_dn_password: !vault | $ANSIBLE_VAULT;1.1;AES256 39366562316237336539383637633263626163663337303965326336623465636638656437383764