2022-12-29 16:40:39 +01:00
|
|
|
---
|
|
|
|
- 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
|
|
|
|
|
2022-12-31 16:43:37 +01:00
|
|
|
- name: Set Admin SSH ACL
|
|
|
|
ansible.builtin.script: files/admin_ssh_acl.ps1
|
|
|
|
args:
|
|
|
|
creates: '.ansible\status\admin_ssh_acl.txt'
|
|
|
|
|
2022-12-29 16:40:39 +01:00
|
|
|
- name: Prepare Pubkey PS1 Script
|
|
|
|
ansible.windows.win_template:
|
|
|
|
src: 'templates/ssh_keys.ps1'
|
|
|
|
dest: '.ansible\ssh_keys.ps1'
|
|
|
|
notify: 'Install SSH Keys'
|