Commit 28b19fe0 authored by julian.gethmann's avatar julian.gethmann

Add pre-commit and its dependencies

* Add pre-commit
* Add dependencies
* Begin to avoid the ansible YAML short hand notation
parent ca339b71
......@@ -14,6 +14,7 @@ python3pkg:
python3pip:
- brewer2mpl
- PyScaffold
- pre-commit
- flake8
python2pkg:
......
......@@ -23,10 +23,6 @@
become: yes
service: name=ntpdate state=started
- name: lock root user
become: yes
shell: passwd -l root
- name: update-ca-trust
become: yes
command: update-ca-trust extract
......
---
- name: Software for dependency installation
dnf: name={{item}} state=installed
dnf: "{{item}}"
state: installed
become: yes
with_items:
- gcc
- gcc-c++
- glibc-devel.x86_64
# - atlas-devel
- python-devel
- lapack-devel
- numpy-f2py
# iminuit
- redhat-rpm-config
- gcc
- gcc-c++
- glibc-devel.x86_64
- openssl-devel
# - atlas-devel
- python-devel
- lapack-devel
- numpy-f2py
# iminuit
- redhat-rpm-config
when: ansible_distribution == 'Fedora'
- name: "Install Python stack for scientific purposes (Distribution)"
package: name={{ item }} state=installed
package: "{{ item }}"
state: installed
become: yes
with_items:
- "{{ python2pkg }}"
......@@ -27,24 +30,34 @@
register: command_result
changed_when: not command_result.stdout.find("Adding setuptools") # not working
- name: upgrade pip2 #install --upgrade pip
pip: state=latest name=pip
- name: upgrade pip2 # install --upgrade pip
pip:
name: pip
state: latest
become: yes
tags:
- skip_ansible_lint
- name: install pip packages Python 2
pip: name={{ item }} state=installed
pip:
name: "{{ item }}"
state: installed
become: yes
with_items: "{{python2pip}}"
- name: upgrade pip3
pip: executable=pip3 state=latest name=pip
pip:
executable: pip3
state: latest
name: pip
become: yes
tags:
- skip_ansible_lint
- name: install pip packages Python 2
pip: executable=pip3 name={{ item }} state=installed
pip:
executable: pip3
name: "{{ item }}"
state: installed
become: yes
with_items: "{{python3pip}}"
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