mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-18 06:41:04 +00:00
Allow recreation of same FS with force=yes
This commit is contained in:
committed by
Matt Clay
parent
58f3518666
commit
23675c3f8b
@@ -191,7 +191,7 @@ def main():
|
||||
rc,raw_fs,err = module.run_command("%s -c /dev/null -o value -s TYPE %s" % (cmd, dev))
|
||||
fs = raw_fs.strip()
|
||||
|
||||
if fs == fstype and resizefs == False:
|
||||
if fs == fstype and resizefs == False and not force:
|
||||
module.exit_json(changed=False)
|
||||
elif fs == fstype and resizefs == True:
|
||||
# Get dev and fs size and compare
|
||||
|
||||
Reference in New Issue
Block a user