# ansible galaxy --container-enabled option

**URL:** <https://forum.ansible.com/t/ansible-galaxy-container-enabled-option/23584>\
**Category:** Ansible Project\
**Tags:** galaxy-ng\
**Created:** [January 28, 2017, 6:00pm UTC](https://forum.ansible.com/t/ansible-galaxy-container-enabled-option/23584 "2017-01-28T18:00:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vang\_Nguyen](https://avatars.discourse-cdn.com/v4/letter/v/d2c977/32.png) [@Vang\_Nguyen](https://forum.ansible.com/u/Vang_Nguyen)\
**Post date:** [January 28, 2017, 6:00pm UTC](https://forum.ansible.com/t/ansible-galaxy-container-enabled-option/23584/1 "2017-01-28T18:00:32Z")

</div>

Hi,

I was just reading about the --container-enabled option for ansible-galaxy init when creating new roles on [http://docs.ansible.com/ansible/galaxy.html#container-enabled](http://docs.ansible.com/ansible/galaxy.html#container-enabled). However I can’t seem to find any reference to which version of ansible-galaxy this is available on to get access to the feature. I’ve got ansible-galaxy 2.2.1.0 and the init help doesn’t say anything about the feature. How do you create an ansible role with that is container enabled as mentioned in the doc? It says:

#### [Container Enabled](http://docs.ansible.com/ansible/galaxy.html#id12)

If you are creating a Container Enabled role, use the _–container-enabled_ option. This will create the same directory structure as above, but populate it with default files appropriate for a Container Enabled role. For instance, the README.md has a slightly different structure, the _.travis.yml_ file tests the role using [Ansible Container](https://github.com/ansible/ansible-container), and the meta directory includes a _container.yml_ file.

---

<div class="post-metadata">

**Author:** ![Greg\_DeKoenigsberg1](https://avatars.discourse-cdn.com/v4/letter/g/838e76/32.png) [@Greg\_DeKoenigsberg1](https://forum.ansible.com/u/Greg_DeKoenigsberg1)\
**Post date:** [January 31, 2017, 4:57pm UTC](https://forum.ansible.com/t/ansible-galaxy-container-enabled-option/23584/2 "2017-01-31T16:57:17Z")

</div>

Vang, you want to read the separate Ansible Container documentation:

[https://docs.ansible.com/ansible-container/](https://docs.ansible.com/ansible-container/)

–g
