blob: 58ed9177e28a981c04b41972f5159ae1f9a91ec5 [file] [log] [blame]
Zack Williams2894e4f2020-09-17 09:45:17 -07001---
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 Williams00108f22020-10-30 14:01:28 -070010
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