20aed09893
Also fix the negative test to use shell instead of command, so that ! is parsed as intended. Change-Id: I9f9dd60a895798cc639863a36b921b64621f6767
9 lines
199 B
YAML
9 lines
199 B
YAML
- name: Remove sudo access for zuul user.
|
|
become: yes
|
|
file:
|
|
path: /etc/sudoers.d/zuul
|
|
state: absent
|
|
|
|
- name: Prove that general sudo access is actually revoked.
|
|
shell: '! sudo -n true'
|