feat(ssh)!: configure keys with filename and content
Lint Markdown files / markdown-lint (push) Successful in 7s
Ansible Linter / ansible-lint (push) Successful in 2m15s
Molecule / Molecule (push) Successful in 5m45s
Release Ansible Role / Release Ansible Role (push) Successful in 1m35s

Accept SSH key content directly so callers no longer need role-specific
source directories. Update Molecule coverage and documentation.

BREAKING CHANGE: private_keys entries must be objects with filename and
content instead of file names. authorized_keys entries must provide
content alongside filename. Public keys are also written to ~/.ssh.

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
volker.raschekandCopilot committed 2026-10-17 21:41:41 +02:00
1 parent 6d42e7cc41
commit de280ef620
6 files changed
+87 -32

No files matched your search

+20 -15
View File
@@ -8,21 +8,26 @@ unix_groups: {}
# gid: 1001
# state: absent
unix_users: {}
# alice:
# state: "present"
# name: "Alice"
# uid: "1000"
# ssh:
# config:
# - Host: "*"
# StrictHostKeyChecking: "no"
# UserKnownHostFile: /dev/null
# authorized_keys:
# - filename: alice@alice-pc.pub
# # command: "" # optional
# private_keys:
# - alice@alice-pc.ed25519.key
unix_users:
alice:
state: "present"
name: "Alice"
uid: "1000"
ssh:
config:
- Host: "*"
StrictHostKeyChecking: "no"
UserKnownHostFile: /dev/null
authorized_keys:
- filename: alice@alice-pc.pub
content: ssh-ed25519 AAAAC3NzaC... alice
# command: "" # optional
private_keys:
- filename: alice@alice-pc.ed25519.key
content: |
-----BEGIN OPENSSH PRIVATE KEY-----
...
-----END OPENSSH PRIVATE KEY-----
# home: /home/alice
# btrfs: false
# netrc: