fix: not create user and dataase when not active database
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
1fdff1c48b
commit
294128fa2b
@ -71,4 +71,4 @@ postgresql_users:
|
|||||||
postgres_users_no_log: true
|
postgres_users_no_log: true
|
||||||
postgres_consul_service: false
|
postgres_consul_service: false
|
||||||
postgres_consul_service_name: postgress
|
postgres_consul_service_name: postgress
|
||||||
postgres_consul_tag: "active"
|
postgres_consul_tag:
|
||||||
|
@ -17,5 +17,6 @@
|
|||||||
become: true
|
become: true
|
||||||
become_user: "{{ postgresql_user }}"
|
become_user: "{{ postgresql_user }}"
|
||||||
# See: https://github.com/ansible/ansible/issues/16048#issuecomment-229012509
|
# See: https://github.com/ansible/ansible/issues/16048#issuecomment-229012509
|
||||||
|
when: postgres_consul_tag is not defined or postgres_consul_tag == "active"
|
||||||
vars:
|
vars:
|
||||||
ansible_ssh_pipelining: true
|
ansible_ssh_pipelining: true
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
no_log: "{{ postgres_users_no_log }}"
|
no_log: "{{ postgres_users_no_log }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{ postgresql_user }}"
|
become_user: "{{ postgresql_user }}"
|
||||||
|
when: postgres_consul_tag is not defined or postgres_consul_tag == "active"
|
||||||
# See: https://github.com/ansible/ansible/issues/16048#issuecomment-229012509
|
# See: https://github.com/ansible/ansible/issues/16048#issuecomment-229012509
|
||||||
vars:
|
vars:
|
||||||
ansible_ssh_pipelining: true
|
ansible_ssh_pipelining: true
|
||||||
|
Loading…
Reference in New Issue
Block a user