aem_design.aem_package
Ansible Role: AEM Package
This role helps install Content Packages to an AEM Instance.
It was made as part of AEM.Design
Requirements
None.
Role Variables
Here are the variables you can use, along with their default values (see defaults/main.yml
):
| Name | Required | Default | Notes | |---------------------------- |---------- |--------------- |--------------------------------------------------------- | | aem_host | yes | localhost | Host address of AEM | | aem_port | yes | 4502 | Port number for AEM | | aem_username | yes | admin | Username for the AEM host | | aem_password | yes | admin | Password for the AEM host | | | | | | | maven_repository_url | | http://localhost | URL to get and store packages if available | | maven_repository_username | | admin | Nexus username for uploading files | | maven_repository_password | | admin123 | Nexus password for uploading files | | | | | | | simple_name | yes | | Simple name for the package | | group_name | yes | | Group name for the package | | package_name | yes | | Name of the package | | package_version | yes | | Version of the package | | package_url | yes | | URL for the package | | file_name | yes | | Name of the downloaded file | | file_override | yes | | Override the name of the downloaded package | | file_override_package_name | yes | | Name of the package to override | | file_url_username | | | Username for downloading file | | file_url_password | | | Password for downloading file | | | | | | | install_package_ansible | | false | Use Ansible script to install, requires pyaem2 installed | | install_package_docker | | true | Use Docker container to install, requires docker_host | | docker_host | | unix://var/run/docker.sock | Docker host to run commands for pyaem2 | | | | | |
Dependencies
This role relies on the following roles:
aem_design.aem_license
aem_design.aem_verify
Example Playbook
- hosts: all
include_role:
name: aem_package
vars:
aem_host: "{{ aem_host }}"
aem_port: "{{ aem_port }}"
aem_username: "{{ aem_username }}"
aem_password: "{{ aem_password }}"
simple_name: "{{ item.simple_name }}"
group_name: "{{ item.group_name }}"
package_name: "{{ item.package_name }}"
package_version: "{{ item.version }}"
package_url: "{{ item.package_url }}"
file_name: "{{ item.file_name }}"
file_override: "{{ item.file_override | default(false) }}"
file_override_package_name: "{{ item.file_override_package_name | default('') }}"
file_url_username: "{{ adobe_cloud_username }}"
file_url_password: "{{ adobe_cloud_password }}"
install_package_ansible: "true"
with_items: "{{ package_files }}"
when:
- package_files is defined
- item is defined
With variables:
package_files:
## SERVICE PACKS
- {
simple_name: "adobe servicepack 1",
file_name: 'aem-service-pkg-6.5.1.zip',
version: '6.5.1',
group_name: 'adobe/cq650/servicepack',
package_name: 'aem-service-pkg',
package_url: "https://www.adobeaemcloud.com/content/companies/public/adobe/packages/cq650/servicepack/AEM-6.5.1.0/jcr%3acontent/package/file.res/AEM-6.5.1.0-6.5.1.zip"
}
License
Apache 2.0
Author Information
This role was created by Max Barrass.
Install Content Packages to AEM Instance.
ansible-galaxy install aem_design.aem_package