diff options
author | chenshuai@huawei.com <chenshuai@huawei.com> | 2015-12-08 20:08:46 +0800 |
---|---|---|
committer | chenshuai@huawei.com <chenshuai@huawei.com> | 2015-12-08 20:11:12 +0800 |
commit | e408668e84f138f69317ff63e68b823dfe80188b (patch) | |
tree | 3279a6cd251f051265d653fa487eaec0c5d3e4b6 /deploy/adapters/ansible/roles/open-contrail/tasks/install/install-common.yml | |
parent | 4d32ee565ecd829a2ec767cae6d8cd23df8e6263 (diff) |
OpenContrail Script Adapter
JIRA: COMPASS-186
Change-Id: I792bc1b592348c9bcc21d6e3616d7b0b79d13f25
Signed-off-by: chenshuai@huawei.com <chenshuai@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/open-contrail/tasks/install/install-common.yml')
-rwxr-xr-x | deploy/adapters/ansible/roles/open-contrail/tasks/install/install-common.yml | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/deploy/adapters/ansible/roles/open-contrail/tasks/install/install-common.yml b/deploy/adapters/ansible/roles/open-contrail/tasks/install/install-common.yml index ea08e49b..3a57fdf0 100755 --- a/deploy/adapters/ansible/roles/open-contrail/tasks/install/install-common.yml +++ b/deploy/adapters/ansible/roles/open-contrail/tasks/install/install-common.yml @@ -2,11 +2,19 @@ #- hosts: all # sudo: yes # tasks: -- name: "copy contrail install package temporary" +#- name: "copy contrail install package temporary" # sudo: True - copy: - src: "files/{{ package }}" - dest: "/tmp/{{ package }}" +# copy: +# src: "{{ package }}" +# dest: "/tmp/{{ package }}" + +- name: get image http server + shell: awk -F'=' '/compass_server/ {print $2}' /etc/compass.conf + register: http_server + +- name: download OpenContrail package file + get_url: url="http://{{ http_server.stdout_lines[0] }}/packages/open-contrail/{{ package }}" dest=/tmp/{{ package }} + - name: "install contrail install package" # sudo: True @@ -49,6 +57,7 @@ apt: deb: "{{ item }}" with_items: required_packages.stdout_lines + ignore_errors: True - name: modify source list # sudo: True |