Add a python role for unix-like OS families
This commit is contained in:
parent
d4218aeeee
commit
d32393c990
@ -5,6 +5,7 @@
|
|||||||
- tmux
|
- tmux
|
||||||
- neovim
|
- neovim
|
||||||
- git
|
- git
|
||||||
|
- python
|
||||||
|
|
||||||
- hosts: windows
|
- hosts: windows
|
||||||
roles:
|
roles:
|
||||||
|
44
roles/python/tasks/main.yaml
Normal file
44
roles/python/tasks/main.yaml
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
---
|
||||||
|
- name: install config repo
|
||||||
|
git:
|
||||||
|
repo: git@code.infektor.net:config/python.git
|
||||||
|
dest: ~/.config/python
|
||||||
|
|
||||||
|
# TODO: set repo email
|
||||||
|
|
||||||
|
- name: install pip packages
|
||||||
|
pip:
|
||||||
|
name:
|
||||||
|
- flake8
|
||||||
|
- grip
|
||||||
|
- ipdb
|
||||||
|
- ipython
|
||||||
|
- isort
|
||||||
|
- pylint
|
||||||
|
- python-gist
|
||||||
|
- yapf
|
||||||
|
state: latest
|
||||||
|
extra_args: --user
|
||||||
|
|
||||||
|
- name: create directories
|
||||||
|
file:
|
||||||
|
state: directory
|
||||||
|
dest: '{{item}}'
|
||||||
|
with_items:
|
||||||
|
- ~/.config/ipython/profile_default
|
||||||
|
- ~/.config/pip
|
||||||
|
|
||||||
|
- name: create symbolic links
|
||||||
|
file:
|
||||||
|
state: link
|
||||||
|
src: '{{item.src}}'
|
||||||
|
dest: '{{item.dest}}'
|
||||||
|
with_items:
|
||||||
|
- src: ~/.config/python/flake8
|
||||||
|
dest: ~/.config/flake8
|
||||||
|
- src: ~/.config/python/pylintrc
|
||||||
|
dest: ~/.pylintrc
|
||||||
|
- src: ~/.config/python/ipython_config.py
|
||||||
|
dest: ~/.config/ipython/profile_default/ipython_config.py
|
||||||
|
- src: ~/.config/python/pip.conf
|
||||||
|
dest: ~/.config/pip/pip.conf
|
Loading…
x
Reference in New Issue
Block a user