Unable to create the user (Weblogic) in the ansible nodes

6 views
Skip to first unread message

Ram Kumar

unread,
Jul 25, 2019, 9:31:17 AM7/25/19
to Ansible Project
Here is the script :


- name: This play is about creating the user in all nodes and entering passwords
hosts: all
vars_prompt:
name: passwd
prompt: Enter your password
become : yes
tasks:
- user: name="weblogic" password= "{{passwd}}"
- debug: msg="The entered value is {{passwd}}"


and getting below error , not sure why, please help me.

getting errorn13 permission denied.

Pease note that ansadmin is part of the visudo file.






P.Co...@bham.ac.uk

unread,
Jul 25, 2019, 10:16:28 AM7/25/19
to ansible...@googlegroups.com

May be because you have a space immediately after “become”

 

become : yes

              ^

 

Regards

Phil

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/7e21355d-3034-4b06-8b8b-c14511217f07%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages