summaryrefslogtreecommitdiff
path: root/test/integration/targets/win_become
diff options
context:
space:
mode:
authorJordan Borean <jborean93@gmail.com>2019-11-18 05:32:56 +1000
committerGitHub <noreply@github.com>2019-11-18 05:32:56 +1000
commit480b106d6535978ae6ecab68b40942ca4fa914a0 (patch)
tree8ff90b02692cb3ae2052f469de718951367b01f1 /test/integration/targets/win_become
parenta385ad321b2c9ecddb7abbc7f612c7a44e8c2f41 (diff)
downloadansible-480b106d6535978ae6ecab68b40942ca4fa914a0.tar.gz
become - stop using play context in more places (#62373)
* become - stop using play context in more places - ci_complete * Fix up review points
Diffstat (limited to 'test/integration/targets/win_become')
-rw-r--r--test/integration/targets/win_become/tasks/main.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/integration/targets/win_become/tasks/main.yml b/test/integration/targets/win_become/tasks/main.yml
index 3b20b59ee7..a0759580ba 100644
--- a/test/integration/targets/win_become/tasks/main.yml
+++ b/test/integration/targets/win_become/tasks/main.yml
@@ -143,6 +143,15 @@
- '"LogonUser failed" not in become_invalid_pass.msg'
- '"Win32ErrorCode 1326 - 0x0000052E)" not in become_invalid_pass.msg'
+ - name: test become password precedence
+ win_whoami:
+ become: yes
+ become_method: runas
+ become_user: '{{ become_test_username }}'
+ vars:
+ ansible_become_pass: broken
+ ansible_runas_pass: '{{ gen_pw }}' # should have a higher precedence than ansible_become_pass
+
- name: test become + async
vars: *become_vars
win_command: whoami