CT 114: Key-Prüfung in litecoin_access läuft auf dem Control-Node
stat/command der files/ssh-Pubkeys hatten ohne delegate_to auf dem Ziel geprüft (exists=false trotz vorhandener Datei). Jetzt delegate_to: localhost. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
---
|
||||
- name: Require all three role-specific public keys in files/ssh
|
||||
- name: Require all three role-specific public keys in files/ssh (control node)
|
||||
ansible.builtin.stat:
|
||||
path: "{{ item }}"
|
||||
delegate_to: localhost
|
||||
loop:
|
||||
- "{{ litecoin_access_agent_public_key_file }}"
|
||||
- "{{ litecoin_access_admin_public_key_file }}"
|
||||
@@ -20,13 +21,14 @@
|
||||
loop_control:
|
||||
label: "{{ item.item }}"
|
||||
|
||||
- name: Validate the public key files are real OpenSSH keys
|
||||
- name: Validate the public key files are real OpenSSH keys (control node)
|
||||
ansible.builtin.command:
|
||||
argv:
|
||||
- /usr/bin/ssh-keygen
|
||||
- -l
|
||||
- -f
|
||||
- "{{ item }}"
|
||||
delegate_to: localhost
|
||||
check_mode: false
|
||||
changed_when: false
|
||||
loop:
|
||||
|
||||
Reference in New Issue
Block a user