Could not find an ansible playbook when running script using supervisor
<p>I am relatively new to supervisord. I am trying to run my python script as a daemon process using supervisord. The following is my conf file which I put on <code>/etc/supervisor/conf.d</code></p>

<pre><code>[program:myscript]
command=/usr/bin/python /etc/supervisor/conf.d/main.py
user=ubuntu
autostart=true
autorestart=true
stderr_logfile=/var/log/stagingbot.err.log
stdout_logfile=/var/log/stagingbot.out.log
</code></pre>

<p>inside my <code>main.py</code>, there is a subprocess that will call an ansible playbook which is also located in <code>/etc/supervisor/conf.d</code>, named <code>start.yml</code>. However, I got an error saying that the particular yml could not be found.
<code>Error: the playbook: start.yml could not be found</code></p>

<p>On the other hand, when I ran my script using <code>python main.py &amp;</code> it works fine as it can find the ansible playbook.</p>

<p>any helps would be really appreciated. Thank you </p>