From e82cb05b69ab70d7e5007e04d06ff61e29251f71 Mon Sep 17 00:00:00 2001 From: LinuxSquare Date: Thu, 27 Jun 2024 20:09:59 +0200 Subject: [PATCH] try to fix commands-runs --- system/bootloader.ansible.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/system/bootloader.ansible.yml b/system/bootloader.ansible.yml index f6f6b31..ce0d31a 100644 --- a/system/bootloader.ansible.yml +++ b/system/bootloader.ansible.yml @@ -13,17 +13,17 @@ state: present - name: Get current timestamp command: | - CURRENT_SUBVOLUME=$(LC_ALL=C btrfs sub show / | LC_ALL=C grep Name: | tr -d \'[:space:]\'); TIMESTAMP_FORMAT=\'[[:digit:]]{4}-[[:digit:]]{2}-[[:digit:]]{2}_[[:digit:]]{2}-[[:digit:]]{2}-[[:digit:]]{2}\'; echo "$CURRENT_SUBVOLUME" | grep -Eo "$TIMESTAMP_FORMAT" + 'CURRENT_SUBVOLUME=$(LC_ALL=C btrfs sub show / | LC_ALL=C grep Name: | tr -d \'[:space:]\'); TIMESTAMP_FORMAT=\'[[:digit:]]{4}-[[:digit:]]{2}-[[:digit:]]{2}_[[:digit:]]{2}-[[:digit:]]{2}-[[:digit:]]{2}\'; echo "$CURRENT_SUBVOLUME" | grep -Eo "$TIMESTAMP_FORMAT"' register: CURRENT_SUBVOLUME_TIMESTAMP run_once: true - name: Get current timestamp human command: | - CURRENT_SUBVOLUME_TIMESTAMP=\'{{ CURRENT_SUBVOLUME_TIMESTAMP.stdout }}\'; echo "${CURRENT_SUBVOLUME_TIMESTAMP:0:10} ${CURRENT_SUBVOLUME_TIMESTAMP:11:2}:${CURRENT_SUBVOLUME_TIMESTAMP:14:2}" + 'CURRENT_SUBVOLUME_TIMESTAMP=\'{{ CURRENT_SUBVOLUME_TIMESTAMP.stdout }}\'; echo "${CURRENT_SUBVOLUME_TIMESTAMP:0:10} ${CURRENT_SUBVOLUME_TIMESTAMP:11:2}:${CURRENT_SUBVOLUME_TIMESTAMP:14:2}"' register: CURRENT_SUBVOLUME_TIMESTAMP_HUMAN run_once: true - name: Get current kernel version command: | - uname -r + 'uname -r' register: KERNEL_VERSION run_once: true - name: mkinitfs config