Skip to content

Commit 61c1131

Browse files
tobias-richterinteratom
authored andcommitted
Fix permissions during downloading AEM quickstart (#14)
Set owner and group for downloaded files to aem_cms_user
1 parent f949e09 commit 61c1131

File tree

5 files changed

+14
-0
lines changed

5 files changed

+14
-0
lines changed

tasks/download/file.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
copy:
44
src: "{{ aem_cms_quickstart_name }}"
55
dest: "{{ aem_cms_download_path }}"
6+
owner: "{{ aem_cms_user }}"
7+
group: "{{ aem_cms_group }}"

tasks/download/maven_repository.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@
1414
username: "{{ aem_cms_maven_repository_username | default(omit) }}"
1515
password: "{{ aem_cms_maven_repository_password | default(omit) }}"
1616
version: "{{ item.version | default(aem_cms_version_short) }}"
17+
owner: "{{ aem_cms_user }}"
18+
group: "{{ aem_cms_group }}"
1719
with_items: "{{ aem_cms_maven_repository_coordinates }}"

tasks/download/package.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
src: "{{ aem_cms_package_home }}/{{ aem_cms_quickstart_name }}"
99
dest: "{{ aem_cms_download_path }}"
1010
remote_src: True
11+
owner: "{{ aem_cms_user }}"
12+
group: "{{ aem_cms_group }}"
1113

1214
- name: Remove AEM package.
1315
package:

tasks/download/s3.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,9 @@
2020
mode: get
2121
aws_access_key: "{{ aem_cms_s3_access_key | default(omit) }}"
2222
aws_secret_key: "{{ aem_cms_s3_secret_key | default(omit) }}"
23+
24+
- name: Set user and group for downloaded AEM artifact.
25+
file:
26+
path: "{{ aem_cms_download_path }}/{{ aem_cms_quickstart_name }}"
27+
owner: "{{ aem_cms_user }}"
28+
group: "{{ aem_cms_group }}"

tasks/download/url.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@
1111
url_username: "{{ aem_cms_url_username | default(omit) }}"
1212
url_password: "{{ aem_cms_url_password | default(omit) }}"
1313
checksum: "{{ _aem_cms_quickstart_checksum | default(omit) }}"
14+
owner: "{{ aem_cms_user }}"
15+
group: "{{ aem_cms_group }}"

0 commit comments

Comments
 (0)