fix(lint): convert sshd restart to handler, add pipefail to btrfs subvol set

This commit is contained in:
2026-05-02 18:23:42 +02:00
parent 382e82ff85
commit 3eaf918a53
3 changed files with 14 additions and 9 deletions

View File

@@ -59,9 +59,12 @@
label: "{{ item.subvol }}"
- name: Set default btrfs subvolume to @
ansible.builtin.shell: >-
btrfs subvolume list /mnt | awk '/ path @$/ {print $2}'
| xargs -I{} btrfs subvolume set-default {} /mnt
ansible.builtin.shell:
cmd: >-
set -o pipefail &&
btrfs subvolume list /mnt | awk '/ path @$/ {print $2}'
| xargs -I{} btrfs subvolume set-default {} /mnt
executable: /bin/bash
register: partitioning_btrfs_default_result
changed_when: partitioning_btrfs_default_result.rc == 0