elegant.yml 1.4 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
---
- 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
julian.gethmann's avatar
julian.gethmann committed
26 27
    create: yes
    state: present
julian.gethmann's avatar
julian.gethmann committed
28 29 30 31
  when: ansible_distribution == 'Fedora'
  tags: elegant
  notify: run profiled

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

julian.gethmann's avatar
julian.gethmann committed
44 45 46 47 48 49
- 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'
50 51 52
  tags:
    - elegant
    - sdds