From c544497aeef6e7d9e43bc34e1769ac6575ff1f51 Mon Sep 17 00:00:00 2001 From: Clyde Tedrick Date: Tue, 19 Jun 2018 17:07:30 -0400 Subject: [PATCH 1/2] 0077 umask hoses nexus user permissions --- tasks/nexus_install.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tasks/nexus_install.yml b/tasks/nexus_install.yml index cc88f95d..e9f7aa2d 100644 --- a/tasks/nexus_install.yml +++ b/tasks/nexus_install.yml @@ -66,6 +66,12 @@ notify: - nexus-service-stop +- name: Ensure proper ownership of nexus installation directory + file: + path: "{{ nexus_installation_dir }}/nexus-{{ nexus_version }}" + recurse: yes + mode: "0755" + - name: Update symlink nexus-latest file: path: "{{ nexus_installation_dir }}/nexus-latest" From 46455fd6575cfbf3d567d3d01afc24dcaa0463d2 Mon Sep 17 00:00:00 2001 From: Olivier Clavel Date: Tue, 4 Sep 2018 16:04:27 +0200 Subject: [PATCH 2/2] Use symbolic mode for install dir ownership This will apply the execute bit only to directories and files already having an x bit set. --- tasks/nexus_install.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/nexus_install.yml b/tasks/nexus_install.yml index e9f7aa2d..de71f35a 100644 --- a/tasks/nexus_install.yml +++ b/tasks/nexus_install.yml @@ -70,7 +70,7 @@ file: path: "{{ nexus_installation_dir }}/nexus-{{ nexus_version }}" recurse: yes - mode: "0755" + mode: "u=rwX,g=rX,o=rX" - name: Update symlink nexus-latest file: