win_ansible_role_sshd/handlers/main.yml
2023-09-18 14:23:55 +02:00

11 lines
371 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: ansible.builtin.runas
become_user: "{{ win_sshd_otheruser }}"
vars:
ansible_become_pass: '{{ win_sshd_otherusepassword }}'