summaryrefslogtreecommitdiffstats
path: root/roles/cloud_compute
diff options
context:
space:
mode:
authorPatrick Uiterwijk <puiterwijk@redhat.com>2015-10-02 02:12:59 +0000
committerPatrick Uiterwijk <puiterwijk@redhat.com>2015-10-02 02:12:59 +0000
commitc9c7c5cd14f1d7059a90bb2d81c30e45c56e8b35 (patch)
treeb246a56ef1b89a87ca33990700c1340abeb39a10 /roles/cloud_compute
parentc2c8d76a691cd3c4ab1d5626db3a794e14b43e10 (diff)
downloadansible-c9c7c5cd14f1d7059a90bb2d81c30e45c56e8b35.tar.gz
ansible-c9c7c5cd14f1d7059a90bb2d81c30e45c56e8b35.tar.xz
ansible-c9c7c5cd14f1d7059a90bb2d81c30e45c56e8b35.zip
Enable nested virt for the cloud
Diffstat (limited to 'roles/cloud_compute')
-rw-r--r--roles/cloud_compute/tasks/main.yml5
1 files changed, 4 insertions, 1 deletions
diff --git a/roles/cloud_compute/tasks/main.yml b/roles/cloud_compute/tasks/main.yml
index 44b2c2b42..944d720f8 100644
--- a/roles/cloud_compute/tasks/main.yml
+++ b/roles/cloud_compute/tasks/main.yml
@@ -4,6 +4,10 @@
- authorized_key: user=root key="{{ lookup('file', files + '/fedora-cloud/fed09-ssh-key.pub') }}"
- template: src={{ files }}/fedora-cloud/hosts dest=/etc/hosts owner=root mode=0644
+- name: Enable nested virtualization
+ copy: content="options kvm_intel nested=1" dest=/etc/modprobe.d/nested_virt.conf
+ owned=root group=root mode=0644
+
- lineinfile: dest=/etc/sysconfig/network-scripts/ifcfg-eth1 regexp="^ONBOOT=" line="ONBOOT=yes"
notify:
- restart network
@@ -18,7 +22,6 @@
- restart network
- meta: flush_handlers
-# this two step can be done in one, but Ansible will then always show the action as changed
- name: copy RHOS repo file
copy: src=rhos-5.repo dest=/etc/yum.repos.d/rhos-5.repo
owner=root group=root mode=0644