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
00dca4ce
Commit
00dca4ce
authored
Aug 31, 2017
by
julian.gethmann
Browse files
Add support for different elegant/sdds versions depending on OS version
parent
cda865d2
Changes
2
Hide whitespace changes
Inline
Side-by-side
roles/elegant/tasks/elegant.yml
View file @
00dca4ce
...
...
@@ -2,9 +2,10 @@
-
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"
name
:
"
http://www.aps.anl.gov/Accelerator_Systems_Division/Accelerator_Operations_Physics/downloads/elegant-{{
item.value
}}.{{
ansible_distribution|lower
}}.{{
ansible_distribution_major_version
}}.mpich.{{
ansible_architecture
}}.rpm"
state
:
present
when
:
ansible_distribution == 'Fedora'
when
:
ansible_distribution == 'Fedora' and ansible_distribution_major_version|int == item.key|int
with_dict
:
"
{{
ele_version
}}"
tags
:
elegant
-
name
:
copy the rpnl definitions
...
...
@@ -34,8 +35,7 @@
dnf
:
name
:
"
{{
item
}}"
state
:
present
with_items
:
-
preSDDSdev
with_items
:
"
{{
preSDDSdev
}}"
when
:
ansible_distribution == 'Fedora'
tags
:
-
elegant
...
...
@@ -44,9 +44,10 @@
-
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"
name
:
"
http://www.aps.anl.gov/Accelerator_Systems_Division/Accelerator_Operations_Physics/downloads/SDDSToolKit-{{
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
:
"
{{
sddstk_version
}}"
tags
:
-
elegant
-
sdds
roles/elegant/vars/main.yml
View file @
00dca4ce
---
version
:
33.1.1-1
# sddstk_version: 3.5.1-1 # 26
sddstk_version
:
3.5-1
# 25
ele_version
:
25
:
33.1.1-1
26
:
33.1-1
sddstk_version
:
25
:
3.5-1
26
:
3.5.1-1
oagtcltk_version
:
1.24-1
defns_path
:
/usr/local/share/defns.rpn
...
...
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