diff options
author | Avesh Agarwal <avagarwa@redhat.com> | 2015-08-14 09:21:19 -0400 |
---|---|---|
committer | Avesh Agarwal <avagarwa@redhat.com> | 2015-08-14 15:29:24 -0400 |
commit | 12db07f5e2238c728c21de3977e829ca5427b64e (patch) | |
tree | fddbbcdf517c201afc59d19b18ebf5530989f9cc /README_ANSIBLE_CONTAINER.md | |
parent | 20814f5f16800dbf7956ccf8aa16eb972aeade1c (diff) | |
download | openshift-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.md | 18 |
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 + ``` + + + |