Ensure 0755 default mode on new directories
This patch ensures that all directories under `/openstack/venvs` are created with `0755` permissions by default. This prevents permission denied errors when running certain commands from the virtual environment. Change-Id: I4de66655f5541fb666e137276179468892bc1795
This commit is contained in:
parent
b2249dcc62
commit
4c55e0f3c1
@ -55,6 +55,7 @@
|
||||
file:
|
||||
path: "{{ sahara_bin | dirname }}"
|
||||
state: directory
|
||||
mode: "0755"
|
||||
register: sahara_venv_dir
|
||||
|
||||
- name: Unarchive pre-built venv
|
||||
|
@ -35,7 +35,7 @@
|
||||
group: "{{ item.group|default(sahara_system_group_name) }}"
|
||||
mode: "{{ item.mode|default('0755') }}"
|
||||
with_items:
|
||||
- { path: "/openstack", mode: "0755", owner: "root", group: "root" }
|
||||
- { path: "/openstack/venvs", mode: "0755", owner: "root", group: "root" }
|
||||
- { path: "/etc/sahara" }
|
||||
- { path: "/etc/sahara/rootwrap.d", owner: "root", group: "root" }
|
||||
- { path: "/etc/sudoers.d", mode: "0750", owner: "root", group: "root" }
|
||||
|
Loading…
x
Reference in New Issue
Block a user