[DOCS] Move playbook example to separate file

Change-Id: I9551748692140100ede69fa5fa0ad61609743109
This commit is contained in:
Robb Romans 2016-08-11 15:26:29 -05:00 committed by Travis Truman
parent a26efadae1
commit b06ca2f2ab
3 changed files with 37 additions and 30 deletions

View File

@ -1,32 +1,9 @@
======================================
OpenStack-Ansible LXC container create
######################################
======================================
Ansible role for creating LXC containers. This role will create several
directories on the LXC host for use in bind mounted storage within the
container.
Default Variables
=================
.. literalinclude:: ../../defaults/main.yml
:language: yaml
:start-after: under the License.
Required Variables
==================
None
Example Playbook
================
.. code-block:: yaml
- name: Create container(s)
hosts: all_containers
gather_facts: false
user: root
roles:
- { role: "lxc_container_create" }
Documentation for the project can be found at:
http://docs.openstack.org/developer/openstack-ansible-lxc_container_create/
The project home is at:
http://launchpad.net/openstack-ansible

View File

@ -1 +1,25 @@
.. include:: ../../README.rst
======================================
OpenStack-Ansible LXC container create
======================================
Ansible role for creating LXC containers. This role creates several
directories on the LXC host for use in bind-mounted storage within the
container.
Default variables
=================
.. literalinclude:: ../../defaults/main.yml
:language: yaml
:start-after: under the License.
Required variables
==================
None
Example playbook
~~~~~~~~~~~~~~~~
.. literalinclude:: ../../examples/playbook.yml
:language: yaml

6
examples/playbook.yml Normal file
View File

@ -0,0 +1,6 @@
- name: Create container(s)
hosts: all_containers
gather_facts: false
user: root
roles:
- { role: "lxc_container_create" }