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"
76 - name: Generate SSH key for root if missing
77 shell: test -e ~/.ssh/id_rsa || ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa
78 - name: Check that /u/l/python3.4/site-packages/virtualbmc/vbmc.py exists
80 path: /usr/lib/python3.4/site-packages/virtualbmc/vbmc.py
82 - name: Manually patch vmbc to work with python3.x
84 line: " conn.defineXML(ET.tostring(tree, encoding='unicode'))"
86 path: /usr/lib/python3.4/site-packages/virtualbmc/vbmc.py
87 when: vbmc_py.stat.exists == True
88 - name: Add ssh retry to Ansible config
90 path: /etc/ansible/ansible.cfg
91 section: ssh_connection