commited current state

This commit is contained in:
DerLinkman
2026-05-08 21:27:10 +02:00
parent ffc1a6a8a5
commit 45ccd6a25f
43 changed files with 576 additions and 102 deletions
+2 -2
View File
@@ -5,8 +5,8 @@
- name: Füge Good Keys hinzu
import_tasks: add-goodkeys.yml
when: good_keys
when: good_keys.defined and good_keys | length > 0
- name: Entferne Bad Keys
import_tasks: remove-badkeys.yml
when: bad_keys
when: bad_keys.defined and bad_keys | length > 0
@@ -1,8 +1,8 @@
---
- name: Stelle sicher, dass das .ssh-Verzeichnis existiert
- name: Prüfe das .ssh-Verzeichnis des eingeloggten Users
file:
path: "{{ authorized_keys_file | dirname }}"
path: "{{ ansible_env.HOME }}/.ssh"
state: directory
owner: "{{ ssh_user }}"
group: "{{ ssh_user }}"
owner: "{{ ansible_user_id }}"
group: "{{ ansible_user_gid | default(ansible_user_id) }}"
mode: '0700'