diff options
author | B Stack <bgstack15@gmail.com> | 2016-10-03 11:43:00 -0400 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2016-10-03 11:43:00 -0400 |
commit | 17c0b3e049ec09a6605d18c9325a5a69d54db8f6 (patch) | |
tree | 029c5ba12793fdec2e9407285a59bb3e50d19747 /roles/sudo/tests | |
parent | readme (diff) | |
download | ansible01-17c0b3e049ec09a6605d18c9325a5a69d54db8f6.tar.gz ansible01-17c0b3e049ec09a6605d18c9325a5a69d54db8f6.tar.bz2 ansible01-17c0b3e049ec09a6605d18c9325a5a69d54db8f6.zip |
added sudo
Diffstat (limited to 'roles/sudo/tests')
-rw-r--r-- | roles/sudo/tests/test.yml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/roles/sudo/tests/test.yml b/roles/sudo/tests/test.yml new file mode 100644 index 0000000..e15f798 --- /dev/null +++ b/roles/sudo/tests/test.yml @@ -0,0 +1,12 @@ +--- +- name: Test playbook for sudo + hosts: test + remote_user: root + roles: + - sudo + vars: + sudo_strings: + - { priority: 42, exists: 'false', name: 'admins-do-all', content: 'User_Alias ADMINS = bgstack15, bgstack15, user16, user16' } + - { priority: 43, exists: false, name: 'a', content: "ADMINS ALL=(ALL) ALL" } + sudo_files: + - { exists: 'false', file: '../../../company/sudo-files/40_bgstack15' } |