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:
Paul Belanger 2019-02-27 20:29:17 -05:00
parent ff68b73d12
commit 311c5dfecd
2 changed files with 6 additions and 6 deletions

View File

@ -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:

View File

@ -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