zuul-jobs/roles/revoke-sudo/tasks/main.yaml
Monty Taylor 20aed09893 Remove the right file in revoke-sudo
Also fix the negative test to use shell instead of command, so that
! is parsed as intended.

Change-Id: I9f9dd60a895798cc639863a36b921b64621f6767
2017-09-28 20:15:17 +00:00

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'