ansible-collection-kolla/roles/baremetal/tasks/post-install.yml
Michal Nasiadka c4a1dcd3c7 Adapt code in preparation for ansible-lint bump
Rename True/False to true/false
Fix permissions values

Change-Id: I75be15fd24aeedf54bb22b9744bc0ee498a62645
2024-10-09 11:27:12 +02:00

43 lines
1015 B
YAML

---
- import_role:
name: openstack.kolla.kolla_user
when: create_kolla_user | bool
- import_role:
name: openstack.kolla.{{ container_engine }}_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
- import_role:
name: openstack.kolla.apparmor_libvirt
- 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