
The multitude of set_fact tasks have been replaced with task variables. The deprecated docker_custom_option variable has been removed. Change-Id: If3468ab06a64b5998314da1de2644cef3999ece6
65 lines
1.7 KiB
YAML
65 lines
1.7 KiB
YAML
---
|
|
- import_role:
|
|
name: openstack.kolla.kolla_user
|
|
when: create_kolla_user | bool
|
|
|
|
- import_role:
|
|
name: openstack.kolla.docker_sdk
|
|
|
|
- name: Ensure node_config_directory directory exists
|
|
file:
|
|
path: "{{ node_config_directory }}"
|
|
state: directory
|
|
owner: "{{ kolla_user if create_kolla_user | bool else omit }}"
|
|
group: "{{ kolla_group if create_kolla_user | bool else omit }}"
|
|
mode: 0755
|
|
become: True
|
|
|
|
- block:
|
|
- name: Get stat of libvirtd apparmor profile
|
|
stat:
|
|
path: /etc/apparmor.d/usr.sbin.libvirtd
|
|
register: apparmor_libvirtd_profile
|
|
|
|
- name: Get stat of libvirtd apparmor disable profile
|
|
stat:
|
|
path: /etc/apparmor.d/disable/usr.sbin.libvirtd
|
|
register: apparmor_libvirtd_disable_profile
|
|
|
|
- name: Remove apparmor profile for libvirt
|
|
shell: |
|
|
apparmor_parser -v -R /etc/apparmor.d/usr.sbin.libvirtd && \
|
|
ln -vsf /etc/apparmor.d/usr.sbin.libvirtd /etc/apparmor.d/disable
|
|
args:
|
|
executable: /bin/bash
|
|
become: True
|
|
when:
|
|
- apparmor_libvirtd_profile.stat.exists
|
|
- not apparmor_libvirtd_disable_profile.stat.exists
|
|
when:
|
|
- ansible_facts.distribution == "Ubuntu"
|
|
- apparmor_remove_libvirt_profile | bool
|
|
|
|
- name: Change state of selinux
|
|
selinux:
|
|
policy: targeted
|
|
state: "{{ selinux_state }}"
|
|
become: true
|
|
when:
|
|
- change_selinux | bool
|
|
- ansible_facts.os_family == "RedHat"
|
|
|
|
- name: Set https proxy for git
|
|
git_config:
|
|
name: https.proxy
|
|
scope: global
|
|
value: "{{ git_https_proxy }}"
|
|
when: git_https_proxy | length > 0
|
|
|
|
- name: Set http proxy for git
|
|
git_config:
|
|
name: http.proxy
|
|
scope: global
|
|
value: "{{ git_http_proxy }}"
|
|
when: git_http_proxy | length > 0
|