# {{ ansible_managed }}

{% for item in sudoers_file_defaults | default([]) %}
Defaults {{ item }}
{% endfor %}

# Host alias specification
{% for item in sudoers_file_host_aliases | default([]) %}
Host_Alias {{ item.name }} = {{ item.entry }}
{% endfor %}

# User alias specification
{% for item in sudoers_file_user_aliases | default([]) %}
User_Alias {{ item.name }} = {{ item.entry }}
{% endfor %}

# Cmnd alias specification
{% for item in sudoers_file_cmnd_aliases | default([]) %}
Cmnd_Alias {{ item.name }} = {{ item.entry }}
{% endfor %}

# Runas alias specification
{% for item in sudoers_file_runas_aliases | default([]) %}
Runas_Alias {{ item.name }} = {{ item.entry }}
{% endfor %}

# User privilege specification

{# rules for nis users #}
{% for item in nis_user | default([]) %}
{{ item.name }}    ALL=(root)NOPASSWD: MOUNT
{% endfor %}

# Group privilege specification
