From 1993301e34d1565e41f4eca350c6e7ccb300a6e3 Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Wed, 17 Jan 2018 11:15:58 +0000 Subject: [PATCH] Use ansible_user_id instead of ansible_user --- ansible/roles/kolla/tasks/config.yml | 4 ++-- ansible/roles/kolla/tasks/install.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ansible/roles/kolla/tasks/config.yml b/ansible/roles/kolla/tasks/config.yml index 2b5620593..1bb8b2a24 100644 --- a/ansible/roles/kolla/tasks/config.yml +++ b/ansible/roles/kolla/tasks/config.yml @@ -3,8 +3,8 @@ file: path: "{{ item }}" state: directory - owner: "{{ ansible_user }}" - group: "{{ ansible_user }}" + owner: "{{ ansible_user_id }}" + group: "{{ ansible_user_id }}" mode: 0750 become: True with_items: diff --git a/ansible/roles/kolla/tasks/install.yml b/ansible/roles/kolla/tasks/install.yml index c33836f6d..8095c786d 100644 --- a/ansible/roles/kolla/tasks/install.yml +++ b/ansible/roles/kolla/tasks/install.yml @@ -22,8 +22,8 @@ file: path: "{{ kolla_source_path | dirname }}" state: directory - owner: "{{ ansible_user }}" - group: "{{ ansible_user }}" + owner: "{{ ansible_user_id }}" + group: "{{ ansible_user_id }}" become: True when: kolla_ctl_install_type == 'source'