summaryrefslogtreecommitdiffstats
path: root/README_ANSIBLE_CONTAINER.md
diff options
context:
space:
mode:
authorBrenton Leanhardt <bleanhar@redhat.com>2015-08-17 08:31:44 -0400
committerBrenton Leanhardt <bleanhar@redhat.com>2015-08-17 08:31:44 -0400
commit0fe45e2b9978b9f39693391d792fdf560f978021 (patch)
tree3678865a2e3423c649e2b00441921e8c10491946 /README_ANSIBLE_CONTAINER.md
parent30d653aa5b776afbf35c98b1b5e7436f8cb7123c (diff)
parent85c12d98930ae17c782e4d30bae5b1c0dfaadd4f (diff)
downloadopenshift-0fe45e2b9978b9f39693391d792fdf560f978021.tar.gz
openshift-0fe45e2b9978b9f39693391d792fdf560f978021.tar.bz2
openshift-0fe45e2b9978b9f39693391d792fdf560f978021.tar.xz
openshift-0fe45e2b9978b9f39693391d792fdf560f978021.zip
Merge pull request #456 from aveshagarwal/ae-ansible-merge-container
AE->OSO ansible merge: ansible in container
Diffstat (limited to 'README_ANSIBLE_CONTAINER.md')
-rw-r--r--README_ANSIBLE_CONTAINER.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/README_ANSIBLE_CONTAINER.md b/README_ANSIBLE_CONTAINER.md
new file mode 100644
index 000000000..30c5f8503
--- /dev/null
+++ b/README_ANSIBLE_CONTAINER.md
@@ -0,0 +1,15 @@
+# Running ansible in a docker container
+* Building ansible container:
+
+ ```sh
+ git clone https://github.com/openshift/openshift-ansible.git
+ cd openshift-ansible
+ 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
+ ```