From 91a84330494b100ac9077652c910fb248f737717 Mon Sep 17 00:00:00 2001 From: leonwang Date: Tue, 7 Aug 2018 14:49:27 +0800 Subject: Update the latest version of ansible script This patch is proposed for merging the latest version of ansible code according to opensds-installer project. From the latest version code, we change the default installation way from source code to release, which means there is no need for golang environment prepare and long-time building work. Change-Id: I93d7d24f29e61979bc8fda7125ae753063eda423 Signed-off-by: leonwang --- ci/ansible/roles/common/tasks/main.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'ci/ansible/roles/common/tasks/main.yml') diff --git a/ci/ansible/roles/common/tasks/main.yml b/ci/ansible/roles/common/tasks/main.yml index daee059..14a28d3 100644 --- a/ci/ansible/roles/common/tasks/main.yml +++ b/ci/ansible/roles/common/tasks/main.yml @@ -31,8 +31,8 @@ apt: update_cache: yes -- name: install make, gcc and pip external packages - apt: +- name: install system packages + package: name: "{{ item }}" state: present with_items: @@ -40,6 +40,24 @@ - gcc - python-pip +- name: install Red Hat system packages + package: + name: "{{ item }}" + state: present + with_items: + - librados-devel + - librbd-devel + when: ansible_os_family == "RedHat" + +- name: install Ubuntu system packages + package: + name: "{{ item }}" + state: present + with_items: + - librados-dev + - librbd-dev + when: ansible_os_family == "Debian" + - name: create opensds work directory if it doesn't exist file: path: "{{ item }}" -- cgit 1.2.3-korg