req test for test VMs
This commit is contained in:
parent
dcfd7a1aa4
commit
ff9f0db3a6
4 changed files with 13 additions and 2 deletions
|
@ -28,4 +28,4 @@ linse.freifunk-mwu.de # ext. DNS-master
|
|||
#pudding.freifunk-mwu.de #
|
||||
|
||||
[test-vms]
|
||||
local-test-vm.ffmwu.local ansible_host=192.168.137.7
|
||||
local-test-vm.ffmwu.local ansible_host=192.168.137.7 require_dns=False
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
delegate_to: 127.0.0.1 # local action
|
||||
register: nets
|
||||
|
||||
- debug: var=nets
|
||||
#- debug: var=nets
|
||||
|
||||
- block:
|
||||
- name: construct Vnet xml file
|
||||
|
|
9
loctevm-test-prerequisites.yml
Executable file
9
loctevm-test-prerequisites.yml
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/ansible-playbook
|
||||
---
|
||||
|
||||
- hosts: test-vms
|
||||
remote_user: admin
|
||||
strategy: free
|
||||
|
||||
roles:
|
||||
- ffmwu-prereqs
|
|
@ -3,10 +3,12 @@
|
|||
- name: assert IPv4 DNS entry
|
||||
local_action: shell dig A {{ inventory_hostname }} | egrep '^{{ inventory_hostname }}'
|
||||
changed_when: False
|
||||
when: "{{ require_dns | default('True') }}"
|
||||
|
||||
- name: assert IPv6 DNS entry
|
||||
local_action: shell dig AAAA {{ inventory_hostname }} | egrep '^{{ inventory_hostname }}'
|
||||
changed_when: False
|
||||
when: "{{ require_dns | default('True') }}"
|
||||
|
||||
- name: test access to admin account (ssh key neccessary!)
|
||||
command: "true"
|
||||
|
|
Loading…
Reference in a new issue