Hello, I'm new to Ansible: Here's what I'm looking to do for my first 
playbook/automation with it.

I have a list of users, like below. Oh and by the way I'm running this on 
OSX. First of all where do I save this file? and what to a call it? 
anythingiwant.yaml? 

# List of uses
- abc123
- def532
- gth593

Second I have my hosts file setup with my computers and was able to have 
anible successfully connect to each of them.

Now how do I take my list of users and have ansible create user accounts 
plus add their public keys which i have saved on my system to the hosts in 
my file?

I was able to manually run the addusers module but I could only get it to 
accept the first user value it kept failing if I also tied to give it a 
comment. I also don't want to have to do the manual process for each user 
plus another manual process to add their keys.

please help! 

-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/b50687c6-b80d-4244-bedd-34fc166337fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to