summaryrefslogtreecommitdiffstats
path: root/src/spdk/ansible/tasks/install.yml
blob: 7957ba8204343361cbe756a2b67bf261d40835b2 (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
---
- name: download spdk source code
  shell: git clone "{{ remote_url }}"
  args:
    chdir: "{{ user_dir }}"
  when: enabled_install == "spdk_alone"

- name: download spdk source code into ceph
  shell: git submodule update --init src/spdk
  args:
    chdir: "{{ ceph_dir }}"
  when: enabled_install == "ceph_spdk"

- name: Install the spdk dependency packages
  shell: sudo ./scripts/pkgdep.sh
  args:
    chdir: "{{ spdk_dir }}"

- name: Download dpdk
  raw: cd {{ spdk_dir }} && sudo git submodule update --init

### deploy spdk in Ubuntu, Debian, Centos, Fedora
- name: deploy the spdk
  raw: ((cd {{ spdk_dir }}/dpdk && make install T=x86_64-native-linuxapp-gcc DESTDIR=./) && (cd {{ spdk_dir }} && ./configure --with-dpdk=./dpdk/x86_64-native-linuxapp-gcc)) && (cd {{ spdk_dir }} && make)
  when:
    - (system_version == 'Ubuntu' or system_version == 'Debian') or (system_version == 'Centos' or system_version == 'Fedora')


### deploy spdk in FreeBSD
- name: deploy the spdk
  raw: ((cd {{ spdk_dir }}/dpdk && gmake install T=x86_64-native-linuxapp-gcc DESTDIR=./) && (cd {{ spdk_dir }} && ./configure --with-dpdk=./dpdk/x86_64-native-linuxapp-gcc)) && (cd {{ spdk_dir }} && gmake)
  when:
    - system_version == 'FreeBSD'