11 name: net.ipv4.ip_forward
31 xml: '{{ lookup("template", "virsh_network_default.xml.j2") }}'
35 bridge: 'br-{{ item }}'
37 with_items: '{{ virsh_enabled_networks }}'
41 xml: '{{ lookup("template", "virsh_network_ovs.xml.j2") }}'
42 with_items: '{{ virsh_enabled_networks }}'
47 with_items: '{{ virsh_enabled_networks }}'
52 xml: '{{ lookup("template", "virsh_pool.xml.j2") }}'
57 - shell: cat /sys/module/kvm_intel/parameters/nested || true
58 register: nested_result
59 when: ansible_architecture == "x86_64"
60 - name: reload kvm_intel
63 path: /etc/modprobe.d/kvm_intel.conf
64 line: 'options kvm-intel nested=1'
73 - ansible_architecture == "x86_64"
74 - "'Y' not in nested_result.stdout"
75 - name: Generate SSH key for root if missing
76 shell: test -e ~/.ssh/id_rsa || ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa
77 - name: Check that /u/l/python3.4/site-packages/virtualbmc/vbmc.py exists
79 path: /usr/lib/python3.4/site-packages/virtualbmc/vbmc.py
81 - name: Manually patch vmbc to work with python3.x
83 line: " conn.defineXML(ET.tostring(tree, encoding='unicode'))"
85 path: /usr/lib/python3.4/site-packages/virtualbmc/vbmc.py
86 when: vbmc_py.stat.exists == True
87 - name: Add ssh retry to Ansible config
89 path: /etc/ansible/ansible.cfg
90 section: ssh_connection