1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

removed state present which is default (#53434)

This commit is contained in:
Zim Kalinowski 2019-03-07 13:13:12 +08:00 committed by GitHub
parent 9ed9cfb40c
commit b906db5f2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 0 additions and 24 deletions

View file

@ -67,7 +67,6 @@ EXAMPLES = '''
name: testacr1 name: testacr1
location: eastus location: eastus
resource_group: myResourceGroup resource_group: myResourceGroup
state: present
admin_user_enabled: true admin_user_enabled: true
sku: Premium sku: Premium
tags: tags:

View file

@ -107,7 +107,6 @@ EXAMPLES = '''
# Create or update a template deployment based on uris using parameter and template links # Create or update a template deployment based on uris using parameter and template links
- name: Create Azure Deploy - name: Create Azure Deploy
azure_rm_deployment: azure_rm_deployment:
state: present
resource_group_name: dev-ops-cle resource_group_name: dev-ops-cle
template_link: 'https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-vm-simple-linux/azuredeploy.json' 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' 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 - name: Create Azure Deploy
azure_rm_deployment: azure_rm_deployment:
state: present
subscription_id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx subscription_id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
resource_group_name: dev-ops-cle resource_group_name: dev-ops-cle
parameters: parameters:
@ -169,7 +167,6 @@ EXAMPLES = '''
# Deploy an Azure WebApp running a hello world'ish node app # Deploy an Azure WebApp running a hello world'ish node app
- name: Create Azure WebApp Deployment at http://devopscleweb.azurewebsites.net/hello.js - name: Create Azure WebApp Deployment at http://devopscleweb.azurewebsites.net/hello.js
azure_rm_deployment: azure_rm_deployment:
state: present
subscription_id: cbbdaed0-fea9-4693-bf0c-d446ac93c030 subscription_id: cbbdaed0-fea9-4693-bf0c-d446ac93c030
resource_group_name: dev-ops-cle-webapp resource_group_name: dev-ops-cle-webapp
parameters: parameters:
@ -188,7 +185,6 @@ EXAMPLES = '''
# Create or update a template deployment based on an inline template and parameters # Create or update a template deployment based on an inline template and parameters
- name: Create Azure Deploy - name: Create Azure Deploy
azure_rm_deployment: azure_rm_deployment:
state: present
subscription_id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx subscription_id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
resource_group_name: dev-ops-cle resource_group_name: dev-ops-cle

View file

@ -107,7 +107,6 @@ EXAMPLES = '''
relative_name: www relative_name: www
zone_name: testing.com zone_name: testing.com
record_type: A record_type: A
state: present
records: records:
- entry: 192.168.100.101 - entry: 192.168.100.101
- entry: 192.168.100.102 - entry: 192.168.100.102
@ -125,7 +124,6 @@ EXAMPLES = '''
azure_rm_dnsrecordset: azure_rm_dnsrecordset:
resource_group: myResourceGroup resource_group: myResourceGroup
zone_name: testing.com zone_name: testing.com
state: present
relative_name: "{{ item.name }}" relative_name: "{{ item.name }}"
record_type: "{{ item.type }}" record_type: "{{ item.type }}"
records: "{{ item.records }}" records: "{{ item.records }}"
@ -141,7 +139,6 @@ EXAMPLES = '''
zone_name: testing.com zone_name: testing.com
time_to_live: 7200 time_to_live: 7200
record_type: SRV record_type: SRV
state: present
records: records:
- entry: sip.testing.com - entry: sip.testing.com
preference: 10 preference: 10

View file

@ -88,7 +88,6 @@ EXAMPLES = '''
azure_rm_dnszone: azure_rm_dnszone:
resource_group: myResourceGroup resource_group: myResourceGroup
name: example.com name: example.com
state: present
- name: Delete a DNS zone - name: Delete a DNS zone
azure_rm_dnszone: azure_rm_dnszone:

View file

@ -3,7 +3,6 @@
name: "acr{{ resource_group | hash('md5') | truncate(7, True, '') }}" name: "acr{{ resource_group | hash('md5') | truncate(7, True, '') }}"
resource_group: "{{ resource_group }}" resource_group: "{{ resource_group }}"
location: eastus2 location: eastus2
state: present
admin_user_enabled: true admin_user_enabled: true
sku: Premium sku: Premium
tags: tags:
@ -42,7 +41,6 @@
name: "acr{{ resource_group | hash('md5') | truncate(7, True, '') }}sec" name: "acr{{ resource_group | hash('md5') | truncate(7, True, '') }}sec"
resource_group: "{{ resource_group }}" resource_group: "{{ resource_group }}"
location: eastus2 location: eastus2
state: present
admin_user_enabled: false admin_user_enabled: false
sku: Premium sku: Premium
tags: tags:

View file

@ -222,7 +222,6 @@
zone_name: "{{ domain_name }}.com" zone_name: "{{ domain_name }}.com"
time_to_live: 7200 time_to_live: 7200
record_type: SRV record_type: SRV
state: present
records: records:
- entry: sip.{{ domain_name }}.com - entry: sip.{{ domain_name }}.com
priority: 20 priority: 20
@ -241,7 +240,6 @@
relative_name: "_txt.{{ domain_name }}.com" relative_name: "_txt.{{ domain_name }}.com"
zone_name: "{{ domain_name }}.com" zone_name: "{{ domain_name }}.com"
record_type: TXT record_type: TXT
state: present
records: records:
- entry: "v=spf1 a -all" - entry: "v=spf1 a -all"
- entry: "foo" - entry: "foo"

View file

@ -37,7 +37,6 @@
resource_group: "{{ resource_group }}" resource_group: "{{ resource_group }}"
name: "invalid_char$" name: "invalid_char$"
disk_size_gb: 1 disk_size_gb: 1
state: present
register: output register: output
ignore_errors: yes ignore_errors: yes
check_mode: no check_mode: no

View file

@ -6,7 +6,6 @@
azure_rm_storageaccount: azure_rm_storageaccount:
resource_group: "{{ resource_group }}" resource_group: "{{ resource_group }}"
name: "invalid_char$" name: "invalid_char$"
state: present
register: invalid_name register: invalid_name
ignore_errors: yes ignore_errors: yes

View file

@ -7,7 +7,6 @@
resource_group: "{{ resource_group }}" resource_group: "{{ resource_group }}"
name: "{{ storage_account }}" name: "{{ storage_account }}"
account_type: Standard_LRS account_type: Standard_LRS
state: present
- name: Create container - name: Create container
azure_rm_storageblob: azure_rm_storageblob:

View file

@ -413,7 +413,6 @@
azure_rm_virtualmachine: azure_rm_virtualmachine:
resource_group: "{{ resource_group }}" resource_group: "{{ resource_group }}"
name: testvm002 name: testvm002
state: present
image: image:
offer: UbuntuServer offer: UbuntuServer
register: fail_invalid_image_dict register: fail_invalid_image_dict
@ -423,7 +422,6 @@
azure_rm_virtualmachine: azure_rm_virtualmachine:
resource_group: "{{ resource_group }}" resource_group: "{{ resource_group }}"
name: testvm002 name: testvm002
state: present
image: image:
- testing - testing
register: fail_invalid_image_type register: fail_invalid_image_type
@ -433,7 +431,6 @@
azure_rm_virtualmachine: azure_rm_virtualmachine:
resource_group: "{{ resource_group }}" resource_group: "{{ resource_group }}"
name: testvm002 name: testvm002
state: present
image: invalid-image image: invalid-image
register: fail_missing_custom_image register: fail_missing_custom_image
failed_when: fail_missing_custom_image.msg != "Error could not find image with name invalid-image" failed_when: fail_missing_custom_image.msg != "Error could not find image with name invalid-image"
@ -442,7 +439,6 @@
azure_rm_virtualmachine: azure_rm_virtualmachine:
resource_group: "{{ resource_group }}" resource_group: "{{ resource_group }}"
name: testvm002 name: testvm002
state: present
image: image:
name: invalid-image name: invalid-image
register: fail_missing_custom_image_dict register: fail_missing_custom_image_dict

View file

@ -580,7 +580,6 @@
azure_rm_virtualmachine_scaleset: azure_rm_virtualmachine_scaleset:
resource_group: "{{ resource_group }}" resource_group: "{{ resource_group }}"
name: testvm002 name: testvm002
state: present
vm_size: Standard_B1s vm_size: Standard_B1s
image: image:
offer: UbuntuServer offer: UbuntuServer
@ -591,7 +590,6 @@
azure_rm_virtualmachine_scaleset: azure_rm_virtualmachine_scaleset:
resource_group: "{{ resource_group }}" resource_group: "{{ resource_group }}"
name: testvm002 name: testvm002
state: present
vm_size: Standard_B1s vm_size: Standard_B1s
image: image:
- testing - testing
@ -602,7 +600,6 @@
azure_rm_virtualmachine_scaleset: azure_rm_virtualmachine_scaleset:
resource_group: "{{ resource_group }}" resource_group: "{{ resource_group }}"
name: testvm002 name: testvm002
state: present
vm_size: Standard_B1s vm_size: Standard_B1s
image: invalid-image image: invalid-image
register: fail_missing_custom_image register: fail_missing_custom_image
@ -612,7 +609,6 @@
azure_rm_virtualmachine_scaleset: azure_rm_virtualmachine_scaleset:
resource_group: "{{ resource_group }}" resource_group: "{{ resource_group }}"
name: testvm002 name: testvm002
state: present
vm_size: Standard_B1s vm_size: Standard_B1s
image: image:
name: invalid-image name: invalid-image