14 name: ansible-modules-hashivault,hvac,Jinja2
18 name: net.ipv4.ip_forward
38 xml: '{{ lookup("template", "virsh_network_default.xml.j2") }}'
42 bridge: 'br-{{ item }}'
44 with_items: '{{ virsh_enabled_networks }}'
48 xml: '{{ lookup("template", "virsh_network_ovs.xml.j2") }}'
49 with_items: '{{ virsh_enabled_networks }}'
54 with_items: '{{ virsh_enabled_networks }}'
59 xml: '{{ lookup("template", "virsh_pool.xml.j2") }}'
64 - shell: cat /sys/module/kvm_intel/parameters/nested || true
65 register: nested_result
66 when: ansible_architecture == "x86_64"
67 - name: reload kvm_intel
70 path: /etc/modprobe.d/kvm_intel.conf
71 line: 'options kvm-intel nested=1'
80 - ansible_architecture == "x86_64"
81 - "'Y' not in nested_result.stdout"
88 - name: Generate SSH key for root if missing
89 shell: test -e ~/.ssh/id_rsa || ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa
90 - name: Check that /u/l/python3.4/site-packages/virtualbmc/vbmc.py exists
92 path: /usr/lib/python3.4/site-packages/virtualbmc/vbmc.py
94 - name: Manually patch vmbc to work with python3.x
96 line: " conn.defineXML(ET.tostring(tree, encoding='unicode'))"
98 path: /usr/lib/python3.4/site-packages/virtualbmc/vbmc.py
99 when: vbmc_py.stat.exists == True
100 - name: Add ssh retry to Ansible config
102 path: /etc/ansible/ansible.cfg
103 section: ssh_connection