Group hosts by SSH authentication method

This commit is contained in:
2026-05-19 07:41:48 +02:00
parent 5f5760b468
commit fd18fa6065
2 changed files with 53 additions and 8 deletions
+11 -1
View File
@@ -8,10 +8,20 @@ all:
test:
hosts:
test-server.example.com:
ansible_ssh_private_key_file: ~/.ssh/id_ed25519
linux_servers:
hosts:
linux-server-01.example.com:
linux-server-02.example.com:
ansible_host: 192.0.2.10
ssh_key_servers:
vars:
ansible_ssh_private_key_file: ~/.ssh/id_ed25519
hosts:
test-server.example.com:
linux-server-01.example.com:
ssh_password_servers:
hosts:
linux-server-02.example.com: