# Automate Discourse Docker with Ansible

**URL:** <https://meta.discourse.org/t/automate-discourse-docker-with-ansible/67150>\
**Category:** Self-hosting\
**Tags:** unsupported-install, hosting\
**Created:** [31 juli 2017 om 08:54 UTC](https://meta.discourse.org/t/automate-discourse-docker-with-ansible/67150 "2017-07-31T08:54:17Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![Muthukkumar](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@Muthukkumar](https://meta.discourse.org/u/Muthukkumar)\
**Post date:** [5 maart 2019 om 05:44 UTC](https://meta.discourse.org/t/automate-discourse-docker-with-ansible/67150/13 "2019-03-05T05:44:49Z")

</div>

Hi @ahmed_alamiry I have added the same command in app.yml custom command section but I am getting the below error. If you don’t mind could you please guide me.

```
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && rails r file.rb failed with return #<Process::Status: pid 5317 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'
exec failed with the params "cd /var/www/discourse && rails r file.rb"

```

Note : I have tried with placed the file under "/var/discourse/container# " then place inside the container “/var/www/discourse/” but both the time I got the same error.

Please guide me to configure this, Many thanks in advance.

---

_[View the full topic](https://meta.discourse.org/t/automate-discourse-docker-with-ansible/67150)._
