1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
--- - name: Install sudo package dnf: name: sudo state: present tags: - packages - name: Install sudoers file copy: dest: '/etc/sudoers' src: sudoers owner: root group: root mode: 0440 validate: visudo -cf %s # vim: set ts=2 sw=2 et: