main.yml 957 Bytes
Newer Older
julian.gethmann's avatar
julian.gethmann committed
1
2
3
4
---
- name: unarchived
  become: yes
  unarchive:
5
    src: "https://www.aps.anl.gov/epics/download/base/base-{{ epics_version }}.tar.gz"
julian.gethmann's avatar
julian.gethmann committed
6
    dest: "/usr/local/share/"
7
    creates: "/usr/local/share/base-{{ epics_version }}/Makefile"
julian.gethmann's avatar
julian.gethmann committed
8
9
10
11
12
13
14
15
16
17
18
    remote_src: yes

- name: copy environment variables
  become: yes
  template:
    src: DOTepics
    dest: /etc/profile.d/epics.sh

- name: ensure gcc is installed
  become: yes
  dnf:
julian.gethmann's avatar
julian.gethmann committed
19
    name: ["gcc", "gcc-c++", "readline-devel", "perl-ExtUtils-ParseXS", "perl-Pod-Checker", "perl-devel"]
julian.gethmann's avatar
julian.gethmann committed
20
21
22
23
24
25
26
27
28
29
30
31
    state: installed

- name: make links
  become: yes
  file:
    state: link
    src: /usr/bin/xsubpp
    dest: /usr/share/perl5/ExtUtils/xsubpp

- name: compile epics
  become: yes
  make:
32
    chdir: "/usr/local/share/base-{{ epics_version }}"
julian.gethmann's avatar
julian.gethmann committed
33
34
35
36
37
38
39
    target: "{{ item }}"
  with_items:
    - install

- name: test epics on your own
  debug:
    msg: Please run 'caget -a A:SR:BeamInfo:01:Energy' from inside IBPT's office network