zuul-jobs/roles/revoke-sudo/tasks/main.yaml
Monty Taylor 3dc03ee0d6
Rename zuul-revoke-sudo to revoke-sudo
Depends-On: If639d35ded59621c38d0ecb16344817fd176c31c
Change-Id: I51454b86b5d8b6c3c26615437a3b7ce386134435
2017-07-06 19:14:53 -05:00

9 lines
202 B
YAML

- name: Remove sudo access for zuul user.
become: yes
file:
path: /etc/sudoers.d/zuul-sudo
state: absent
- name: Prove that general sudo access is actually revoked.
shell: ! sudo -n true