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>
changes/75/639875/1
Paul Belanger 4 years ago
parent ff68b73d12
commit 311c5dfecd
  1. 6
      playbooks/bootstrap-ansible/site.yaml
  2. 6
      playbooks/bootstrap/roles/users/tasks/main.yaml

@ -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…
Cancel
Save