diff options
author | Feng Pan <fpan@redhat.com> | 2017-08-30 16:12:31 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-08-30 16:12:31 +0000 |
commit | ceb8b2863c0483fd850d49c7545a8b8fc6a34bbd (patch) | |
tree | 9735c2f8a4c676501ef90f31ba5d5d0f49d0e749 /lib/ansible | |
parent | dd669539ffa924a06f04237a2177422403d82c7b (diff) | |
parent | 3483b1077086ec5773ffafdf7304d127f30e6d62 (diff) |
Merge "Fixes missing iso packages and idempotency of virt resources"
Diffstat (limited to 'lib/ansible')
-rw-r--r-- | lib/ansible/playbooks/deploy_dependencies.yml | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/lib/ansible/playbooks/deploy_dependencies.yml b/lib/ansible/playbooks/deploy_dependencies.yml index 6db94ab4..8a575216 100644 --- a/lib/ansible/playbooks/deploy_dependencies.yml +++ b/lib/ansible/playbooks/deploy_dependencies.yml @@ -1,6 +1,12 @@ --- - hosts: localhost tasks: + - yum: + name: "{{ item }}" + state: present + with_items: + - python-lxml + - libvirt-python - sysctl: name: net.ipv4.ip_forward state: present @@ -30,21 +36,24 @@ state: present with_items: '{{ virsh_enabled_networks }}' - virt_net: - command: define + state: present name: '{{ item }}' xml: '{{ lookup("template", "virsh_network_ovs.xml.j2") }}' - autostart: yes with_items: '{{ virsh_enabled_networks }}' - virt_net: - command: create + state: active name: '{{ item }}' + autostart: yes with_items: '{{ virsh_enabled_networks }}' - virt_pool: name: default - command: define autostart: yes - state: active + state: present xml: '{{ lookup("template", "virsh_pool.xml.j2") }}' + - virt_pool: + name: default + autostart: yes + state: active - lineinfile: path: /etc/modprobe.d/kvm_intel.conf line: 'options kvm-intel nested=1' |