diff --git a/tests/integration/targets/win_credential/tasks/main.yml b/tests/integration/targets/win_credential/tasks/main.yml index 1ec3bbb3..ee05bf93 100644 --- a/tests/integration/targets/win_credential/tasks/main.yml +++ b/tests/integration/targets/win_credential/tasks/main.yml @@ -20,7 +20,7 @@ ansible_become: True ansible_become_method: runas ansible_become_user: '{{ ansible_user }}' - ansible_become_pass: '{{ ansible_password }}' + ansible_become_pass: '{{ ansible_password | default(ansible_test_connection_password) }}' - name: ensure test credentials are removed before testing win_credential: diff --git a/tests/integration/targets/win_credential/tasks/tests.yml b/tests/integration/targets/win_credential/tasks/tests.yml index cec2cf02..4524b450 100644 --- a/tests/integration/targets/win_credential/tasks/tests.yml +++ b/tests/integration/targets/win_credential/tasks/tests.yml @@ -22,7 +22,7 @@ ansible_become: True ansible_become_method: runas ansible_become_user: '{{ ansible_user }}' - ansible_become_pass: '{{ ansible_password }}' + ansible_become_pass: '{{ ansible_password | default(ansible_test_connection_password) }}' - name: get result of create domain user credential (check mode) test_cred_facts: