19356c03e8
Using Ubuntu 14.04, test fails because 'blkid' < 2.21 doesn't recognize
'ocfs2' filesystem smaller than 108Mo:
6baa150398
filesystem: fix MKFS_FORCE_FLAGS for ocfs2
mkfs.ocfs2 -F won't work because mkfs.ocfs2 asks for a confirmation:
$ mkfs.ocfs2 -F img
mkfs.ocfs2 1.6.4
Cluster stack: classic o2cb
Overwriting existing ocfs2 partition.
WARNING: Cluster check disabled.
Proceed (y/N):
The undocumented 'x' switch must be used too.
29 lines
1.1 KiB
YAML
29 lines
1.1 KiB
YAML
- debug:
|
||
msg: '{{ role_name }}'
|
||
- debug:
|
||
msg: '{{ role_path|basename }}'
|
||
- import_tasks: setup.yml
|
||
|
||
- include_vars: "{{ lookup('first_found', search) }}"
|
||
vars:
|
||
search:
|
||
files:
|
||
- '{{ ansible_distribution }}-{{ ansible_distribution_version }}.yml'
|
||
- 'default.yml'
|
||
paths:
|
||
- '../vars/'
|
||
|
||
- include_tasks: create_fs.yml
|
||
vars:
|
||
dev: '{{ ansible_user_dir }}/ansible_testing/img'
|
||
fstype: '{{ item.key }}'
|
||
fssize: '{{ item.value.fssize }}'
|
||
grow: '{{ item.value.grow }}'
|
||
when:
|
||
- 'not (item.key == "btrfs" and ansible_system == "FreeBSD")'
|
||
- 'not (item.key == "ocfs2" and ansible_os_family != "Debian")'
|
||
# On Ubuntu trusty, blkid is unable to identify filesystem smaller than 256Mo, see:
|
||
# https://www.kernel.org/pub/linux/utils/util-linux/v2.21/v2.21-ChangeLog
|
||
# https://anonscm.debian.org/cgit/collab-maint/pkg-util-linux.git/commit/?id=04f7020eadf31efc731558df92daa0a1c336c46c
|
||
- 'not (item.key == "btrfs" and (ansible_distribution == "Ubuntu" and ansible_distribution_release == "trusty"))'
|
||
loop: "{{ lookup('dict', tested_filesystems) }}"
|