elegant.yml 1.13 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
  when: ansible_distribution == 'Fedora' and (ansible_distribution_major_version|int) == item.key|int
8
  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
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
- name: install sddstoolkit dependencies
  become: yes
  dnf:
julian.gethmann's avatar
julian.gethmann committed
36
    name: "{{ preSDDSdev }}"
37 38 39 40 41 42
    state: present
  when: ansible_distribution == 'Fedora'
  tags:
    - elegant
    - sdds

43
- import_tasks: sddstoolkit.yml