filesystem: add f2fs integration tests

This commit is contained in:
Pierre-Louis Bonicoli
2018-05-21 17:13:26 +02:00
committed by Michael Scherer
parent f6f413ec7a
commit ff68b197e2
4 changed files with 32 additions and 1 deletions

View File

@@ -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: