clean up to avoid stow conflicts
This commit is contained in:
parent
ebee8e43fc
commit
7ea0ac386d
20
install.yml
20
install.yml
@ -18,6 +18,7 @@
|
|||||||
- tmux
|
- tmux
|
||||||
when: ansible_os_family == "Debian"
|
when: ansible_os_family == "Debian"
|
||||||
become: yes
|
become: yes
|
||||||
|
become_user: root
|
||||||
|
|
||||||
- name: install packages on redhat host
|
- name: install packages on redhat host
|
||||||
dnf:
|
dnf:
|
||||||
@ -31,6 +32,23 @@
|
|||||||
state: latest
|
state: latest
|
||||||
when: ansible_os_family == "RedHat"
|
when: ansible_os_family == "RedHat"
|
||||||
become: yes
|
become: yes
|
||||||
|
become_user: root
|
||||||
|
|
||||||
|
- name: copy old bash configs to ...bak
|
||||||
|
copy:
|
||||||
|
src: "/home/{ansible_user_id}/{item}"
|
||||||
|
dest: "/home/{ansible_user_id}/{item}.bak"
|
||||||
|
loop:
|
||||||
|
- ".bashrc"
|
||||||
|
- ".bash_profile"
|
||||||
|
|
||||||
|
- name: delete old configs
|
||||||
|
file:
|
||||||
|
path: "/home/{ansible_user_id}/{item}"
|
||||||
|
state: absent
|
||||||
|
loop:
|
||||||
|
- ".bashrc"
|
||||||
|
- ".bash_profile"
|
||||||
|
|
||||||
- name: link the dotfiles to users home directory
|
- name: link the dotfiles to users home directory
|
||||||
command:
|
command:
|
||||||
@ -42,5 +60,3 @@
|
|||||||
- shellenv
|
- shellenv
|
||||||
- tmux
|
- tmux
|
||||||
- vim
|
- vim
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user