move var and add quotes
This commit is contained in:
parent
1be095a24b
commit
e1e8439623
@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
vars:
|
vars:
|
||||||
bigboot_size_target: 1G
|
bigboot_size_target: 1G
|
||||||
initramfs_backup_extension: old
|
|
||||||
ansible_ssh_retries: 10
|
ansible_ssh_retries: 10
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
---
|
---
|
||||||
- name: Get kernel version
|
- name: Set kernel version and backup extension
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
initramfs_kernel_version: "{{ ansible_facts['kernel'] }}"
|
initramfs_kernel_version: "{{ ansible_facts['kernel'] }}"
|
||||||
|
initramfs_backup_extension: old
|
||||||
|
|
||||||
- name: Remove dracut extend boot module
|
- name: Remove dracut extend boot module
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
@ -19,13 +20,13 @@
|
|||||||
- name: Restore previous initramfs
|
- name: Restore previous initramfs
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
remote_src: true
|
remote_src: true
|
||||||
src: /boot/initramfs-{{ initramfs_kernel_version }}.img.{{ initramfs_backup_extension }}
|
src: "/boot/initramfs-{{ initramfs_kernel_version }}.img.{{ initramfs_backup_extension }}"
|
||||||
dest: /boot/initramfs-{{ initramfs_kernel_version }}.img
|
dest: "/boot/initramfs-{{ initramfs_kernel_version }}.img"
|
||||||
mode: "0600"
|
mode: "0600"
|
||||||
|
|
||||||
- name: Remove initramfs backup file
|
- name: Remove initramfs backup file
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: /boot/initramfs-{{ initramfs_kernel_version }}.img.{{ initramfs_backup_extension }}
|
path: "/boot/initramfs-{{ initramfs_kernel_version }}.img.{{ initramfs_backup_extension }}"
|
||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
...
|
...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user