# 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:** 17

<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 10:44 UTC](https://meta.discourse.org/t/automate-discourse-docker-with-ansible/67150/17 "2019-03-05T10:44:43Z")

</div>

So my file.rb should be like this ?

rails r “u = User.create!(username: ‘{{ Muthukkumar }}’, email: ‘{{ [muthukkumar@abc.net](mailto:muthukkumar@abc.net) }}’, password: ’ {{ mypin }}', admin: true)”  
rails r “u.activate”

---

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