summaryrefslogtreecommitdiff
path: root/cloud/lxc
diff options
context:
space:
mode:
authorBrian Coca <brian.coca+git@gmail.com>2015-02-27 09:19:51 -0500
committerBrian Coca <brian.coca+git@gmail.com>2015-02-27 09:19:51 -0500
commitbb886a595d50b29d7be87f271450988d4dd1344d (patch)
tree963668212a386d6dbf9968b9a61fdff21f6a62b5 /cloud/lxc
parentca982cd4ee9b545393e7cfc8a4f440422eaa3ecd (diff)
downloadansible-modules-extras-bb886a595d50b29d7be87f271450988d4dd1344d.tar.gz
updated lxc-containter docs to reflect new name
Diffstat (limited to 'cloud/lxc')
-rw-r--r--cloud/lxc/lxc_container.py28
1 files changed, 14 insertions, 14 deletions
diff --git a/cloud/lxc/lxc_container.py b/cloud/lxc/lxc_container.py
index 6df27867..1ae67bf2 100644
--- a/cloud/lxc/lxc_container.py
+++ b/cloud/lxc/lxc_container.py
@@ -21,7 +21,7 @@
DOCUMENTATION = """
---
-module: lxc-container
+module: lxc_container
short_description: Manage LXC Containers
version_added: 1.8.0
description:
@@ -174,7 +174,7 @@ notes:
EXAMPLES = """
- name: Create a started container
- lxc-container:
+ lxc_container:
name: test-container-started
container_log: true
template: ubuntu
@@ -182,7 +182,7 @@ EXAMPLES = """
template_options: --release trusty
- name: Create a stopped container
- lxc-container:
+ lxc_container:
name: test-container-stopped
container_log: true
template: ubuntu
@@ -190,7 +190,7 @@ EXAMPLES = """
template_options: --release trusty
- name: Create a frozen container
- lxc-container:
+ lxc_container:
name: test-container-frozen
container_log: true
template: ubuntu
@@ -201,7 +201,7 @@ EXAMPLES = """
# Create filesystem container, configure it, and archive it, and start it.
- name: Create filesystem container
- lxc-container:
+ lxc_container:
name: test-container-config
container_log: true
template: ubuntu
@@ -217,7 +217,7 @@ EXAMPLES = """
# configuration to it, create an archive of it, and finally leave the container
# in a frozen state. The container archive will be compressed using bzip2
- name: Create an lvm container
- lxc-container:
+ lxc_container:
name: test-container-lvm
container_log: true
template: ubuntu
@@ -242,7 +242,7 @@ EXAMPLES = """
debug: var=lvm_container_info
- name: Get information on a given container.
- lxc-container:
+ lxc_container:
name: test-container-config
register: config_container_info
@@ -250,33 +250,33 @@ EXAMPLES = """
debug: var=config_container_info
- name: Run a command in a container and ensure its in a "stopped" state.
- lxc-container:
+ lxc_container:
name: test-container-started
state: stopped
container_command: |
echo 'hello world.' | tee /opt/stopped
- name: Run a command in a container and ensure its it in a "frozen" state.
- lxc-container:
+ lxc_container:
name: test-container-stopped
state: frozen
container_command: |
echo 'hello world.' | tee /opt/frozen
- name: Start a container.
- lxc-container:
+ lxc_container:
name: test-container-stopped
state: started
- name: Run a command in a container and then restart it.
- lxc-container:
+ lxc_container:
name: test-container-started
state: restarted
container_command: |
echo 'hello world.' | tee /opt/restarted
- name: Run a complex command within a "running" container.
- lxc-container:
+ lxc_container:
name: test-container-started
container_command: |
apt-get update
@@ -289,14 +289,14 @@ EXAMPLES = """
# Create an archive of an existing container, save the archive to a defined
# path and then destroy it.
- name: Archive container
- lxc-container:
+ lxc_container:
name: test-container-started
state: absent
archive: true
archive_path: /opt/archives
- name: Destroy a container.
- lxc-container:
+ lxc_container:
name: "{{ item }}"
state: absent
with_items: