Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
las-it-organisation
32-0-IT instructions and rules
ansible
Commits
525b85a6
Commit
525b85a6
authored
Nov 20, 2017
by
julian.gethmann
Browse files
Make elegant examples robust against missing distribution packages
parent
c892f9d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
roles/elegant/tasks/examples.yml
View file @
525b85a6
...
...
@@ -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
...
...
roles/elegant/vars/main.yml
View file @
525b85a6
...
...
@@ -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
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment