Skip to content

Commit b2e15f6

Browse files
authored
Merge pull request #24 from wcm-io-devops/feature/aem_license_file
Add aem_cms_license_file variable
2 parents 8dc352e + fed1f2d commit b2e15f6

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This role installs Adobe Experience Manager (AEM) 6.x on Debian/Ubuntu or RHEL/C
88
99
## Requirements
1010

11-
This role requires Ansible 2.7 or higher and works with AEM 6.1 or higher. Also required are an AEM quickstart JAR file and a valid AEM license file. The `license.properties` files needs be made accessible to the role, normally by copying it into the `files` folder in the playbook directory. The `AEM_*_Quickstart.jar` can be supplied in the same way or retrieved from a Maven/RPM/APT repository, an HTTP URL or a S3 bucket (see below).
11+
This role requires Ansible 2.7 or higher and works with AEM 6.1 or higher. Also required are an AEM quickstart JAR file and a valid AEM license file. The `license.properties` files needs be made accessible to the role, normally by copying it into the `files` folder in the playbook directory. You can also use another license file and reference it by the `aem_cms_license_file` variable. The `AEM_*_Quickstart.jar` can be supplied in the same way or retrieved from a Maven/RPM/APT repository, an HTTP URL or a S3 bucket (see below).
1212

1313
## Role Variables
1414

@@ -131,6 +131,10 @@ specify a custom template.
131131

132132
Destination path of the synchronous stop script on the instance.
133133

134+
aem_cms_license_file: license.properties
135+
136+
Name of the AEM license file.
137+
134138
## Dependencies
135139

136140
This role depends on the

defaults/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,6 @@ aem_cms_stop_sync_template: "stop-sync.sh.j2"
8282

8383
# Destination path of the synchronous stop script on the instance
8484
aem_cms_stop_sync_path: "{{ aem_cms_home }}/crx-quickstart/bin/stop-sync.sh"
85+
86+
# File name of the AEM license file
87+
aem_cms_license_file: license.properties

tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
- name: Create AEM license.
2222
copy:
23-
src: license.properties
23+
src: "{{ aem_cms_license_file }}"
2424
dest: "{{ aem_cms_home }}/license.properties"
2525
owner: "{{ aem_cms_user }}"
2626
group: "{{ aem_cms_group }}"
@@ -96,4 +96,4 @@
9696

9797
- name: Setup i386 support for XMPFilesProcessor.
9898
include_tasks: xmp_i386.yml
99-
when: ansible_architecture == 'x86_64'
99+
when: ansible_architecture == 'x86_64'

0 commit comments

Comments
 (0)