ansible/roles/sudo/tasks/main.yaml

15 lines
256 B
YAML

---
- name: install
package:
name: "{{ sudo_package_name }}"
state: "{{ sudo_package_state }}"
- name: configure
template:
src: "sudoers.j2"
dest: /etc/sudoers
owner: root
group: root
mode: 0440
validate: visudo -cf %s