Make remaining tasks part of block
This commit is contained in:
parent
8d480bfbdf
commit
5cc8842bc5
@ -21,19 +21,19 @@
|
||||
path: "/var/log/rear/rear-{{ ansible_hostname }}.log"
|
||||
state: absent
|
||||
|
||||
- name: Remove files
|
||||
ansible.builtin.file:
|
||||
path: "{{ item }}"
|
||||
state: absent
|
||||
loop:
|
||||
- "/boot/rear-initrd.cgz"
|
||||
- "/boot/rear-kernel"
|
||||
- "/etc/rear"
|
||||
- "/tmp/rear"
|
||||
- "/var/lib/rear"
|
||||
- name: Remove files
|
||||
ansible.builtin.file:
|
||||
path: "{{ item }}"
|
||||
state: absent
|
||||
loop:
|
||||
- "/boot/rear-initrd.cgz"
|
||||
- "/boot/rear-kernel"
|
||||
- "/etc/rear"
|
||||
- "/tmp/rear"
|
||||
- "/var/lib/rear"
|
||||
|
||||
- name: Remove Grub2 config
|
||||
ansible.builtin.file:
|
||||
path: "/etc/grub.d/45_rear"
|
||||
state: absent
|
||||
notify: Rebuild Grub2
|
||||
- name: Remove Grub2 config
|
||||
ansible.builtin.file:
|
||||
path: "/etc/grub.d/45_rear"
|
||||
state: absent
|
||||
notify: Rebuild Grub2
|
||||
|
Loading…
x
Reference in New Issue
Block a user