zuul-jobs/roles/revoke-sudo/tasks/main.yaml
Andreas Jaeger d8b9239324 Silence ansible-lint
Add tags to tell ansible-lint to ignore the problems found since
those are false positives.

Needed-By: I16186c929e7d0e6e34b35271559e555255a52b00
Change-Id: I59e5d41a9539671ee5aab9b9036379eb9101d021
2017-10-25 13:17:16 +00:00

12 lines
278 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'
tags:
# We really need shell above, skip warning
- skip_ansible_lint