mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
filesystem: add bcachefs support (#8126)
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
This commit is contained in:
parent
be4d5b7dc4
commit
486c26b224
5 changed files with 65 additions and 4 deletions
|
@ -15,6 +15,7 @@ tested_filesystems:
|
|||
# - 1.7.0 requires at least 30Mo
|
||||
# - 1.10.0 requires at least 38Mo
|
||||
# - resizefs asserts when initial fs is smaller than 60Mo and seems to require 1.10.0
|
||||
bcachefs: {fssize: 20, grow: true, new_uuid: null}
|
||||
ext4: {fssize: 10, grow: true, new_uuid: 'random'}
|
||||
ext4dev: {fssize: 10, grow: true, new_uuid: 'random'}
|
||||
ext3: {fssize: 10, grow: true, new_uuid: 'random'}
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
# Not available: btrfs, lvm, f2fs, ocfs2
|
||||
# All BSD systems use swap fs, but only Linux needs mkswap
|
||||
# Supported: ext2/3/4 (e2fsprogs), xfs (xfsprogs), reiserfs (progsreiserfs), vfat
|
||||
- 'not (ansible_system == "FreeBSD" and item.0.key in ["btrfs", "f2fs", "swap", "lvm", "ocfs2"])'
|
||||
- 'not (ansible_system == "FreeBSD" and item.0.key in ["bcachefs", "btrfs", "f2fs", "swap", "lvm", "ocfs2"])'
|
||||
# Available on FreeBSD but not on testbed (util-linux conflicts with e2fsprogs): wipefs, mkfs.minix
|
||||
- 'not (ansible_system == "FreeBSD" and item.1 in ["overwrite_another_fs", "remove_fs"])'
|
||||
|
||||
|
@ -46,6 +46,10 @@
|
|||
|
||||
# Other limitations and corner cases
|
||||
|
||||
# bcachefs only on Alpine > 3.18 and Arch Linux for now
|
||||
# other distributions have too old versions of bcachefs-tools and/or util-linux (blkid for UUID tests)
|
||||
- 'ansible_distribution == "Alpine" and ansible_distribution_version is version("3.18", ">") and item.0.key == "bcachefs"'
|
||||
- 'ansible_distribution == "Archlinux" and item.0.key == "bcachefs"'
|
||||
# f2fs-tools and reiserfs-utils packages not available with RHEL/CentOS on CI
|
||||
- 'not (ansible_distribution in ["CentOS", "RedHat"] and item.0.key in ["f2fs", "reiserfs"])'
|
||||
- 'not (ansible_os_family == "RedHat" and ansible_distribution_major_version is version("8", ">=") and
|
||||
|
|
|
@ -16,6 +16,16 @@
|
|||
- e2fsprogs
|
||||
- xfsprogs
|
||||
|
||||
- name: "Install bcachefs tools"
|
||||
ansible.builtin.package:
|
||||
name: bcachefs-tools
|
||||
state: present
|
||||
when:
|
||||
# bcachefs only on Alpine > 3.18 and Arch Linux for now
|
||||
# other distributions have too old versions of bcachefs-tools and/or util-linux (blkid for UUID tests)
|
||||
- ansible_distribution == "Alpine" and ansible_distribution_version is version("3.18", ">")
|
||||
- ansible_distribution == "Archlinux"
|
||||
|
||||
- name: "Install btrfs progs"
|
||||
ansible.builtin.package:
|
||||
name: btrfs-progs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue