main.yml 1.6 KB
Newer Older
julian.gethmann's avatar
julian.gethmann committed
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
- name: install Inovesa's dependencies on Fedora without openCL or PNG support
  become: yes
  dnf:
    name: "{{ item }}"
    state: present
  with_items:
    - cmake
    - gcc-c++
    - boost-devel
    - boost-system
    - boost-filesystem
    - boost-program-options
    - fftw-devel
    - glew-devel
    - glfw-devel
    - hdf5-devel
    - libpng-devel
    - libXrandr-devel
    # - libclfft-dev  # does not exist
    # attempts to get opencl running
    # - opencl-headers
    # - mesa-libOpenCL-devel  # did not help
    # - opencl-filesystem
    # - libclc
    # - mesa-libOpenCL
    # - mesa-libOpenCL-devel
  when: ansible_distribution == "Fedora"

- name: install Inovesa's dependencies on Ubuntu
  become: yes
  apt:
    name: "{{ item }}"
    state: present
  with_items:
    - cmake
    - g++
    - libboost-dev
    - libboost-system-dev
    - libboost-filesystem-dev
    - libboost-program-options-dev
    - libfftw3-dev
    - libglew-dev
    - libglfw3-dev
    - libhdf5-dev
    - libpng++-dev
    - libxrandr-dev
    - opencl-dev
    - libclfft-dev
  when: ansible_distribution == "Debian"

- name: clone Inovesa
  become: yes
  git:
    repo: "https://github.com/Inovesa/Inovesa.git"
    clone: yes
    depth: 1
    dest: /usr/local/Inovesa
julian.gethmann's avatar
julian.gethmann committed
59
    version: HEAD
julian.gethmann's avatar
julian.gethmann committed
60
61
62
63
64
65
66

- name: cmake Inovesa
  become: yes
  command: "cmake . "
  args:
    chdir: /usr/local/Inovesa/
    creates: /usr/local/Inovesa/Makefile
julian.gethmann's avatar
julian.gethmann committed
67

julian.gethmann's avatar
julian.gethmann committed
68
69
70
71
72
73
74
75
76
77
78
79
80
- name: make Inovesa
  become: yes
  make:
    chdir: /usr/local/Inovesa

- name: link inovesa
  become: yes
  file:
    mode: o+rx
    path: /usr/local/bin/Inovesa
    src: /usr/local/Inovesa/inovesa
    state: link