diff --git a/lib/ansible/modules/files/ini_file.py b/lib/ansible/modules/files/ini_file.py index 303da2a5eb..7ccad90736 100644 --- a/lib/ansible/modules/files/ini_file.py +++ b/lib/ansible/modules/files/ini_file.py @@ -288,7 +288,7 @@ def main(): supports_check_mode = True ) - path = os.path.expanduser(module.params['path']) + path = module.params['path'] section = module.params['section'] option = module.params['option'] value = module.params['value']