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") }}'
58 path: /etc/modprobe.d/kvm_intel.conf
59 line: 'options kvm-intel nested=1'
61 when: ansible_architecture == "x86_64"
68 when: ansible_architecture == "x86_64"
69 - name: Generate SSH key for root if missing
70 shell: test -e ~/.ssh/id_rsa || ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa
71 - name: Check that /u/l/python3.4/site-packages/virtualbmc/vbmc.py exists
73 path: /usr/lib/python3.4/site-packages/virtualbmc/vbmc.py
75 - name: Manually patch vmbc to work with python3.x
77 line: " conn.defineXML(ET.tostring(tree, encoding='unicode'))"
79 path: /usr/lib/python3.4/site-packages/virtualbmc/vbmc.py
80 when: vbmc_py.stat.exists == True
81 - name: Add ssh retry to Ansible config
83 path: /etc/ansible/ansible.cfg
84 section: ssh_connection