fix(ssh): remove authorized_keys filename for 2.1.0
Lint Markdown files / markdown-lint (push) Successful in 8s
Ansible Linter / ansible-lint (push) Successful in 2m9s
Molecule / Molecule (push) Successful in 5m8s
Release Ansible Role / Release Ansible Role (push) Successful in 3m17s

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
volker.raschekandCopilot committed 2026-10-17 22:21:39 +02:00
1 parent de280ef620
commit 89e36b89d6
5 files changed
+7 -47

No files matched your search

+4 -6
View File
@@ -138,11 +138,11 @@ environment variables can be espcilitly defined, to consume it during execution
> [!IMPORTANT]
> To allow consuming environment variables must be set `PermitUserEnvironment yes` in `/etc/ssh/sshd_config`.
Private and public keys are configured directly using `filename` and `content`. The role writes each key to
`~/.ssh/<filename>`. Store private key content encrypted with Ansible Vault.
Private keys are configured using `filename` and `content`; the role writes them to `~/.ssh/<filename>` and extracts
their public keys to `~/.ssh/<filename>.pub`. Store private key content encrypted with Ansible Vault.
Entries in `authorized_keys` are also added to `~/.ssh/authorized_keys`, including their optional command and environment
settings. Public keys are still automatically extracted from private keys into `~/.ssh/<filename>.pub`.
settings.
```yaml
unix_users:
@@ -157,13 +157,11 @@ unix_users:
StrictHostKeyChecking: "no"
UserKnownHostFile: /dev/null
authorized_keys:
- filename: claire@claire-pc.pub
content: ssh-ed25519 AAAAC3NzaC... claire
- content: ssh-ed25519 AAAAC3NzaC... claire
- command: /usr/local/bin/upload-file.sh
envs:
- key: SSH_KEY_NAME
value: bob@bob-pc
filename: bob@bob-pc.pub
content: ssh-ed25519 AAAAC3NzaC... bob
private_keys:
- filename: toor@toor-pc.ed25519.key