mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-22 05:03:33 +02:00
10 lines
351 B
YAML
10 lines
351 B
YAML
![]() |
---
|
||
|
- name: Setup default sudo access
|
||
|
template: src=fws.j2 dest=/etc/sudoers.d/fws owner=root group=root mode=440 validate='visudo -cf %s'
|
||
|
tags: sudo
|
||
|
|
||
|
- name: Ensure sudo provider is only files in nss
|
||
|
lineinfile: dest=/etc/nsswitch.conf regexp="^sudoers{{ ':' }}.+" line="sudoers{{ ':' }} files"
|
||
|
when: ad_auth | default(False)
|
||
|
tags: sudo
|