improve linting

This commit is contained in:
L3D 2023-02-01 00:01:00 +01:00
parent 5ef0d976a9
commit 81c39ab5a7
Signed by: l3d
GPG key ID: CD08445BFF4313D1
3 changed files with 16 additions and 14 deletions

14
.yamllint Normal file
View file

@ -0,0 +1,14 @@
---
extends: default
rules:
# 150 chars should be enough, but don't fail if a line is longer
line-length:
max: 180
level: warning
ignore: |
host_vars/mail01.l3d.space/vault.yml
host_vars/web01.l3d.space/vault.yml
group_vars/all/vault.yml
roles/

View file

@ -1,9 +1,11 @@
---
win_sshd_pubkeys:
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIsOE9FWrhICb0i9WuTorFzD9+K7hy1bR/KSq4VGW8J2 l3d'
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJz7zEvUVgJJJsIgfG3izsqYcM22IaKz4jGVUbNRL2PX l3d'
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBbMB5Z1AoNeEyk3x+XN6mXU+cUOUlOqRzn0Z64kiE+O l3d'
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAG65EdcM+JLv0gnzT9LcqVU47Pkw0SqiIg7XipXENi8 l3d'
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPvvXN33GwkTF4ZOwPgF21Un4R2z9hWUuQt1qIfzQyhC l3d'
# yamllint disable-line rule:line-length
- 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAIAQDFziTFj+iUnReuEk6wDabXUN4yuSlqIl+4THEoTYeZ9S/cGqm6/LkchaoIVXy4HpY/CwoKWzbOxh14oRFE7+Ak6PgYt0D8YdhXhEQqV/ZIW7qp/HL25dKIom40xAkSU8Hff/dd0EUeqbSoGqKGPsxY4Hw0u6Wkg48SDorXn2YT9raAolZsJelyR+VQrIpAidXLjvFbSP0k5CQ/aHJg9M6dW+JoF3wl+rPSO1lQRb5OntKLO9/34qNO2311l7N9SmN06LGikTEoWRy8bds3ATeiNYEaR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xJ0Xdb2mJEo1kfZ5qK/+VCkyhYlVAOaYHYxJ6qigv1Sa5ecGzP77amIlhbdtnCGcLa63JyFik6QyYP44sXo+TRiTO5urjTfMq3RWL39NJ0wbqLNyol3NdS36LG++IKviBD81gl6E0gJE3USgBwhVAxYHxfig+HCr1DCcrV8mU+tre7T63yZCWB9/l2U+SRjKYkMDs7oPU32blKfCiTlZiLqZBy1lWqGk04s/s6BwDszPxw3prmchkkriB3CgGhhha/FCn0Q== l3d@'
win_sshd_otheruserkeys: false

View file

@ -20,17 +20,3 @@
ansible.windows.win_powershell:
script: 'New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "$Env:SystemRoot\System32\WindowsPowerShell\v1.0\powershell.exe" -PropertyType String -Force'
changed_when: _fw.changed
#- name: Configure ACL and ssh keys
# ansible.windows.win_powershell:
# script: |
# # set acl on administrators_authorized_keys
# $admins = ([System.Security.Principal.SecurityIdentifier]'S-1-5-32-544').Translate( [System.Security.Principal.NTAccount]).Value
# $acl = Get-Acl $Env:ProgramData\ssh\administrators_authorized_keys
# $acl.SetAccessRuleProtection($true, $false)
# $administratorsRule = New-Object system.security.accesscontrol.filesystemaccessrule($admins,"FullControl","Allow")
# $systemRule = New-Object system.security.accesscontrol.filesystemaccessrule("SYSTEM","FullControl","Allow")
# $acl.SetAccessRule($administratorsRule)
# $acl.SetAccessRule($systemRule)
# $acl | Set-Acl
# changed_when: _fw.changed