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 is true.
  • accelize_drm_devel: If set to true, it installs the development C/C++ headers. Default is false.
  • accelize_repository_channel: Choose the Accelize Repository channel: stable or prerelease. Default is stable.
  • accelize_drm_from_source: If set to true, it installs from source instead of from a package. Default is false.

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 is false.
  • accelize_drm_coverage: If set to true, it installs coverage dependencies. Default is false.
  • accelize_drm_abi_check: If set to true, it installs ABI check dependencies. Default is false.
  • accelize_drm_build: If set to true, it installs build dependencies. Default is false.
  • accelize_drm_build_doc: If set to true, it installs documentation build dependencies. Default is false.
  • accelize_drm_build_package: If set to true, it installs package build and signature dependencies. Default is false.
  • accelize_drm_no_install: If set to true, it does not install Accelize DRM, only prepares the environment. Default is false.

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):

  1. Open the main.yml file in the tasks folder where all tasks are listed.
  2. Find the task you want to change.
  3. Update the necessary part of the task and save the file.
  4. Commit and push your changes to Git.
  5. Add a version tag (X.Y.Z) to trigger the automatic job that publishes the new version to Ansible Galaxy.
  6. The changes will be applied once the new version appears in Ansible Galaxy.

How to Add a New Role?

  1. Open the main.yml file in the tasks folder.
  2. Create a new role by copying an existing one that suits your needs and modify it.
  3. Save, commit, and push your changes to Git.
  4. Add a version tag (X.Y.Z) to trigger the automatic job that publishes the new version to Ansible Galaxy.
  5. 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.

Informazioni sul progetto

This Ansible role install the Accelize DRM library.

Installa
ansible-galaxy install accelize.accelize_drm
Licenza
apache-2.0
Download
7.7k
Proprietario