Add the ability to install sudoers file
Change-Id: Ie4edfa60ca0defd9074f84f7ce6bf71b93d95959
diff --git a/molecule/default/verify.yml b/molecule/default/verify.yml
index 3525b8d..58ed917 100644
--- a/molecule/default/verify.yml
+++ b/molecule/default/verify.yml
@@ -7,6 +7,15 @@
- name: Verify
hosts: all
tasks:
- - name: example assertion
- assert:
- that: true
+
+ # 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