ansible/ansible — pull request #5677 by 0x46616c6b (2014-01-24 08:52:39+00:00)
Title: Feature Request: Support skeleton directory (useradd -k) in user module

When I create a system account for a Apache virtual host it would be nice to create this user with a special skeleton.

For example:

- name: ensure vhost users are present
user:
name: {{ item['user'] }}
home: /var/www/{{ item['host'] }}
skeleton: /etc/wwwskel
password: {{ item['password'] }}
shell: {{ item['shell'] }}
with_items: vhosts

Otherwise I need 4 actions to create /var/www/{{ item['host'] }}/{conf,logs,php-fcgi,www}