Ansible 2.11.0 and PostgreSQL 13

I'm using the PostgreSQL binaries to start the PostgreSQL service in 
Ansible, like this

- name: "Start PostgreSQL version {{ pg_version }} service"
  win_shell: "pg_ctl.exe -D {{ pg_data_dir }} -l {{ pg_log_file }} start"   

and the service does start. However, the playbook is stuck at that task, 
and doesn't proceed with subsequent tasks, presumably because it mimics 
entering that command in Powershell, where the command doesn't come back.

How can I perform the pg_ctl start command in the "background" so the task 
proceeds? Note, per docs, the -W (don't wait for start/stop to complete) is 
the default option so I shouldn't have to add it. But even if I do, the 
task doesn't proceed.

Thanks,
Chris

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/fa17f139-ca20-4271-b1e2-12e137c0b692n%40googlegroups.com.

Reply via email to