win_ansible_role_sshd/handlers/main.yml

12 lines
371 B
YAML
Raw Permalink 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
2023-09-17 14:32:37 +02:00
become_method: ansible.builtin.runas
2022-12-29 18:01:10 +01:00
become_user: "{{ win_sshd_otheruser }}"
vars:
ansible_become_pass: '{{ win_sshd_otherusepassword }}'