Consolidate SSH keys. Add host IPs.

This commit is contained in:
Fern Garden 2025-06-28 13:05:36 +08:00
parent ddf6a0d989
commit 4555b9664f
2 changed files with 12 additions and 26 deletions

View file

@ -4,10 +4,15 @@
ungrouped:
hosts:
docker.local:
ansible_host: 10.0.1.106
minecraft.local:
ansible_host: 10.0.1.105
ff-syncserver.local:
ansible_host: 10.0.1.102
technitium.local:
ansible_host: 10.0.1.111
weebill.local:
ansible_host: 10.0.1.4
### GROUPS ###

View file

@ -1,34 +1,15 @@
- name: Add SSH Key - muskduck
- name: Add SSH Keys
tags:
- ssh_keys
ansible.posix.authorized_key:
user: fern
state: present
key: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGp2OX16VJ+G8cE5hjt2vLc8teUpE+EaN2YmEqqMx/j9 fern@muskduck"
- name: Add SSH Key - pardalote
tags:
- ssh_keys
ansible.posix.authorized_key:
user: fern
state: present
key: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKzW4epTmK01kGVXcuAXUNJQPltnogf4uab9FA5m8S3n fern@pardalote"
- name: Add SSH Key - fairywren
tags:
- ssh_keys
ansible.posix.authorized_key:
user: fern
state: present
key: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBEJYq1fMxVOzCMfE/td6DtWS8nUk76U9seYD3Z9RYAz u0_a399@fairywren"
- name: Add SSH Key - YubiKey
tags:
- ssh_keys
ansible.posix.authorized_key:
user: fern
state: present
key: "sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIMoJvPcUJDVVzO4dHROCFNlgJdDZSP5xyPx2s40zcx5QAAAABHNzaDo= YubiKey5NFC"
exclusive: true
key: >
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIETPyuxUVEmYyEW6PVC6BXqkhULHd/RvMm8fMbYhjTMV fern@muskduck
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKzW4epTmK01kGVXcuAXUNJQPltnogf4uab9FA5m8S3n fern@pardalote
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBEJYq1fMxVOzCMfE/td6DtWS8nUk76U9seYD3Z9RYAz u0_a399@fairywren
sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIMoJvPcUJDVVzO4dHROCFNlgJdDZSP5xyPx2s40zcx5QAAAABHNzaDo= YubiKey5NFC
- name: Disable root login
become: true