Group hosts by SSH authentication method
This commit is contained in:
+11
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user