accelize.accelize_drm
Accelize DRM Ansible Role
This Ansible role installs Accelize DRM.
For more details, check the documentation.
Requirements
You must run this role as root on the target host.
Role Variables
Installation:
Settings for installing Accelize DRM.
- accelize_drm_python: If set to
true
, it installs the Python library and systemd service. Default istrue
. - accelize_drm_devel: If set to
true
, it installs the development C/C++ headers. Default isfalse
. - accelize_repository_channel: Choose the Accelize Repository channel:
stable
orprerelease
. Default isstable
. - accelize_drm_from_source: If set to
true
, it installs from source instead of from a package. Default isfalse
.
DRM Configuration:
Settings for Accelize DRM configuration files.
- accelize_drm_cred_src: Path to the local
cred.json
file to transfer to the host. If not set, the file will not be transferred. - accelize_drm_cred_dst: Destination path for the
cred.json
file on the target host. Default is/root/.accelize_drm/cred.json
. - accelize_drm_conf_src: Path to the local
conf.json
file to transfer to the host. If not set, the file will not be transferred. - accelize_drm_conf_dst: Destination path for the
conf.json
file on the target host. Default is/etc/accelize_drm/conf.json
.
Source Installation, Test & Build Requirements:
Settings for building and testing Accelize DRM. Mainly for developers.
- accelize_drm_git_clone: If set, it will Git clone Accelize DRM to the specified path. Default is
''
. - accelize_drm_git_ref: Specifies which branch, tag, or commit ID to use for installation and cloning. Default is
master
. - accelize_drm_test: If set to
true
, it installs test dependencies. Default isfalse
. - accelize_drm_coverage: If set to
true
, it installs coverage dependencies. Default isfalse
. - accelize_drm_abi_check: If set to
true
, it installs ABI check dependencies. Default isfalse
. - accelize_drm_build: If set to
true
, it installs build dependencies. Default isfalse
. - accelize_drm_build_doc: If set to
true
, it installs documentation build dependencies. Default isfalse
. - accelize_drm_build_package: If set to
true
, it installs package build and signature dependencies. Default isfalse
. - accelize_drm_no_install: If set to
true
, it does not install Accelize DRM, only prepares the environment. Default isfalse
.
Example Playbook
- hosts: servers
become: true
roles:
- role: accelize.accelize_drm
Dependencies
None.
Enhancements
How to Modify a Role?
If you need to update some tasks (e.g., installing a new Python library):
- Open the
main.yml
file in the tasks folder where all tasks are listed. - Find the task you want to change.
- Update the necessary part of the task and save the file.
- Commit and push your changes to Git.
- Add a version tag (X.Y.Z) to trigger the automatic job that publishes the new version to Ansible Galaxy.
- The changes will be applied once the new version appears in Ansible Galaxy.
How to Add a New Role?
- Open the
main.yml
file in the tasks folder. - Create a new role by copying an existing one that suits your needs and modify it.
- Save, commit, and push your changes to Git.
- Add a version tag (X.Y.Z) to trigger the automatic job that publishes the new version to Ansible Galaxy.
- Your changes will be effective once the new version is on Ansible Galaxy.
License
Apache 2.0
Author Information
This role is provided by Accelize.