Files
volker.raschekandCopilot de280ef620
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
feat(ssh)!: configure keys with filename and content
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>
2026-10-17 21:41:41 +02:00

54 lines
1.2 KiB
YAML

---
unix_groups: {}
# alice:
# gid: 1001
# state: present
# bob:
# 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
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:
# - machine: hostame.local
# login: username
# password: password
# shell: /bin/bash
# shell_rc_files:
# - file: "/home/alice/.bashrc.d/docker.bashrc" # absolute or relative path to home dir
# aliases:
# - key: "dcd"
# value: "docker-compose down"
# envs:
# - export: true
# key: "PATH"
# value: "${XDG_BIN_DIR}:${PATH}"
# functions:
# - name: "foo"
# value: "echo \"bar\""
# group: alice
# groups: []
# password: ""
# email: alice@example.local