Commit 525b85a6 authored by julian.gethmann's avatar julian.gethmann

Make elegant examples robust against missing distribution packages

parent c892f9d4
......@@ -13,9 +13,10 @@
- name: Install OAGTclTk
become: yes
dnf:
name: "http://www.aps.anl.gov/Accelerator_Systems_Division/Accelerator_Operations_Physics/downloads/OAGTclTk-{{ oagtcltk_version }}.{{ ansible_distribution|lower }}.{{ ansible_distribution_major_version }}.{{ ansible_architecture }}.rpm"
name: "http://www.aps.anl.gov/Accelerator_Systems_Division/Accelerator_Operations_Physics/downloads/OAGTclTk-{{ item.value }}.{{ ansible_distribution|lower }}.{{ ansible_distribution_major_version }}.{{ ansible_architecture }}.rpm"
state: present
when: ansible_distribution == 'Fedora'
when: ansible_distribution == 'Fedora' and ansible_distribution_major_version|int == item.key|int
with_dict: "{{ oagtcltk_version }}"
tags: examples
- name: Install variables
......
......@@ -5,7 +5,9 @@ ele_version:
sddstk_version:
25: 3.5-1
26: 3.5.1-1
oagtcltk_version: 1.24-1
oagtcltk_version:
25: 1.24-1
26: 1.24-1
defns_path: /usr/local/share/defns.rpn
prePelegant:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment