[DOCS] Create separate example playbook file

Change-Id: Ic78d44f209d75dd4483ccb68fa6de44b6c63e66e
This commit is contained in:
Robb Romans 2016-08-11 15:34:33 -05:00
parent d66cedcc15
commit 887ea608fa
3 changed files with 30 additions and 26 deletions

View File

@ -1,28 +1,5 @@
===========================
OpenStack-Ansible LXC hosts
###########################
===========================
Ansible role that configures a host for running LXC containers.
Default Variables
=================
.. literalinclude:: ../../defaults/main.yml
:language: yaml
:start-after: under the License.
Required Variables
==================
None
Example Playbook
================
.. code-block:: yaml
- name: Basic lxc host setup
hosts: "hosts"
user: root
roles:
- { role: "lxc_hosts" }

View File

@ -1 +1,23 @@
.. include:: ../../README.rst
===========================
OpenStack-Ansible LXC hosts
===========================
Ansible role that configures a host for running LXC containers.
Default variables
~~~~~~~~~~~~~~~~~
.. literalinclude:: ../../defaults/main.yml
:language: yaml
:start-after: under the License.
Required variables
~~~~~~~~~~~~~~~~~~
None
Example playbook
~~~~~~~~~~~~~~~~
.. literalinclude:: ../../examples/playbook.yml
:language: yaml

5
examples/playbook.yml Normal file
View File

@ -0,0 +1,5 @@
- name: Basic LXC host setup
hosts: "hosts"
user: root
roles:
- { role: "lxc_hosts" }