Add python role
This commit is contained in:
parent
ffef99af11
commit
b2404d7266
3 changed files with 17 additions and 1 deletions
|
@ -11,7 +11,7 @@
|
||||||
#- git
|
#- git
|
||||||
#- hushlogin
|
#- hushlogin
|
||||||
- mintty
|
- mintty
|
||||||
#- python
|
- python
|
||||||
- readline
|
- readline
|
||||||
#- ssh
|
#- ssh
|
||||||
#- tmux
|
#- tmux
|
||||||
|
|
16
roles/python/tasks/main.yml
Normal file
16
roles/python/tasks/main.yml
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
---
|
||||||
|
- name: Create the python config and cache directories
|
||||||
|
file:
|
||||||
|
path: "~/.{{ item }}/python"
|
||||||
|
state: directory
|
||||||
|
loop:
|
||||||
|
- cache
|
||||||
|
- config
|
||||||
|
|
||||||
|
- name: Deploy python startup file
|
||||||
|
file:
|
||||||
|
src: "{{ role_path }}/files/startup.py"
|
||||||
|
dest: ~/.config/python/startup.py
|
||||||
|
state: link
|
||||||
|
force: yes
|
||||||
|
|
Loading…
Add table
Reference in a new issue