mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
filesystem: add f2fs integration tests
This commit is contained in:
committed by
Michael Scherer
parent
f6f413ec7a
commit
ff68b197e2
@@ -35,6 +35,24 @@
|
||||
name: ocfs2-tools
|
||||
state: present
|
||||
when: ansible_os_family == 'Debian'
|
||||
|
||||
- when:
|
||||
- ansible_os_family != 'RedHat' or ansible_distribution == 'Fedora'
|
||||
- ansible_distribution != 'Ubuntu' or ansible_distribution_version is version('16.04', '>=')
|
||||
block:
|
||||
- name: install f2fs
|
||||
package:
|
||||
name: f2fs-tools
|
||||
state: present
|
||||
|
||||
- name: fetch f2fs version
|
||||
command: mkfs.f2fs /dev/null
|
||||
ignore_errors: yes
|
||||
register: mkfs_f2fs
|
||||
|
||||
- set_fact:
|
||||
f2fs_version: '{{ mkfs_f2fs.stdout | regex_search("F2FS-tools: mkfs.f2fs Ver:.*") | regex_replace("F2FS-tools: mkfs.f2fs Ver: ([0-9.]+) .*", "\1") }}'
|
||||
|
||||
when: ansible_system == 'Linux'
|
||||
|
||||
- block:
|
||||
|
||||
Reference in New Issue
Block a user