summaryrefslogtreecommitdiffstats
path: root/xci/playbooks/configure-opnfvhost.yml
diff options
context:
space:
mode:
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>2017-09-22 16:57:40 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-09-22 16:57:40 +0000
commit50c132fa9d563f6a4d81938814937da2dfa957ca (patch)
tree400f5f9b966e94642067ac5315ce32d127cb5632 /xci/playbooks/configure-opnfvhost.yml
parentbb7e7efef45d8347c08022c7246d6111887b864d (diff)
parent5f5d367247c1b7fd464b92e0748da7f108eb6f7f (diff)
Merge "Install docker and shade on opnfv host"
Diffstat (limited to 'xci/playbooks/configure-opnfvhost.yml')
-rw-r--r--xci/playbooks/configure-opnfvhost.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/xci/playbooks/configure-opnfvhost.yml b/xci/playbooks/configure-opnfvhost.yml
index 067a1176..439201ef 100644
--- a/xci/playbooks/configure-opnfvhost.yml
+++ b/xci/playbooks/configure-opnfvhost.yml
@@ -140,6 +140,18 @@
content: "{{ xci_ssl_key }}"
dest: "/etc/ssl/private/xci.key"
become: true
+ # install docker on opnfv host only if we are running as part of CI
+ - name: install docker
+ package:
+ name: "{{ docker_package_name }}"
+ state: latest
+ when: lookup('env', 'JENKINS_HOME') != ""
+ # install shade on opnfv host only if we are running as part of CI
+ - name: install shade
+ pip:
+ name: shade
+ state: present
+ when: lookup('env', 'JENKINS_HOME') != ""
- hosts: localhost
remote_user: root