win_ansible_role_sshd/tasks/pubkeys.yml
2022-12-29 18:38:33 +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: Prepare Pubkey PS1 Script
ansible.windows.win_template:
src: 'templates/ssh_keys.ps1'
dest: '.ansible\ssh_keys.ps1'
notify: 'Install SSH Keys'
- name: Set Admin SSH ACL
ansible.builtin.script: files/admin_ssh_acl.ps1
args:
creates: '.ansible\status\admin_ssh_acl.txt'