Zack Williams | 2894e4f | 2020-09-17 09:45:17 -0700 | [diff] [blame] | 1 | --- |
| 2 | # users molecule/default/verify.yml |
| 3 | # |
| 4 | # SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org> |
| 5 | # SPDX-License-Identifier: Apache-2.0 |
| 6 | |
| 7 | - name: Verify |
| 8 | hosts: all |
| 9 | tasks: |
Zack Williams | 00108f2 | 2020-10-30 14:01:28 -0700 | [diff] [blame] | 10 | |
| 11 | # testing that sudo works, so warning about "consider using become" is not |
| 12 | # applicable |
| 13 | - name: Make sure that sudoers is functional |
| 14 | become: true |
| 15 | become_user: "aturing" |
| 16 | command: |
| 17 | cmd: "sudo -u ghopper whoami" |
| 18 | register: sudo_out |
| 19 | failed_when: "'ghopper' not in sudo_out.stdout" |
| 20 | tags: |
| 21 | - skip_ansible_lint |