Ansible role to provision a zone on OpenIndiana
Olaf Bohlen
2020-08-25 e7b69ff4c5a13600b9fc1e20a93ff8fec4237bc7
templates/sysding.j2
@@ -16,6 +16,9 @@
{% endif %}
chown -R {{ user['name'] }}:{{ user['gid'] }} {{ user['home'] }}
{% endif %}
{% if user['sudoers'] is defined %}
echo "{{ user['sudoers'] }}" >/etc/sudoers.d/"{{ user['name'] }}"
{% endif %}
setup_user_password {{ user['name'] }} '{{ user["hashedpassword"] }}'
{% endfor %}