win_ansible_role_sshd/tasks/pubkeys.yml
2022-12-31 16:43:37 +01:00

21 lines
587 B
YAML

---
- name: Create .ansible folder
ansible.windows.win_powershell:
script: "[System.IO.Directory]::CreateDirectory('.ansible')"
changed_when: _fw.changed
- name: Create .ansible folder
ansible.windows.win_powershell:
script: "attrib +h .ansible"
changed_when: _fw.changed
- name: Set Admin SSH ACL
ansible.builtin.script: files/admin_ssh_acl.ps1
args:
creates: '.ansible\status\admin_ssh_acl.txt'
- name: Prepare Pubkey PS1 Script
ansible.windows.win_template:
src: 'templates/ssh_keys.ps1'
dest: '.ansible\ssh_keys.ps1'
notify: 'Install SSH Keys'