revert urlsplit
This commit is contained in:
parent
1ca12fc5af
commit
6eff586d31
@ -14,7 +14,8 @@ droneci_agent_restart_policy: always
|
|||||||
|
|
||||||
droneci_postgres_enabled: False
|
droneci_postgres_enabled: False
|
||||||
droneci_postgres_ssl_mode: disable
|
droneci_postgres_ssl_mode: disable
|
||||||
droneci_postgres_server: postgres.example.com:5432
|
droneci_postgres_server: postgres.example.com
|
||||||
|
droneci_postgres_port: 5432
|
||||||
droneci_postgres_superuser: postgres
|
droneci_postgres_superuser: postgres
|
||||||
droneci_postgres_password: secure
|
droneci_postgres_password: secure
|
||||||
|
|
||||||
@ -28,7 +29,7 @@ droneci_postgres_db:
|
|||||||
login_user: "{{ droneci_postgres_superuser }}"
|
login_user: "{{ droneci_postgres_superuser }}"
|
||||||
login_password: "{{ droneci_postgres_password }}"
|
login_password: "{{ droneci_postgres_password }}"
|
||||||
# login_unix_socket: # defaults to not set
|
# login_unix_socket: # defaults to not set
|
||||||
port: "{{ droneci_postgres_server | urlsplit('port') }}"
|
port: "{{ droneci_postgres_server }}"
|
||||||
# owner: # defaults to not set
|
# owner: # defaults to not set
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
@ -43,7 +44,7 @@ droneci_postgres_user:
|
|||||||
login_user: "{{ droneci_postgres_superuser }}"
|
login_user: "{{ droneci_postgres_superuser }}"
|
||||||
login_password: "{{ droneci_postgres_password }}"
|
login_password: "{{ droneci_postgres_password }}"
|
||||||
# login_unix_socket: # defaults to not set
|
# login_unix_socket: # defaults to not set
|
||||||
port: "{{ droneci_postgres_server | urlsplit('port') }}"
|
port: "{{ droneci_postgres_server }}"
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
droneci_gitea_enabled: False
|
droneci_gitea_enabled: False
|
||||||
|
@ -47,5 +47,5 @@
|
|||||||
state: "{{ droneci_postgres_user.state | default('present') }}"
|
state: "{{ droneci_postgres_user.state | default('present') }}"
|
||||||
no_log: True
|
no_log: True
|
||||||
when: droneci_postgres_user is defined
|
when: droneci_postgres_user is defined
|
||||||
delegate_to: "{{ droneci_postgres_server | urlsplit('hostname') }}"
|
delegate_to: "{{ droneci_postgres_server }}"
|
||||||
when: droneci_postgres_enabled
|
when: droneci_postgres_enabled
|
||||||
|
Loading…
Reference in New Issue
Block a user