Start using Ansible for config management
This commit is contained in:
parent
abe78331cb
commit
022187586a
33
main.yaml
Normal file
33
main.yaml
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
# yaml-language-server: $schema=https://json.schemastore.org/ansible-playbook.json
|
||||||
|
---
|
||||||
|
- hosts: localhost
|
||||||
|
tasks:
|
||||||
|
- name: Install Python pip packages
|
||||||
|
pip:
|
||||||
|
name: '{{item}}'
|
||||||
|
state: latest
|
||||||
|
extra_args: --user
|
||||||
|
with_items:
|
||||||
|
- flake8
|
||||||
|
- grip
|
||||||
|
- ipdb
|
||||||
|
- ipython
|
||||||
|
- isort
|
||||||
|
- pylint
|
||||||
|
- python-gist
|
||||||
|
- yapf
|
||||||
|
|
||||||
|
- name: Create Python 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: ~/.ipython/profile_default/ipython_config.py
|
||||||
|
- src: ~/.config/python/pip.conf
|
||||||
|
dest: ~/.config/pip/pip.conf
|
Reference in New Issue
Block a user