Added missing reverse zones tests setup

In some case the tests needs to have the class A, B and C of reverse DNS
set in order to function properly. Those missing classes where
added/updated in dnsrecord, services and host tests.
This commit is contained in:
Sergio Oliveira Campos
2020-07-24 11:12:14 -03:00
parent 5d6adee15e
commit fd28559edf
5 changed files with 43 additions and 15 deletions

View File

@@ -2,8 +2,11 @@
# Set common vars and facts for test.
- name: Set IPv4 address prefix.
set_fact:
ipv4_prefix: '192.168.122'
ipv4_reverse_sufix: '122.168.192'
ipv4_prefix: "{{ ansible_default_ipv4.address.split('.')[:-1] |
join('.') }}"
ipv4_reverse_sufix: "{{ ansible_default_ipv4.address.split('.')[:-1] |
reverse |
join('.') }}"
- name: Set zone prefixes.
set_fact: