[ansible-project] How to simulate user first login.

2014-11-14 Thread zelda0102
My virtual machine has a setting that when the first time a user logs in, it creates a home directory for the user automatically if the user does not have a home directory. In my script, I want to achieve: Log in as different users so that they all have home directory setup. But I'm not sure h

[ansible-project] How to use Ansible to log in a machine just for creating a home directory

2014-11-14 Thread zelda0102
I have a virtual machine that when first login as a user, it will create the home directory for the user if it doesn't have one. So just sth like, $ ssh username@myhostname $ Creating directory '/home/username'. How could I use Ansible to do that(just login in order to generate a home director