diff --git a/tasks/prepare.yml b/tasks/prepare.yml index 2c80b47..9bec8c2 100644 --- a/tasks/prepare.yml +++ b/tasks/prepare.yml @@ -47,5 +47,5 @@ state: "{{ droneci_postgres_user.state | default('present') }}" no_log: True when: droneci_postgres_user is defined - delegate_to: "{{ droneci_postgres_server }}" + delegate_to: "{{ droneci_postgres_server | urlsplit('port') }}" when: droneci_postgres_enabled