5265993134
In certain environments, a user's primary group doesn't necessarily match that of their username. This change updates various playbooks to make use of the `ansible_user_gid` fact instead. This change also makes ownership explicit by using `ansible_user_uid` instead of `ansible_user` or `ansible_user_id`, where appropriate. Change-Id: Ifc2ea7d95ec90e91791ccb10772b15d991379479 Story: 2002770 Task: 22636
12 lines
267 B
YAML
12 lines
267 B
YAML
---
|
|
- name: Ensure the Kolla configuration directories exist
|
|
file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
owner: "{{ ansible_user_uid }}"
|
|
group: "{{ ansible_user_gid }}"
|
|
mode: 0750
|
|
become: True
|
|
with_items:
|
|
- "{{ kolla_build_config_path }}"
|