5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
18 msg: "Processing domain: {{domain_name}}"
22 ansible_ssh_private_key_file: /etc/userconfig/id_rsa
27 name: "{{domain_name}}"
28 delegate_to: "{{hosts[installation_controller]['hwmgmt']['address']}}"
29 register: vm_info_result
31 - name: Create domain xml files
33 content: "{{vm_info_result.get_xml}}"
34 dest: "/tmp/{{domain_name}}.xml"
37 - name: Get mac addresses
39 xml_file: "/tmp/{{domain_name}}.xml"
42 - name: Remove domain xml files
44 path: "/tmp/{{domain_name}}.xml"
47 - include: mac_matcher.yml
50 with_dict: "{{nodes_to_power_off}}"