I want to create a user and a directory in his HOME directory.
Unfortunately the HOME directory is not allways directly under /home
. On some minions it is under /localhome
and some use /users/
.
I want to create a user and a directory in his HOME directory.
Unfortunately the HOME directory is not allways directly under /home
. On some minions it is under /localhome
and some use /users/
.
You can use the ~USER/ syntax:
fred:
user.present
dir_in_home:
file.directory:
- name: ~fred/foo