From c2a921ab7c85271b28f3c0278991f1da220042d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory?= Date: Wed, 26 Oct 2016 21:49:38 +0200 Subject: [PATCH] Change azure default deployment mode to incremental (#3023) * Changed default deployment mode to match with azure -cli behaviour. "Complete" mode by default is too dangerous. * Set incremental as default behaviour for deployment mode. --- lib/ansible/modules/extras/cloud/azure/azure_rm_deployment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/extras/cloud/azure/azure_rm_deployment.py b/lib/ansible/modules/extras/cloud/azure/azure_rm_deployment.py index 192e41d3cf..458c5ecb85 100644 --- a/lib/ansible/modules/extras/cloud/azure/azure_rm_deployment.py +++ b/lib/ansible/modules/extras/cloud/azure/azure_rm_deployment.py @@ -42,7 +42,7 @@ options: - In incremental mode, resources are deployed without deleting existing resources that are not included in the template. In complete mode resources are deployed and existing resources in the resource group not included in the template are deleted. required: false - default: complete + default: incremental choices: - complete - incremental @@ -405,7 +405,7 @@ class AzureRMDeploymentManager(AzureRMModuleBase): template_link=dict(type='str', default=None), parameters_link=dict(type='str', default=None), location=dict(type='str', default="westus"), - deployment_mode=dict(type='str', default='complete', choices=['complete', 'incremental']), + deployment_mode=dict(type='str', default='incremental', choices=['complete', 'incremental']), deployment_name=dict(type='str', default="ansible-arm"), wait_for_deployment_completion=dict(type='bool', default=True), wait_for_deployment_polling_period=dict(type='int', default=10)