Move sudoers logic into users role
It makes a little more sense to have our users role enable no password for the sudo group. Change-Id: Ibcba8b2d927dd630d8c9deeeaf5ae162ec5b1aa2 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
ff68b73d12
commit
311c5dfecd
@ -31,12 +31,6 @@
|
||||
|
||||
- hosts: all
|
||||
tasks:
|
||||
- name: Disable password for sudo users
|
||||
become: true
|
||||
copy:
|
||||
content: "%sudo ALL=(ALL) NOPASSWD: ALL"
|
||||
dest: /etc/sudoers.d/sudo
|
||||
|
||||
- name: reboot
|
||||
become: true
|
||||
reboot:
|
||||
|
@ -38,3 +38,9 @@
|
||||
state: present
|
||||
user: "{{ item.name }}"
|
||||
with_items: "{{ windmill_users }}"
|
||||
|
||||
- name: Disable password for sudo users
|
||||
become: true
|
||||
copy:
|
||||
content: "%sudo ALL=(ALL) NOPASSWD: ALL"
|
||||
dest: /etc/sudoers.d/sudo
|
||||
|
Loading…
Reference in New Issue
Block a user