Commit 92278766 authored by julian.gethmann's avatar julian.gethmann

Add aliases for python

parent e6d46ef7
---
- 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment