a93a1e6b61
It will run a play where it will spin up five vms, and will truncate inventory to consider only three. The play will configure dns using dynamic inventory, and will take an extra parameter to specify if we want static ips or not. It will perform a test on dnsmasq leases file, to ensure that the dhcp behaviour is working as expected, depending on the settings. Change-Id: If56488f78524ceba201b50f76df306620744cda5
18 lines
741 B
YAML
18 lines
741 B
YAML
# Copyright (c) 2016 Hewlett-Packard Development Company, L.P.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
---
|
|
- name: Execute python dhcp check file
|
|
become: true
|
|
script: test-dhcp.py "{{inventory_dhcp}}" "{{inventory_dhcp_static_ip}}"
|