From 51558f12f4651664c6b8cd9458107f13c703f7bd Mon Sep 17 00:00:00 2001 From: Mikhail Naletov <36846182+okgolove@users.noreply.github.com> Date: Mon, 5 Mar 2018 23:09:03 +0200 Subject: [PATCH] Added variables to destroy command (#37028) --- lib/ansible/modules/cloud/misc/terraform.py | 2 ++ 1 file changed, 2 insertions(+) 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):