diff --git a/inventories/client_template/hosts.yml b/inventories/client_template/hosts.yml index 827a1c9..e96ac75 100644 --- a/inventories/client_template/hosts.yml +++ b/inventories/client_template/hosts.yml @@ -22,10 +22,12 @@ all: ansible_host: "{{ FW_HOST }}" pfsense_nodes: + # Depends on variables set in group_vars/pfsense_nodes.yml hosts: client-fw-01: ansible_host: "{{ FW_HOST }}" ansible_port: 22222 + ansible_ssh_private_key_file: "~/.ssh/client_{{ CLIENT_SLUG }}" ha_role: "primary" # Use: primary | backup #ha_peer: "client-fw-02" # Uncomment if this node is part an HA pair @@ -46,7 +48,7 @@ all: hosts: {} vars: ansible_user: root - ansible_ssh_private_key_file: "~/.ssh/client_key" + ansible_ssh_private_key_file: "~/.ssh/client_{{ CLIENT_SLUG }}" os_family: "debian" windows_hosts: