diff options
author | Jordan Borean <jborean93@gmail.com> | 2019-11-18 05:32:56 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-18 05:32:56 +1000 |
commit | 480b106d6535978ae6ecab68b40942ca4fa914a0 (patch) | |
tree | 8ff90b02692cb3ae2052f469de718951367b01f1 /test/integration/targets/win_become | |
parent | a385ad321b2c9ecddb7abbc7f612c7a44e8c2f41 (diff) | |
download | ansible-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.yml | 9 |
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 |