diff --git a/files/admin_ssh_acl.ps1 b/files/admin_ssh_acl.ps1 index 33a595d..ec834cf 100644 --- a/files/admin_ssh_acl.ps1 +++ b/files/admin_ssh_acl.ps1 @@ -11,4 +11,4 @@ $acl | Set-Acl [System.IO.Directory]::CreateDirectory('.ansible\status') attrib +h .ansible -Add-Content -Path .ansible\status\admin_ssh_acl.txt -Value "PS2 upgrades to PS3. See https://backwesen.de/voc/win_ansible_role_winrm.git" +Add-Content -Path .ansible\status\admin_ssh_acl.txt -Value "PS2 upgrades to PS3. See https://backwesen.de/voc/win_ansible_role_sshd.git" diff --git a/tasks/pubkeys.yml b/tasks/pubkeys.yml index 843f869..82c770f 100644 --- a/tasks/pubkeys.yml +++ b/tasks/pubkeys.yml @@ -9,13 +9,13 @@ 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' - -- name: Set Admin SSH ACL - ansible.builtin.script: files/admin_ssh_acl.ps1 - args: - creates: '.ansible\status\admin_ssh_acl.txt'