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 }}"