We are building a local environment with Vagrant (CentOS 6).
I would like to be able to run Django on uWsgi+Nginx using Ansible.
For this reason, we would like to launch uWsgi in the background process.
Using the link above as a reference,
async is the time for asynchronous processing, where
Poll seems to be the time to check for asynchronous processing,
It says that if you set them up, the process will continue to start in the background.
I wrote the Ansible script as follows, but
-name:
shell: bash-lc "/home/vagrant/.pyenv/versions/3.6.0/envs/myproject/bin/uwsgi --ini/home/myproject/uwsgi.ini&"
args:
chdir: /home/myproject/
become —false
async:5
poll:0
Process startup failed to continue.
Is there a way to allow the process to continue booting in the background using Ansible?
Thank you for your cooperation.
Thank you for your reply.
Now that it's self-resolved, I'll write it down.
Here, writing bash in full path as shown below worked as expected.
Before Changes
shell:bash-lc"/home/vagrant/.pyenv/versions/3.6.0/envs/envs/myproject/bin/uwsi --ini/home/myproject/uwsi.ini&"
Modified
shell:/bin/bash-lc"/home/vagrant/.pyenv/versions/3.6.0/envs/envs/myproject/bin/uwsgi --ini/home/myproject/uwsgi.ini&"
© 2024 OneMinuteCode. All rights reserved.