Skip to content
Snippets Groups Projects
Commit 50dddc3a authored by Mark Goddard's avatar Mark Goddard
Browse files

Ubuntu: fix pip configuration for kolla user

On Ubuntu, Kayobe can fail creating pip configuration for the kolla
user, with the following error:

    Failed to set permissions on the temporary files Ansible needs to
    create when becoming an unprivileged user

An earlier error seen with Ansible verbose mode shows that the setfacl
command is missing. It can be installed using the acl package, however
this is not always present in Ubuntu 20.04.

This change installs the acl package in the pip role.

Story: 2004960
Task: 41492

Change-Id: Ib5462684fa5fd307068c67f9a13f73b80967beb4
parent e360f7cd
No related branches found
No related tags found
No related merge requests found
---
# NOTE(mgoddard): The acl package is required for the setfacl command, used by
# become_user.
- name: Ensure acl package is installed
package:
name: acl
become: true
- name: Create local .pip directory
file:
path: "~{{ item }}/.pip"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment