So that the state won't fail if the parent directory of the home directory does not exist.pull/165/head
- user: system_user_{{ name }} | - user: system_user_{{ name }} | ||||
{%- endif %} | {%- endif %} | ||||
{%- if user.get('makedirs') %} | |||||
system_user_home_parentdir_{{ user.home }}: | |||||
file.directory: | |||||
- name: {{ user.home | path_join("..") }} | |||||
- makedirs: true | |||||
- require_in: | |||||
- user: system_user_{{ name }} | |||||
{%- endif %} | |||||
system_user_{{ name }}: | system_user_{{ name }}: | ||||
user.present: | user.present: | ||||
- name: {{ name }} | - name: {{ name }} |