Michael Grote
cde39970eb
Reviewed-on: #621 Co-authored-by: Michael Grote <michael.grote@posteo.de> Co-committed-by: Michael Grote <michael.grote@posteo.de>
22 lines
501 B
YAML
22 lines
501 B
YAML
---
|
|
- 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
|