diff --git a/lib/ansible/modules/extras/system/filesystem.py b/lib/ansible/modules/extras/system/filesystem.py index 064c0d0af86..0de5b75e38b 100644 --- a/lib/ansible/modules/extras/system/filesystem.py +++ b/lib/ansible/modules/extras/system/filesystem.py @@ -97,7 +97,7 @@ def main(): cmd = None if fstype in ['ext2', 'ext3', 'ext4', 'ext4dev']: force_flag="-F" - elif fstype in ['btrfs']: + elif fstype in ['xfs', 'btrfs']: force_flag="-f" else: force_flag=""