summaryrefslogtreecommitdiffstats
path: root/roles/openshift_node/tasks
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2015-02-16 17:57:08 -0700
committerJhon Honce <jhonce@redhat.com>2015-02-16 17:57:08 -0700
commit90010f6db6294a99c56194afd89a0359a3d278dc (patch)
tree100b4579e2484bc9c9bef9ee4be5bf9da1db5367 /roles/openshift_node/tasks
parent7d74d1913274cba4c4732cbc5f0a573cb99e5248 (diff)
downloadopenshift-90010f6db6294a99c56194afd89a0359a3d278dc.tar.gz
openshift-90010f6db6294a99c56194afd89a0359a3d278dc.tar.bz2
openshift-90010f6db6294a99c56194afd89a0359a3d278dc.tar.xz
openshift-90010f6db6294a99c56194afd89a0359a3d278dc.zip
Update code to reflect review comments
Diffstat (limited to 'roles/openshift_node/tasks')
-rw-r--r--roles/openshift_node/tasks/main.yml7
1 files changed, 5 insertions, 2 deletions
diff --git a/roles/openshift_node/tasks/main.yml b/roles/openshift_node/tasks/main.yml
index 9da269888..73383da2c 100644
--- a/roles/openshift_node/tasks/main.yml
+++ b/roles/openshift_node/tasks/main.yml
@@ -1,4 +1,5 @@
---
+
# tasks file for openshift_node
- name: Install OpenShift
yum: pkg=openshift-node state=installed
@@ -8,13 +9,14 @@
command: /usr/bin/hostname {{ oo_bind_ip }}
- name: Retrieve OpenShift Master credentials
- local_action: command /usr/bin/rsync --compress --archive --rsh 'ssh -S none -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null' root@{{ oo_master_public_ips[0] }}:/var/lib/openshift/openshift.local.certificates/admin/ /tmp/openshift
+ local_action: command /usr/bin/rsync --compress --archive --rsh 'ssh -S none -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null' root@{{ oo_master_public_ips[0] }}:/var/lib/openshift/openshift.local.certificates/admin/ {{ tmp_dir }}
ignore_errors: yes
- file: path=/var/lib/openshift/openshift.local.certificates/admin state=directory
+- file: path={{ tmp_dir }} state=directory
- name: Store OpenShift Master credentials
- local_action: command /usr/bin/rsync --compress --archive --rsh 'ssh -S none -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null' /tmp/openshift/ root@{{ oo_public_ip }}:/var/lib/openshift/openshift.local.certificates/admin
+ local_action: command /usr/bin/rsync --compress --archive --rsh 'ssh -S none -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null' {{ tmp_dir }}/ root@{{ oo_public_ip }}:/var/lib/openshift/openshift.local.certificates/admin
ignore_errors: yes
- name: Configure OpenShift Node settings
@@ -36,3 +38,4 @@
- name: Enable OpenShift
service: name=openshift-node enabled=yes state=started
+- file: name={{ tmp_dir }} state=absent