win_ansible_role_sshd/handlers/main.yml

12 lines
355 B
YAML
Raw Normal View History

2022-12-29 16:40:39 +01:00
---
- name: 'Install SSH Keys'
ansible.windows.win_shell: '.ansible\ssh_keys.ps1'
2022-12-29 18:01:10 +01:00
- 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 }}'