Adding step to set NOPASSWD for the wheel group
This commit is contained in:
parent
7fdf53e1ad
commit
4a7e0f7d96
2 changed files with 18 additions and 0 deletions
|
@ -35,6 +35,14 @@
|
|||
tags:
|
||||
- ssh
|
||||
|
||||
- name: "*** SUDO Configuration ***"
|
||||
include_tasks:
|
||||
file: core_sudo.yml
|
||||
apply:
|
||||
tags: sudo
|
||||
tags:
|
||||
- sudo
|
||||
|
||||
- name: "*** Generate Self-Signed Cert ***"
|
||||
include_tasks:
|
||||
file: core_cert.yml
|
||||
|
|
10
roles/base/tasks/core_sudo.yml
Normal file
10
roles/base/tasks/core_sudo.yml
Normal file
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
# file: roles/base/tasks/core_sudo.yml
|
||||
|
||||
- name: Enabled passwordless sudo
|
||||
lineinfile:
|
||||
path: /etc/sudoers
|
||||
state: present
|
||||
regexp: '^%wheel'
|
||||
line: '%wheel ALL=(ALL) NOPASSWD: ALL'
|
||||
validate: 'visudo -cf %s'
|
Loading…
Reference in a new issue