mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-27 00:05:44 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
9
roles/sudo/tasks/main.yml
Normal file
9
roles/sudo/tasks/main.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
- 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
|
Reference in New Issue
Block a user