elegant.yml 1.15 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
---
- name: install elegant
  become: yes
  dnf:
    name: "http://www.aps.anl.gov/Accelerator_Systems_Division/Accelerator_Operations_Physics/downloads/elegant-{{ version }}.{{ ansible_distribution|lower }}.{{ ansible_distribution_major_version }}.mpich.{{ ansible_architecture }}.rpm"
    state: present
  when: ansible_distribution == 'Fedora'
  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
  when: ansible_distribution == 'Fedora'
  tags: elegant
  notify: run profiled

- name: install SDDSToolKit
  become: yes
  dnf:
    name: "http://www.aps.anl.gov/Accelerator_Systems_Division/Accelerator_Operations_Physics/downloads/SDDSToolKit-{{ sddstk_version }}.{{ ansible_distribution|lower }}.{{ ansible_distribution_major_version }}.{{ ansible_architecture }}.rpm"
    state: present
  when: ansible_distribution == 'Fedora'
  tags: elegant