Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ansible
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
44
Issues
44
List
Boards
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
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
Options
Browse Files
Download
Email Patches
Plain Diff
Make elegant examples robust against missing distribution packages
parent
c892f9d4
Changes
2
Show 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 @
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
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