9822db610b
* New module for dns zone Added new module and intergration tests for them * fixed sanity issues not importing specific moduels/classes; fixed now
45 lines
930 B
YAML
45 lines
930 B
YAML
- name: Create a DNS zone
|
|
azure_rm_dnszone:
|
|
resource_group: "{{ resource_group }}"
|
|
name: testing.com
|
|
state: present
|
|
register: results
|
|
|
|
- assert:
|
|
that: results.changed
|
|
|
|
- name: Update DNS zone with tags
|
|
azure_rm_dnszone:
|
|
resource_group: "{{ resource_group }}"
|
|
name: testing.com
|
|
state: present
|
|
tags:
|
|
test: modified
|
|
register: results
|
|
|
|
- assert:
|
|
that:
|
|
- results.changed
|
|
- results.state.tags.test == 'modified'
|
|
|
|
- name: Test check_mode
|
|
azure_rm_dnszone:
|
|
resource_group: "{{ resource_group }}"
|
|
name: testing.com
|
|
state: present
|
|
tags:
|
|
test: new_modified
|
|
check_mode: yes
|
|
register: results
|
|
|
|
- assert:
|
|
that:
|
|
- results.changed
|
|
- results.state.tags.test == 'new_modified'
|
|
- results.check_mode == true
|
|
|
|
- name: Delete DNS zone
|
|
azure_rm_dnszone:
|
|
resource_group: "{{ resource_group }}"
|
|
name: testing.com
|
|
state: absent
|