12 name: net.ipv4.ip_forward
32 xml: '{{ lookup("template", "virsh_network_default.xml.j2") }}'
36 bridge: 'br-{{ item }}'
38 with_items: '{{ virsh_enabled_networks }}'
42 xml: '{{ lookup("template", "virsh_network_ovs.xml.j2") }}'
43 with_items: '{{ virsh_enabled_networks }}'
48 with_items: '{{ virsh_enabled_networks }}'
53 xml: '{{ lookup("template", "virsh_pool.xml.j2") }}'
58 - shell: cat /sys/module/kvm_intel/parameters/nested || true
59 register: nested_result
60 when: ansible_architecture == "x86_64"
61 - name: reload kvm_intel
64 path: /etc/modprobe.d/kvm_intel.conf
65 line: 'options kvm-intel nested=1'
74 - ansible_architecture == "x86_64"
75 - "'Y' not in nested_result.stdout"
82 - name: Generate SSH key for root if missing
83 shell: test -e ~/.ssh/id_rsa || ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa
84 - name: Check that /u/l/python3.4/site-packages/virtualbmc/vbmc.py exists
86 path: /usr/lib/python3.4/site-packages/virtualbmc/vbmc.py
88 - name: Manually patch vmbc to work with python3.x
90 line: " conn.defineXML(ET.tostring(tree, encoding='unicode'))"
92 path: /usr/lib/python3.4/site-packages/virtualbmc/vbmc.py
93 when: vbmc_py.stat.exists == True
94 - name: Add ssh retry to Ansible config
96 path: /etc/ansible/ansible.cfg
97 section: ssh_connection