templier-ansible/roles/sudo/tasks/main.yml

13 lines
264 B
YAML

---
- name: Deploy sudoers configuration files
template:
src: '{{ item.src }}.j2'
dest: '/etc/{{ item.src }}'
mode: '{{ item.mode }}'
with_items:
- { src: 'sudoers', mode: '0440' }
- { src: 'sudoers.lecture', mode: '0644' }
become: yes