1 # Copyright (c) 2018 Intel Corporation.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 - name: Update apt cache
19 cache_valid_time: 36000
20 environment: "{{ proxy_env }}"
22 - name: Install packets
40 environment: "{{ proxy_env }}"
43 shell: easy_install pip
44 environment: "{{ proxy_env }}"
46 - name: Update pip ansible docker
55 environment: "{{ proxy_env }}"
57 - name: Remove conflicting packages
65 - name: Stop and disable libvirt
69 name: libvirt-bin.service
71 - name: Stop and disable apparmor service
77 - name: Get stat of libvirtd apparmor profile
79 path: /etc/apparmor.d/disable/usr.sbin.libvirtd
80 register: apparmor_libvirtd_profile
82 - name: Remove apparmor profile for libvirt
83 shell: ln -s /etc/apparmor.d/usr.sbin.libvirtd /etc/apparmor.d/disable/ && apparmor_parser -R /etc/apparmor.d/usr.sbin.libvirtd
85 - apparmor_libvirtd_profile.stat.exists == False