win_ansible_role_sshd/handlers/main.yml
2022-12-29 18:01:10 +01:00

11 lines
355 B
YAML

---
- 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: runas
become_user: "{{ win_sshd_otheruser }}"
vars:
ansible_become_pass: '{{ win_sshd_otherusepassword }}'