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