Hi. New ansible user here so just starting out. My first experiment is to create a user with sudo privileges on an Oracle Linux 8 server in my test environment. Here are the contents of the files in the /home/”user”/ansible/playbooks folder. I think I am missing something as when I run the playbook it runs successfully. I confirm that the account is created however when I attempt to ssh or login the attempt gets denied access.
Any help is appreciated.
Thank you,
user_pass.yml - encrypted using “ansible-vault create user_pass.yml” in group_vars folder
Hi. New ansible user here so just starting out. My first experiment is to create a user with sudo privileges on an
Oracle Linux 8 server in my test environment. Here are the contents of the files in the /home/”user”/ansible/playbooks
folder. I think I am missing something as when I run the playbook it runs successfully. I confirm that the account is
created however when I attempt to ssh or login the attempt gets denied access.
Any help is appreciated.
Thank you,
*user_pass.ym*l - encrypted using “ansible-vault create user_pass.yml” in group_vars folder
I found that when using this statement in the playbook it is not grabbing the variable in the group_vars/ol8 file but actually passing password as password despite the removal of quotes. Just wondering if I am missing to declare something?
fatal: [qreneansible.wlu.ca]: FAILED! => {“msg”: “Unexpected templating type error occurred on ({{ passwd | password_hash(‘sha512’, ‘A512’) }}): crypt() argument 1 must be str, not None”}
PLAY RECAP ************************************************************************************************************
It seems that it cannot find the variable anywhere. In the playbook file I did add the following but it still cant find it. The file is encrypted as well.