Description
Description
Hi!
We use an external postgres and define it with the PMM_POSTGRES_ADDR and PMM_DISABLE_BUILTIN_POSTGRES envs.
However the pmm-init process cannot work correctly due to the ansible task in the initialization role:
- name: Wait for PostgreSQL to become responsive
wait_for:
host: 127.0.0.1
port: 5432
timeout: 150
And the pmm-init cannot be completed correctly due to the failed task.
It would be great if you added a condition to the problem task like when: lookup('env','PMM_POSTGRES_ADDR') == '127.0.0.1:5432' and lookup('env','PMM_DISABLE_BUILTIN_POSTGRES') != '1'
.
Expected Results
We use an external postgres and expect the pmm-init process will work correctly.
Actual Results
The pmm-init runs the task for the local postgres and waits for task to be completed.
We don't have local postgres just because it runs on a separate host.
So the task fails and the playbook fails too.
Version
3.0.0
Steps to reproduce
No response
Relevant logs
Code of Conduct
- I agree to follow Percona Community Code of Conduct