diff --git a/lib/ansible/modules/cloud/misc/terraform.py b/lib/ansible/modules/cloud/misc/terraform.py index 802f7f2a8b4..75a8f53ef42 100644 --- a/lib/ansible/modules/cloud/misc/terraform.py +++ b/lib/ansible/modules/cloud/misc/terraform.py @@ -257,6 +257,8 @@ def main(): if state == 'absent': # deleting cannot use a statefile needs_application = True + # add variables settings to destroy command + command.extend(variables_args) elif plan_file and os.path.exists(plan_file): command.append(plan_file) elif plan_file and not os.path.exists(plan_file):