mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
e9e316c76b
* filesystem: list used tools * filesystem: btrfs and reiserfs don't support resizing * filesystem: list supported filesystems use formatting functions and 'filesystem' instead of 'file system' * filesystem: PEP8 * filesystem: remove useless calls to module.boolean * filesystem: fail when the requested action isn't implemented * filesystem: resizefs: list supported FS rather than unsupported * filesystem: refactor * filesystem: add integration tests * filesystem: allow to use image file with 'dev' param * filesystem: test resizefs (ext2/3/4 filesystems only) * filesystem: Btrfs, handle older version than v0.20-rc1 * filesystem: use loop keyword (integration tests) * filesystem: new test, check when another filesystem already exists * filesystem: add myself as a maintainer * filesystem: fix tests as filters
19 lines
835 B
YAML
19 lines
835 B
YAML
- debug:
|
||
msg: '{{ role_name }}'
|
||
- debug:
|
||
msg: '{{ role_path|basename }}'
|
||
- import_tasks: setup.yml
|
||
|
||
- 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")'
|
||
# 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) }}"
|