mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-22 03:21:30 +01:00
ansible: add ipython startup dir cleanup, fix gitignore migration
This commit is contained in:
parent
e1df82cff7
commit
e32eb9fd10
|
@ -98,12 +98,22 @@
|
||||||
ServerAliveInterval 300
|
ServerAliveInterval 300
|
||||||
create: true
|
create: true
|
||||||
|
|
||||||
|
- name: Check ipython startup dir
|
||||||
|
stat: path=${HOME}/.ipython/profile_default/startup
|
||||||
|
register: ipython_startup
|
||||||
|
|
||||||
|
- name: ipython startup cleanup
|
||||||
|
shell: |
|
||||||
|
# ipython creates a a startup dir with a README, we can move that away
|
||||||
|
mv "$HOME/.ipython/profile_default/startup" "$HOME/.ipython/profile_default/startup.ansiblebak"
|
||||||
|
when: ipython_startup.stat.islnk is defined and ipython_startup.stat.islnk == False
|
||||||
|
|
||||||
- name: dotfiles symlinks
|
- name: dotfiles symlinks
|
||||||
file:
|
file:
|
||||||
src: "{{ dotfiles_path }}/{{ item.key }}"
|
src: "{{ dotfiles_path }}/{{ item.key }}"
|
||||||
dest: "{{ item.value }}"
|
dest: "{{ item.value }}"
|
||||||
state: link
|
state: link
|
||||||
force: yes
|
force: true
|
||||||
loop: "{{ files | dict2items }}"
|
loop: "{{ files | dict2items }}"
|
||||||
vars:
|
vars:
|
||||||
files:
|
files:
|
||||||
|
@ -150,6 +160,6 @@
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
mkdir -p ${HOME}/.config/git
|
mkdir -p ${HOME}/.config/git
|
||||||
ln -s {{ dotfiles_path }}/gitignore ${HOME}/.config/git/ignore
|
ln -sf {{ dotfiles_path }}/gitignore ${HOME}/.config/git/ignore
|
||||||
rm -f ~/.gitignore
|
rm -f $HOME/.gitignore
|
||||||
when: gitignore.stat.exists
|
when: gitignore.stat.exists
|
||||||
|
|
Loading…
Reference in New Issue
Block a user