DNS tests

This commit is contained in:
ka-ba 2016-07-05 13:42:55 +02:00
parent 0309ba4e9e
commit 7f3a15b821

View file

@ -6,6 +6,14 @@
strategy: free
tasks:
- name: assert IPv4 DNS entry
local_action: shell dig A {{ inventory_hostname }} | egrep '^{{ inventory_hostname }}'
changed_when: False
- name: assert IPv6 DNS entry
local_action: shell dig AAAA {{ inventory_hostname }} | egrep '^{{ inventory_hostname }}'
changed_when: False
- name: test access to admin account (ssh key neccessary!)
command: "true"
changed_when: False
@ -16,6 +24,6 @@
become: True
become_user: root
- name: check OS type and version # TODO: include debian
- name: fail on wrong OS type and version # TODO: include debian
fail: msg="unsupported OS type or version - {{ ansible_distribution }} {{ ansible_distribution_major_version }}"
when: not ( ansible_distribution=="Ubuntu" and ansible_distribution_major_version|int==14 )