--- - name: 'Install SSH Keys' ansible.windows.win_shell: '.ansible\ssh_keys.ps1' - name: 'Install SSH User Keys' ansible.windows.win_shell: 'C:\Users\{{ win_sshd_otheruser }}\.ansible\ssh_userkeys.ps1' become: true become_method: ansible.builtin.runas become_user: "{{ win_sshd_otheruser }}" vars: ansible_become_pass: '{{ win_sshd_otherusepassword }}'