Skip to content
GitLab
Menu
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
92278766
Commit
92278766
authored
Mar 14, 2019
by
julian.gethmann
Browse files
Add aliases for python
parent
e6d46ef7
Changes
1
Hide whitespace changes
Inline
Side-by-side
roles/python_stack/tasks/python.yml
View file @
92278766
---
-
name
:
Software for dependency installation
become
:
yes
dnf
:
name
:
[
"
gcc"
,
"
gcc-c++"
,
"
glibc-devel.x86_64"
,
"
openssl-devel"
,
"
python-devel"
,
"
lapack-devel"
,
"
numpy-f2py"
,
"
redhat-rpm-config"
]
state
:
present
become
:
yes
when
:
ansible_distribution == 'Fedora'
-
name
:
"
Install
Python
stack
for
scientific
purposes
(Distribution)"
become
:
yes
package
:
name
:
"
{{
item
}}"
state
:
present
become
:
yes
with_items
:
-
"
{{
python2pkg
}}"
-
"
{{
python3pkg
}}"
-
name
:
install handy aliases
become
:
yes
copy
:
dest
:
/etc/profile.d/python_aliases.sh
content
:
|-
alias activate='source .venv/bin/activate'
alias venv='python3 -m venv .venv && source .venv/bin/activate && which python'
backup_file
:
yes
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