diff --git a/system/crypttab.py b/system/crypttab.py index 70230fa53e1..ffb60516f3d 100644 --- a/system/crypttab.py +++ b/system/crypttab.py @@ -103,7 +103,7 @@ def main(): state = module.params['state'] path = module.params['path'] - if backing_device is None and password is None and opts is None: + if state != 'absent' and backing_device is None and password is None and opts is None: module.fail_json(msg="expected one or more of 'backing_device', 'password' or 'opts'", **module.params)