elegant.yml 1.59 KB
Newer Older
julian.gethmann's avatar
julian.gethmann committed
1
2
3
4
---
- name: install elegant
  become: yes
  dnf:
5
    name: "http://www.aps.anl.gov/Accelerator_Systems_Division/Accelerator_Operations_Physics/downloads/elegant-{{ item.value }}.{{ ansible_distribution|lower }}.{{ ansible_distribution_major_version }}.mpich.{{ ansible_architecture }}.rpm"
julian.gethmann's avatar
julian.gethmann committed
6
    state: present
7
8
  when: ansible_distribution == 'Fedora' and ansible_distribution_major_version|int == item.key|int
  with_dict: "{{ ele_version }}"
julian.gethmann's avatar
julian.gethmann committed
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
  tags: elegant

- name: copy the rpnl definitions
  become: yes
  copy:
    src: defns.rpn
    dest: "{{ defns_path }}"
    backup: yes
  when: ansible_distribution == 'Fedora'
  tags: elegant

- name: create profile file
  become: yes
  lineinfile:
    line: "export RPN_DEFNS={{ defns_path }}"
    regexp: ".*RPN_DEFNS.*"
    dest: /etc/profile.d/pelegant.sh
    backup: yes
julian.gethmann's avatar
julian.gethmann committed
27
28
    create: yes
    state: present
julian.gethmann's avatar
julian.gethmann committed
29
30
31
32
  when: ansible_distribution == 'Fedora'
  tags: elegant
  notify: run profiled

33
34
35
36
37
- name: install sddstoolkit dependencies
  become: yes
  dnf:
    name: "{{ item }}"
    state: present
38
  with_items: "{{ preSDDSdev }}"
39
40
41
42
43
  when: ansible_distribution == 'Fedora'
  tags:
    - elegant
    - sdds

julian.gethmann's avatar
julian.gethmann committed
44
45
46
- name: install SDDSToolKit
  become: yes
  dnf:
47
    name: "http://www.aps.anl.gov/Accelerator_Systems_Division/Accelerator_Operations_Physics/downloads/SDDSToolKit-{{ item.value }}.{{ ansible_distribution|lower }}.{{ ansible_distribution_major_version }}.{{ ansible_architecture }}.rpm"
julian.gethmann's avatar
julian.gethmann committed
48
    state: present
49
50
  when: ansible_distribution == 'Fedora' and ansible_distribution_major_version|int == item.key|int
  with_dict: "{{ sddstk_version }}"
51
52
53
  tags:
    - elegant
    - sdds