2016-02-02 20:19:10 +01:00
|
|
|
---
|
|
|
|
- name: test configuration zone
|
|
|
|
cs_configuration:
|
|
|
|
name: use.external.dns
|
|
|
|
zone: "{{ test_cs_configuration_zone }}"
|
|
|
|
value: false
|
|
|
|
register: config
|
|
|
|
- name: verify test configuration zone
|
|
|
|
assert:
|
|
|
|
that:
|
2017-11-27 23:58:08 +01:00
|
|
|
- config is successful
|
2016-02-02 20:19:10 +01:00
|
|
|
|
|
|
|
- name: test update configuration zone
|
|
|
|
cs_configuration:
|
|
|
|
name: use.external.dns
|
|
|
|
zone: "{{ test_cs_configuration_zone }}"
|
|
|
|
value: true
|
|
|
|
register: config
|
|
|
|
- name: verify update configuration zone
|
|
|
|
assert:
|
|
|
|
that:
|
2017-11-27 23:58:08 +01:00
|
|
|
- config is successful
|
|
|
|
- config is changed
|
2016-02-02 20:19:10 +01:00
|
|
|
- config.value == "true"
|
|
|
|
- config.name == "use.external.dns"
|
|
|
|
- config.scope == "zone"
|
|
|
|
- config.zone == "{{ test_cs_configuration_zone }}"
|
|
|
|
|
|
|
|
- name: test update configuration zone idempotence
|
|
|
|
cs_configuration:
|
|
|
|
name: use.external.dns
|
|
|
|
zone: "{{ test_cs_configuration_zone }}"
|
|
|
|
value: true
|
|
|
|
register: config
|
|
|
|
- name: verify update configuration zone idempotence
|
|
|
|
assert:
|
|
|
|
that:
|
2017-11-27 23:58:08 +01:00
|
|
|
- config is successful
|
|
|
|
- config is not changed
|
2016-02-02 20:19:10 +01:00
|
|
|
- config.value == "true"
|
|
|
|
- config.name == "use.external.dns"
|
|
|
|
- config.scope == "zone"
|
|
|
|
- config.zone == "{{ test_cs_configuration_zone }}"
|
|
|
|
|
|
|
|
- name: test reset configuration zone
|
|
|
|
cs_configuration:
|
|
|
|
name: use.external.dns
|
|
|
|
zone: "{{ test_cs_configuration_zone }}"
|
|
|
|
value: false
|
|
|
|
register: config
|
|
|
|
- name: verify reset configuration zone
|
|
|
|
assert:
|
|
|
|
that:
|
2017-11-27 23:58:08 +01:00
|
|
|
- config is successful
|
|
|
|
- config is changed
|
2016-02-02 20:19:10 +01:00
|
|
|
- config.value == "false"
|
|
|
|
- config.name == "use.external.dns"
|
|
|
|
- config.scope == "zone"
|
|
|
|
- config.zone == "{{ test_cs_configuration_zone }}"
|