devops , how to create user using ansible playbook

0 votes

I’ve just started using devops, I’m using ansible in my control machine and want to create a new user with password in server2

playbook that I’ve written is

Jul 16, 2018 in Ansible by Nilesh
• 6,900 points
72 views

1 answer to this question.

0 votes
root doesn't need a password to switch users.

Try using ssh test@localhost to test the password.
answered Jul 16, 2018 by Kalgi
• 2,620 points

Related Questions In Ansible

0 votes
1 answer

How can I create a new user using ansible ploybook?

You're switching from the root user. Root ...READ MORE

answered Mar 29, 2018 in Ansible by DareDev
• 6,810 points
86 views
0 votes
1 answer
0 votes
2 answers

How to create MySQL tables using Ansible?

--- - hosts: dbserver   tasks:    - name: create a table ...READ MORE

answered Mar 19 in Ansible by Ankit Tyagi
525 views
0 votes
1 answer
+13 votes
2 answers
0 votes
1 answer
0 votes
1 answer

Using hyphen in ansible

Hyphen - is used to specify list ...READ MORE

answered Jul 10, 2018 in Ansible by Kalgi
• 2,620 points
153 views
0 votes
2 answers

How do you stop Ansible from creating .retry files in the home directory?

[defaults] ... retry_files_enabled = True # Create them ...READ MORE

answered Apr 5 in Ansible by anonymous
590 views