Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
las-it-organisation
32-0-IT instructions and rules
ansible
Commits
bcdbe953
Commit
bcdbe953
authored
Nov 20, 2017
by
julian.gethmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make elegant examples robust against missing distribution packages
parent
f658c948
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
roles/elegant/tasks/examples.yml
roles/elegant/tasks/examples.yml
+3
-2
roles/elegant/vars/main.yml
roles/elegant/vars/main.yml
+3
-1
No files found.
roles/elegant/tasks/examples.yml
View file @
bcdbe953
...
...
@@ -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 @
bcdbe953
...
...
@@ -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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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