fix: not create user and dataase when not active database
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
vincent 2023-11-04 17:34:26 +01:00
parent 1fdff1c48b
commit 294128fa2b
3 changed files with 3 additions and 1 deletions

View File

@ -71,4 +71,4 @@ postgresql_users:
postgres_users_no_log: true
postgres_consul_service: false
postgres_consul_service_name: postgress
postgres_consul_tag: "active"
postgres_consul_tag:

View File

@ -17,5 +17,6 @@
become: true
become_user: "{{ postgresql_user }}"
# See: https://github.com/ansible/ansible/issues/16048#issuecomment-229012509
when: postgres_consul_tag is not defined or postgres_consul_tag == "active"
vars:
ansible_ssh_pipelining: true

View File

@ -17,6 +17,7 @@
no_log: "{{ postgres_users_no_log }}"
become: true
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
vars:
ansible_ssh_pipelining: true