diff --git a/dotfiles.yml b/dotfiles.yml index 7d564fd..5f1a1a3 100644 --- a/dotfiles.yml +++ b/dotfiles.yml @@ -11,7 +11,7 @@ #- git #- hushlogin - mintty - #- python + - python - readline #- ssh #- tmux diff --git a/dotfiles/.config/python/startup.py b/roles/python/files/startup.py similarity index 100% rename from dotfiles/.config/python/startup.py rename to roles/python/files/startup.py diff --git a/roles/python/tasks/main.yml b/roles/python/tasks/main.yml new file mode 100644 index 0000000..520ddd5 --- /dev/null +++ b/roles/python/tasks/main.yml @@ -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 +