From 12db07f5e2238c728c21de3977e829ca5427b64e Mon Sep 17 00:00:00 2001 From: Avesh Agarwal Date: Fri, 14 Aug 2015 09:21:19 -0400 Subject: Renamed README_ANSIBLE to README_ANSIBLE_CONTAINER as per feedback. --- README_ANSIBLE_CONTAINER.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 README_ANSIBLE_CONTAINER.md (limited to 'README_ANSIBLE_CONTAINER.md') 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 + ``` + + + -- cgit v1.2.3 From 8d60535de208a961958dc17f65adbbd03a166200 Mon Sep 17 00:00:00 2001 From: Avesh Agarwal Date: Fri, 14 Aug 2015 09:22:31 -0400 Subject: Removed white spaces. --- README_ANSIBLE_CONTAINER.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'README_ANSIBLE_CONTAINER.md') diff --git a/README_ANSIBLE_CONTAINER.md b/README_ANSIBLE_CONTAINER.md index 19e32d342..0541aef26 100644 --- a/README_ANSIBLE_CONTAINER.md +++ b/README_ANSIBLE_CONTAINER.md @@ -1,4 +1,4 @@ -# Running ansible in a docker container +# Running ansible in a docker container * Building ansible container: ```sh @@ -13,6 +13,3 @@ ```sh docker run -it --rm --privileged --net=host -v ~/.ssh:/root/.ssh -v /etc/ansible:/etc/ansible ansible ``` - - - -- cgit v1.2.3 From 85c12d98930ae17c782e4d30bae5b1c0dfaadd4f Mon Sep 17 00:00:00 2001 From: Avesh Agarwal Date: Fri, 14 Aug 2015 15:28:42 -0400 Subject: Updated Dockerfile not to clone openshift-ansible repo. Movied Dockerfile to openshift-ansible repo root and updated README_ANSIBLE_CONTAINER.md file. --- README_ANSIBLE_CONTAINER.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README_ANSIBLE_CONTAINER.md') diff --git a/README_ANSIBLE_CONTAINER.md b/README_ANSIBLE_CONTAINER.md index 0541aef26..30c5f8503 100644 --- a/README_ANSIBLE_CONTAINER.md +++ b/README_ANSIBLE_CONTAINER.md @@ -3,7 +3,7 @@ ```sh git clone https://github.com/openshift/openshift-ansible.git - cd openshift-ansible/ansible-container + cd openshift-ansible docker build --rm -t ansible . ``` * Create /etc/ansible directory on the host machine and copy inventory file (hosts) into it. -- cgit v1.2.3