diff --git a/lib/ansible/modules/cloud/azure/azure_rm_containerregistry.py b/lib/ansible/modules/cloud/azure/azure_rm_containerregistry.py index 30719e4aad..5873b45d76 100644 --- a/lib/ansible/modules/cloud/azure/azure_rm_containerregistry.py +++ b/lib/ansible/modules/cloud/azure/azure_rm_containerregistry.py @@ -67,7 +67,6 @@ EXAMPLES = ''' name: testacr1 location: eastus resource_group: myResourceGroup - state: present admin_user_enabled: true sku: Premium tags: diff --git a/lib/ansible/modules/cloud/azure/azure_rm_deployment.py b/lib/ansible/modules/cloud/azure/azure_rm_deployment.py index 2d013050d7..d5e6d5fb24 100644 --- a/lib/ansible/modules/cloud/azure/azure_rm_deployment.py +++ b/lib/ansible/modules/cloud/azure/azure_rm_deployment.py @@ -107,7 +107,6 @@ EXAMPLES = ''' # Create or update a template deployment based on uris using parameter and template links - name: Create Azure Deploy azure_rm_deployment: - state: present resource_group_name: dev-ops-cle template_link: 'https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-vm-simple-linux/azuredeploy.json' parameters_link: 'https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-vm-simple-linux/azuredeploy.parameters.json' @@ -128,7 +127,6 @@ EXAMPLES = ''' - name: Create Azure Deploy azure_rm_deployment: - state: present subscription_id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx resource_group_name: dev-ops-cle parameters: @@ -169,7 +167,6 @@ EXAMPLES = ''' # Deploy an Azure WebApp running a hello world'ish node app - name: Create Azure WebApp Deployment at http://devopscleweb.azurewebsites.net/hello.js azure_rm_deployment: - state: present subscription_id: cbbdaed0-fea9-4693-bf0c-d446ac93c030 resource_group_name: dev-ops-cle-webapp parameters: @@ -188,7 +185,6 @@ EXAMPLES = ''' # Create or update a template deployment based on an inline template and parameters - name: Create Azure Deploy azure_rm_deployment: - state: present subscription_id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx resource_group_name: dev-ops-cle diff --git a/lib/ansible/modules/cloud/azure/azure_rm_dnsrecordset.py b/lib/ansible/modules/cloud/azure/azure_rm_dnsrecordset.py index 63457eff42..d720d9ca05 100644 --- a/lib/ansible/modules/cloud/azure/azure_rm_dnsrecordset.py +++ b/lib/ansible/modules/cloud/azure/azure_rm_dnsrecordset.py @@ -107,7 +107,6 @@ EXAMPLES = ''' relative_name: www zone_name: testing.com record_type: A - state: present records: - entry: 192.168.100.101 - entry: 192.168.100.102 @@ -125,7 +124,6 @@ EXAMPLES = ''' azure_rm_dnsrecordset: resource_group: myResourceGroup zone_name: testing.com - state: present relative_name: "{{ item.name }}" record_type: "{{ item.type }}" records: "{{ item.records }}" @@ -141,7 +139,6 @@ EXAMPLES = ''' zone_name: testing.com time_to_live: 7200 record_type: SRV - state: present records: - entry: sip.testing.com preference: 10 diff --git a/lib/ansible/modules/cloud/azure/azure_rm_dnszone.py b/lib/ansible/modules/cloud/azure/azure_rm_dnszone.py index 4f401e29b1..971d605123 100644 --- a/lib/ansible/modules/cloud/azure/azure_rm_dnszone.py +++ b/lib/ansible/modules/cloud/azure/azure_rm_dnszone.py @@ -88,7 +88,6 @@ EXAMPLES = ''' azure_rm_dnszone: resource_group: myResourceGroup name: example.com - state: present - name: Delete a DNS zone azure_rm_dnszone: diff --git a/test/integration/targets/azure_rm_containerregistry/tasks/main.yml b/test/integration/targets/azure_rm_containerregistry/tasks/main.yml index 58bbfb6922..92a5fcc686 100644 --- a/test/integration/targets/azure_rm_containerregistry/tasks/main.yml +++ b/test/integration/targets/azure_rm_containerregistry/tasks/main.yml @@ -3,7 +3,6 @@ name: "acr{{ resource_group | hash('md5') | truncate(7, True, '') }}" resource_group: "{{ resource_group }}" location: eastus2 - state: present admin_user_enabled: true sku: Premium tags: @@ -42,7 +41,6 @@ name: "acr{{ resource_group | hash('md5') | truncate(7, True, '') }}sec" resource_group: "{{ resource_group }}" location: eastus2 - state: present admin_user_enabled: false sku: Premium tags: diff --git a/test/integration/targets/azure_rm_dnszone/tasks/main.yml b/test/integration/targets/azure_rm_dnszone/tasks/main.yml index a115a030c0..d00b41d56b 100644 --- a/test/integration/targets/azure_rm_dnszone/tasks/main.yml +++ b/test/integration/targets/azure_rm_dnszone/tasks/main.yml @@ -222,7 +222,6 @@ zone_name: "{{ domain_name }}.com" time_to_live: 7200 record_type: SRV - state: present records: - entry: sip.{{ domain_name }}.com priority: 20 @@ -241,7 +240,6 @@ relative_name: "_txt.{{ domain_name }}.com" zone_name: "{{ domain_name }}.com" record_type: TXT - state: present records: - entry: "v=spf1 a -all" - entry: "foo" diff --git a/test/integration/targets/azure_rm_managed_disk/tasks/main.yml b/test/integration/targets/azure_rm_managed_disk/tasks/main.yml index 7f65032783..5125bf2032 100644 --- a/test/integration/targets/azure_rm_managed_disk/tasks/main.yml +++ b/test/integration/targets/azure_rm_managed_disk/tasks/main.yml @@ -37,7 +37,6 @@ resource_group: "{{ resource_group }}" name: "invalid_char$" disk_size_gb: 1 - state: present register: output ignore_errors: yes check_mode: no diff --git a/test/integration/targets/azure_rm_storageaccount/tasks/main.yml b/test/integration/targets/azure_rm_storageaccount/tasks/main.yml index 463ec76df7..a9787a5fb0 100644 --- a/test/integration/targets/azure_rm_storageaccount/tasks/main.yml +++ b/test/integration/targets/azure_rm_storageaccount/tasks/main.yml @@ -6,7 +6,6 @@ azure_rm_storageaccount: resource_group: "{{ resource_group }}" name: "invalid_char$" - state: present register: invalid_name ignore_errors: yes diff --git a/test/integration/targets/azure_rm_storageblob/tasks/main.yml b/test/integration/targets/azure_rm_storageblob/tasks/main.yml index 241635201e..0bbc181fbb 100644 --- a/test/integration/targets/azure_rm_storageblob/tasks/main.yml +++ b/test/integration/targets/azure_rm_storageblob/tasks/main.yml @@ -7,7 +7,6 @@ resource_group: "{{ resource_group }}" name: "{{ storage_account }}" account_type: Standard_LRS - state: present - name: Create container azure_rm_storageblob: diff --git a/test/integration/targets/azure_rm_virtualmachine/tasks/virtualmachine.yml b/test/integration/targets/azure_rm_virtualmachine/tasks/virtualmachine.yml index 3d4d6506d8..21cf7e8668 100644 --- a/test/integration/targets/azure_rm_virtualmachine/tasks/virtualmachine.yml +++ b/test/integration/targets/azure_rm_virtualmachine/tasks/virtualmachine.yml @@ -413,7 +413,6 @@ azure_rm_virtualmachine: resource_group: "{{ resource_group }}" name: testvm002 - state: present image: offer: UbuntuServer register: fail_invalid_image_dict @@ -423,7 +422,6 @@ azure_rm_virtualmachine: resource_group: "{{ resource_group }}" name: testvm002 - state: present image: - testing register: fail_invalid_image_type @@ -433,7 +431,6 @@ azure_rm_virtualmachine: resource_group: "{{ resource_group }}" name: testvm002 - state: present image: invalid-image register: fail_missing_custom_image failed_when: fail_missing_custom_image.msg != "Error could not find image with name invalid-image" @@ -442,7 +439,6 @@ azure_rm_virtualmachine: resource_group: "{{ resource_group }}" name: testvm002 - state: present image: name: invalid-image register: fail_missing_custom_image_dict diff --git a/test/integration/targets/azure_rm_virtualmachine_scaleset/tasks/main.yml b/test/integration/targets/azure_rm_virtualmachine_scaleset/tasks/main.yml index 894d953a7a..f85a7be1bc 100644 --- a/test/integration/targets/azure_rm_virtualmachine_scaleset/tasks/main.yml +++ b/test/integration/targets/azure_rm_virtualmachine_scaleset/tasks/main.yml @@ -580,7 +580,6 @@ azure_rm_virtualmachine_scaleset: resource_group: "{{ resource_group }}" name: testvm002 - state: present vm_size: Standard_B1s image: offer: UbuntuServer @@ -591,7 +590,6 @@ azure_rm_virtualmachine_scaleset: resource_group: "{{ resource_group }}" name: testvm002 - state: present vm_size: Standard_B1s image: - testing @@ -602,7 +600,6 @@ azure_rm_virtualmachine_scaleset: resource_group: "{{ resource_group }}" name: testvm002 - state: present vm_size: Standard_B1s image: invalid-image register: fail_missing_custom_image @@ -612,7 +609,6 @@ azure_rm_virtualmachine_scaleset: resource_group: "{{ resource_group }}" name: testvm002 - state: present vm_size: Standard_B1s image: name: invalid-image