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
19b6eea4
Commit
19b6eea4
authored
Jun 02, 2017
by
julian.gethmann
Browse files
Add PyNAFF role
parent
8dda8cc4
Changes
3
Hide whitespace changes
Inline
Side-by-side
hosts
View file @
19b6eea4
...
...
@@ -31,6 +31,10 @@ las-gethmann.las.kit.edu
[kdev] # KDevelope
[pynaff]
las-gethmann.las.kit.edu
las113.las.kit.edu
[latex]
las-gethmann.las.kit.edu
las122.las.kit.edu
...
...
pynaff.yml
0 → 100644
View file @
19b6eea4
-
hosts
:
pynaff
roles
:
-
naff_cpp
roles/naff_cpp/tasks/main.yml
0 → 100644
View file @
19b6eea4
---
# Install Sofia Kostoglou's (CERN) C++/Python 2.7 NAFF implementation
-
name
:
install boost
become
:
yes
dnf
:
name
:
"
{{
item
}}"
state
:
installed
with_items
:
-
boost-devel
# boost
# boost-container
# boost-context
# boost-coroutine
# boost-devel
# boost-graph
# boost-locale
# boost-log
# boost-math
# boost-program-options
# boost-python
# boost-random
# boost-regex
# boost-serialization
# boost-signals
# boost-test
# boost-timer
# boost-type_erasure
# boost-wave
# libicu-devel
-
fftw-devel
# fftw
# fftw-libs
# fftw-libs-long
# fftw-libs-quad
-
cmake
when
:
ansible_distribution == 'Fedora'
-
name
:
test if NAFF is installed
command
:
python -c "import NAFF"
register
:
not_there
ignore_errors
:
True
changed_when
:
not_there.rc ==
1
-
name
:
clone git
git
:
repo
:
https://github.com/skostogl/NAFF_cpp.git
version
:
master
dest
:
/tmp/NAFF_cpp
clone
:
yes
depth
:
1
when
:
not_there.rc ==
1
-
name
:
build
command
:
cmake ..
args
:
chdir
:
/tmp/NAFF_cpp/build
creates
:
/tmp/NAFF_cpp/build/Makefile
when
:
not_there.rc ==
1
-
name
:
make
make
:
chdir
:
/tmp/NAFF_cpp/build
when
:
not_there.rc ==
1
-
name
:
copy shared object to Python's path
become
:
yes
copy
:
src
:
/tmp/NAFF_cpp/NAFF.so
dest
:
/usr/lib/python2.7/site-packages/NAFF.so
backup
:
yes
remote_src
:
True
when
:
not_there.rc ==
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