2017-09-07 09:32:15 +02:00
|
|
|
---
|
2018-11-09 10:43:54 +01:00
|
|
|
- name: Check for minimal Ansible version
|
|
|
|
assert:
|
|
|
|
that: "ansible_version.full is version_compare(ansible_version_minimum, '>=')"
|
|
|
|
msg: "You must update Ansible to at least version {{ ansible_version_minimum }}."
|
|
|
|
run_once: True
|
2017-09-07 09:32:15 +02:00
|
|
|
|
2018-09-09 10:26:23 +02:00
|
|
|
- name: Check basic DNS entries and target distribution
|
2017-09-07 09:32:15 +02:00
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
- "dns_host_ipv4_address in ansible_all_ipv4_addresses"
|
|
|
|
- "dns_host_ipv6_address in ansible_all_ipv6_addresses"
|
|
|
|
- "ansible_distribution == 'Debian'"
|
|
|
|
- "ansible_distribution_major_version == '9'"
|
|
|
|
|
2018-09-09 10:26:23 +02:00
|
|
|
- name: Check gateway specific DNS entries
|
|
|
|
when: ffmwu_server_type == "gateway"
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
- "dns_gate_num_cname == inventory_hostname"
|
|
|
|
- "dns_gate_icvpn_cname == inventory_hostname"
|
|
|
|
|
2017-09-07 09:32:15 +02:00
|
|
|
- name: Test root access for admin account
|
|
|
|
command: "true"
|
|
|
|
changed_when: False
|