blob: 58ed9177e28a981c04b41972f5159ae1f9a91ec5 [file] [log] [blame]
---
# users molecule/default/verify.yml
#
# SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org>
# SPDX-License-Identifier: Apache-2.0
- name: Verify
hosts: all
tasks:
# testing that sudo works, so warning about "consider using become" is not
# applicable
- name: Make sure that sudoers is functional
become: true
become_user: "aturing"
command:
cmd: "sudo -u ghopper whoami"
register: sudo_out
failed_when: "'ghopper' not in sudo_out.stdout"
tags:
- skip_ansible_lint