summaryrefslogtreecommitdiffstats
path: root/README_ANSIBLE_CONTAINER.md
diff options
context:
space:
mode:
authorAvesh Agarwal <avagarwa@redhat.com>2015-08-14 09:21:19 -0400
committerAvesh Agarwal <avagarwa@redhat.com>2015-08-14 15:29:24 -0400
commit12db07f5e2238c728c21de3977e829ca5427b64e (patch)
treefddbbcdf517c201afc59d19b18ebf5530989f9cc /README_ANSIBLE_CONTAINER.md
parent20814f5f16800dbf7956ccf8aa16eb972aeade1c (diff)
downloadopenshift-12db07f5e2238c728c21de3977e829ca5427b64e.tar.gz
openshift-12db07f5e2238c728c21de3977e829ca5427b64e.tar.bz2
openshift-12db07f5e2238c728c21de3977e829ca5427b64e.tar.xz
openshift-12db07f5e2238c728c21de3977e829ca5427b64e.zip
Renamed README_ANSIBLE to README_ANSIBLE_CONTAINER as per feedback.
Diffstat (limited to 'README_ANSIBLE_CONTAINER.md')
-rw-r--r--README_ANSIBLE_CONTAINER.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/README_ANSIBLE_CONTAINER.md b/README_ANSIBLE_CONTAINER.md
new file mode 100644
index 000000000..19e32d342
--- /dev/null
+++ b/README_ANSIBLE_CONTAINER.md
@@ -0,0 +1,18 @@
+# Running ansible in a docker container
+* Building ansible container:
+
+ ```sh
+ git clone https://github.com/openshift/openshift-ansible.git
+ cd openshift-ansible/ansible-container
+ docker build --rm -t ansible .
+ ```
+* Create /etc/ansible directory on the host machine and copy inventory file (hosts) into it.
+* Copy ssh public key of the host machine to master and nodes machines in the cluster.
+* Running the ansible container:
+
+ ```sh
+ docker run -it --rm --privileged --net=host -v ~/.ssh:/root/.ssh -v /etc/ansible:/etc/ansible ansible
+ ```
+
+
+