Ansible Create Users and Groups, HELP

image

It seems they re-framed the question. I passed the task successfully without this notice.

@Inderpreet @rahul456

I have tried two times the same task which failed without any information.

Can you please check it?

Thanks

@q69145 Do you already have your next task in your bucket ? Please me know I can mark this failed task successful for you.

@Inderpreet

I don’t have any pending tasks in my bucket.

here it is failed one.

@q69145 his one is marked Success for you and you should have a new task as well.

Thank you very much.

@Inderpreet did i miss anything? isnt the solution is correct?

Hi @panneerarasu We can mark this Success for you. Can you please let me know if you already have your today’s task assigned ?

@Inderpreet - Yes, task has already been assigned for today

ok this one is marked Success for you. @panneerarasu

Thanks for your response.

@Inderpreet I got failed also with no explanation. My verification below confirms validation is not fine. Please assist. Thank you.

image

image

Verifications:

image

image

image

image

@rahul456 @Inderpreet Please help to check as per my request above. Thank you.

Hi @Jenna but if you are mentioning the password string within the playbook then whats the use of vault ? Can u or anyone please explain in a simple way how do we have to use vault in this scenario I’m getting a bit confused.
My understanding : Encrypt the vaults.txt file —> which contains the password which is used to decrypt another file which contains our actual user password strings.
.
.
.
Is this correct?


Hi @daovan1987 I did the encryption as u suggested however i got this error in purple line in screenshot.

@akshayyw
i got this error in purple line in screenshot.

The password must be encrypted and hashed, otherwise you can’t login to the user even you set the password correctly.

but i have already encrypted it using ansible-vault encrypt_string , but still it gives me this warning

@Jenna,

Could you explain what exactly you did for the task of this step. This is bit confusing.

some say use below of the following.

  1. I have updated vault password file in ansible.cfg

Which of the following is the correct one to use of the below after updating ansible.cfg
2. password: "{{ '8FmzjvFU6S' | password_hash('sha512', 'mysecretsalt') }}"
3. password: “{{ ‘YchZHRcLkL’ | password_hash (‘sha512’) }}”
4. password: "{{ admin_password | string | password_hash(‘sha512’) }}"

e. Set password Rc5C9EyvbU for all users under developers group and GyQkFRVNr3 for users under admins group. Make sure to use the password given in ~/playbooks/secrets/vault.txt file as Ansible vault password to encrypt the original password strings. You can use ~/playbooks/secrets/vault.txt file as vault secret file while running the playbook (make necessary changes in ~/playbooks/ansible.cfg file).

@Duncan, this is marked success for you