summaryrefslogtreecommitdiff
path: root/roles/install_jerasure/tasks/main.yaml
blob: 6a5abe94cdbfc750366def2a00ae68845366a598 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
- name: Ensure legacy workspace directory
  file:
    path: '{{ ansible_user_dir }}/workspace'
    state: directory

- name: Build and Install GF-Complete
  shell:
    cmd: |
      set -e
      set -x
      cd $WORKSPACE
      git clone http://lab.jerasure.org/jerasure/gf-complete.git
      cd gf-complete
      ./autogen.sh
      ./configure
      make
      sudo make install
    executable: /bin/bash
    chdir: '{{ ansible_user_dir }}/workspace'
  environment: '{{ zuul | zuul_legacy_vars }}'

- name: Build and Install Jerasure
  shell:
    cmd: |
      set -e
      set -x
      cd $WORKSPACE
      git clone http://lab.jerasure.org/jerasure/jerasure.git
      cd jerasure
      autoreconf --force --install
      ./configure
      make
      sudo make install
    executable: /bin/bash
    chdir: '{{ ansible_user_dir }}/workspace'
  environment: '{{ zuul | zuul_legacy_vars }}'