From b73f06684f2145e7a5e5394894c0ffec66fbefbb Mon Sep 17 00:00:00 2001 From: zhuzeyu Date: Thu, 23 Mar 2017 15:16:14 +0800 Subject: [PATCH] Modify the permission of directory Considering the safety, 644 is enough other user is not necessary to having write permission. adding 'su' in where needs writing permissions is a good practice this operation is safer. Change-Id: I45d0c6e5ef7338f93db21cf4ef58b4a4fd831210 --- ansible/roles/baremetal/tasks/pre-install.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/baremetal/tasks/pre-install.yml b/ansible/roles/baremetal/tasks/pre-install.yml index 3ba972ba1d..d1faf6e386 100644 --- a/ansible/roles/baremetal/tasks/pre-install.yml +++ b/ansible/roles/baremetal/tasks/pre-install.yml @@ -132,6 +132,6 @@ path: "{{ node_config_directory }}" state: directory recurse: yes - mode: 0666 + mode: 0644 become: True when: create_kolla_user | bool == False