add on-off-playbook: remove dotfiles (#621)
Reviewed-on: #621 Co-authored-by: Michael Grote <michael.grote@posteo.de> Co-committed-by: Michael Grote <michael.grote@posteo.de>
This commit is contained in:
parent
a091463e8e
commit
cde39970eb
1 changed files with 22 additions and 0 deletions
22
playbooks/on-off/remove_dotfiles.yml
Normal file
22
playbooks/on-off/remove_dotfiles.yml
Normal file
|
@ -0,0 +1,22 @@
|
|||
---
|
||||
- hosts: all
|
||||
become: true
|
||||
tasks:
|
||||
- name: remove files
|
||||
ansible.builtin.file:
|
||||
path: "{{ item }}"
|
||||
state: absent
|
||||
loop:
|
||||
- /home/mg/.gitconfig
|
||||
- /home/mg/.tmux.conf
|
||||
- /home/mg/.vimrc
|
||||
- /home/mg/dotfiles
|
||||
|
||||
- name: remove from .bashrc
|
||||
ansible.builtin.lineinfile:
|
||||
path: "{{ item }}"
|
||||
state: absent
|
||||
line: "source /home/mg/dotfiles/.bash_extra"
|
||||
loop:
|
||||
- /root/.bashrc
|
||||
- /home/mg/.bashrc
|
Loading…
Reference in a new issue