From 2a8fc63645be34051b81cd592f329f09bc22a510 Mon Sep 17 00:00:00 2001 From: jravetch Date: Mon, 29 Sep 2014 15:40:58 -0700 Subject: [PATCH] mkfs.xfs uses -f instead of -F flag mkfs.xfs uses the -f instead of -F flag to force creating a filesystem on a devices that have an existing filesystem --- lib/ansible/modules/extras/system/filesystem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/system/filesystem.py b/lib/ansible/modules/extras/system/filesystem.py index 064c0d0af8..0de5b75e38 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=""