diff options
Diffstat (limited to 'ci/ansible/roles/common')
-rw-r--r-- | ci/ansible/roles/common/scenarios/release.yml | 6 | ||||
-rw-r--r-- | ci/ansible/roles/common/tasks/main.yml | 22 |
2 files changed, 24 insertions, 4 deletions
diff --git a/ci/ansible/roles/common/scenarios/release.yml b/ci/ansible/roles/common/scenarios/release.yml index 500d82e..83df8bd 100644 --- a/ci/ansible/roles/common/scenarios/release.yml +++ b/ci/ansible/roles/common/scenarios/release.yml @@ -21,8 +21,9 @@ - name: download and extract the opensds release tarball if not exists unarchive: - src={{ opensds_download_url }} - dest=/tmp/ + src: "{{ opensds_download_url }}" + dest: /tmp/ + remote_src: yes when: - opensdsreleasesexisted.stat.exists is undefined or opensdsreleasesexisted.stat.exists == false @@ -36,3 +37,4 @@ copy: src: "{{ opensds_tarball_dir }}/" dest: "{{ opensds_work_dir }}" + mode: 0755 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 }}"
|