Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ansible
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
36
Issues
36
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
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
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for different elegant/sdds versions depending on OS version
parent
cda865d2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
9 deletions
+13
-9
roles/elegant/tasks/elegant.yml
roles/elegant/tasks/elegant.yml
+7
-6
roles/elegant/vars/main.yml
roles/elegant/vars/main.yml
+6
-3
No files found.
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
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