From 5ef0d976a959ed966125a98b42e30909f66282f9 Mon Sep 17 00:00:00 2001 From: L3D Date: Sat, 31 Dec 2022 16:43:37 +0100 Subject: [PATCH] ssh key optimisation --- files/admin_ssh_acl.ps1 | 2 +- tasks/pubkeys.yml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) 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'