mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
1d5fe326e8
* Add a cloud provider and a set of smoketests for the NIOS modules
68 lines
1.5 KiB
YAML
68 lines
1.5 KiB
YAML
- name: cleanup dns view instance
|
|
nios_dns_view:
|
|
name: ansible-dns
|
|
state: absent
|
|
provider: "{{ nios_provider }}"
|
|
|
|
- name: cleanup test zone
|
|
nios_zone:
|
|
name: ansible-dns
|
|
state: absent
|
|
provider: "{{ nios_provider }}"
|
|
|
|
- name: configure a zone on the system
|
|
nios_zone:
|
|
name: ansible-dns
|
|
state: present
|
|
provider: "{{ nios_provider }}"
|
|
register: zone_create1
|
|
|
|
- name: configure a zone on the system
|
|
nios_zone:
|
|
name: ansible-dns
|
|
state: present
|
|
provider: "{{ nios_provider }}"
|
|
register: zone_create2
|
|
|
|
- name: update the comment and ext attributes for an existing zone
|
|
nios_zone:
|
|
name: ansible-dns
|
|
comment: this is an example comment
|
|
extattrs:
|
|
Site: west-dc
|
|
state: present
|
|
provider: "{{ nios_provider }}"
|
|
register: zone_update1
|
|
|
|
- name: update the comment and ext attributes for an existing zone
|
|
nios_zone:
|
|
name: ansible-dns
|
|
comment: this is an example comment
|
|
extattrs:
|
|
Site: west-dc
|
|
state: present
|
|
provider: "{{ nios_provider }}"
|
|
register: zone_update2
|
|
|
|
- name: remove the dns zone
|
|
nios_zone:
|
|
name: ansible-dns
|
|
state: absent
|
|
provider: "{{ nios_provider }}"
|
|
register: zone_delete1
|
|
|
|
- name: remove the dns zone
|
|
nios_zone:
|
|
name: ansible-dns
|
|
state: absent
|
|
provider: "{{ nios_provider }}"
|
|
register: zone_delete2
|
|
|
|
- assert:
|
|
that:
|
|
- "zone_create1.changed"
|
|
- "not zone_create2.changed"
|
|
- "zone_update1.changed"
|
|
- "not zone_update2.changed"
|
|
- "zone_delete1.changed"
|
|
- "not zone_delete2.changed"
|