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
c03d2afe
Commit
c03d2afe
authored
Apr 03, 2019
by
julian.gethmann
Browse files
Add Python SDDS RPM installation to elegant role
* Install the official SDDS Python 3 binary (RPM)
parent
f4edab63
Changes
4
Hide whitespace changes
Inline
Side-by-side
roles/elegant/tasks/blas.yml
View file @
c03d2afe
...
...
@@ -24,6 +24,17 @@
-
restart firewall
tags
:
pelegant
-
name
:
Pelegant open ports
become
:
yes
firewalld
:
state
:
enabled
permanent
:
true
rich_rule
:
'
rule
family="ipv4"
source
address="129.13.238.64/24"
port
port="10000-10100"
protocol="tcp"
accept'
notify
:
-
reload firewall
-
restart firewall
tags
:
pelegant
-
name
:
export variable
become
:
yes
copy
:
...
...
roles/elegant/tasks/main.yml
View file @
c03d2afe
...
...
@@ -2,4 +2,4 @@
-
import_tasks
:
blas.yml
-
import_tasks
:
elegant.yml
-
import_tasks
:
examples.yml
#
- import_tasks: pyhonsdds.yml
-
import_tasks
:
py
t
honsdds.yml
roles/elegant/tasks/pythonsdds.yml
View file @
c03d2afe
---
-
name
:
install SDDS for Python
2
pip
:
name
:
-
name
:
install SDDS for Python
3
pip
:
name
:
become
:
yes
dnf
:
name
:
"
http://www.aps.anl.gov/Accelerator_Systems_Division/Accelerator_Operations_Physics/downloads/SDDSPython3-{{
item.value
}}.{{
ansible_distribution|lower
}}.{{
ansible_distribution_major_version
}}.{{
ansible_architecture
}}.rpm"
state
:
present
when
:
ansible_distribution == 'Fedora' and (ansible_distribution_major_version|int) == item.key|int
with_dict
:
"
{{
pythonsdds_version
}}"
tags
:
-
elegant
-
python
roles/elegant/vars/main.yml
View file @
c03d2afe
...
...
@@ -36,3 +36,7 @@ preSDDSdev:
preElegantExamples
:
-
tcl
-
tcsh
pythonsdds_version
:
29
:
4.0-1
28
:
4.0-1
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