From cb8d8850618ca7b39d4c05d579f375968178efea Mon Sep 17 00:00:00 2001 From: dvirlabs Date: Fri, 17 Apr 2026 16:33:35 +0300 Subject: [PATCH] Update the repo to work with remote servers --- ansible/group_vars/all.yml | 6 ++++++ ansible/inventory/hosts.yml | 7 +++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ansible/group_vars/all.yml b/ansible/group_vars/all.yml index 0b9a9c7..a15eb28 100644 --- a/ansible/group_vars/all.yml +++ b/ansible/group_vars/all.yml @@ -1,6 +1,12 @@ --- # Global variables for rsyslog configuration management +# Deployment configuration +deploy_user: root +deploy_host: "REPLACE_ME" +ansible_ssh_private_key_file: "~/.ssh/id_rsa" +ansible_ssh_common_args: "-o StrictHostKeyChecking=no" + # Root directory of the rsyslog repository repo_root: /root/rsyslog diff --git a/ansible/inventory/hosts.yml b/ansible/inventory/hosts.yml index a662d1b..6154600 100644 --- a/ansible/inventory/hosts.yml +++ b/ansible/inventory/hosts.yml @@ -2,5 +2,8 @@ all: children: rsyslog_servers: hosts: - localhost: - ansible_connection: local + rsyslog-server: + ansible_host: "{{ deploy_host }}" + ansible_user: "{{ deploy_user }}" + ansible_ssh_private_key_file: "{{ ansible_ssh_private_key_file }}" + ansible_ssh_common_args: "{{ ansible_ssh_common_args }}"