diff --git a/defaults/main.yml b/defaults/main.yml index 71de230..d995849 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -20,3 +20,5 @@ postgres_confirm_service_restart: yes postgres_restart_params: archive_mode: "on" wal_level: "{{ postgres_wal_level }}" + +postgres_host_ssh_port: 22 diff --git a/templates/barman.d/template.conf b/templates/barman.d/template.conf index 211118a..47ae309 100644 --- a/templates/barman.d/template.conf +++ b/templates/barman.d/template.conf @@ -1,7 +1,7 @@ ;{{ ansible_managed }} [{{ postgres_host_name }}] description = "{{ postgres_host_description }}" -ssh_command = ssh postgres@{{ postgres_host }} +ssh_command = ssh -p {{ postgres_host_ssh_port }} postgres@{{ postgres_host }} conninfo = host={{ postgres_host }} user=barman compression = gzip retention_policy = REDUNDANCY 4