sap.sap_operations.prepare_container role – Prepare container to run content from sap.sap_operations
Note
This role is part of the sap.sap_operations collection.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it use: ansible-galaxy collection install sap.sap_operations
.
To use it in a playbook, specify: sap.sap_operations.prepare_container
.
Entry point __examples__
– Playbook examples
Synopsis
name: Run role prepare_container in assert mode
ansible.builtin.include_role:
name: sap.sap_operations.prepare_container
vars:
prepare_container_assert: true
Entry point __license__
– License
Synopsis
GPL-3.0-only
Entry point main
– Prepare container to run content from sap.sap_operations
Synopsis
Role ensures that all collection sap.sap_operations prerequisites are met on containers.
Role works in two modes - normal and assert.
In normal mode it ensures that all prerequisites for containers to run content from collection sap.sap_operations are met.
In assert mode role will fail if any of tasks required are not completed
In assert mode role will fail if no repos are enabled
Role will only collect facts if OS distribution is not RedHat.
Role assumes that container is registered with subscription manager to install packages
Role will fail if not executed by root user, this is because sudo is not installed in containers
Parameters
Parameter |
Comments |
---|---|
If set to True role will run in assert mode Is set to False (default) will ensure that all prerequisites are met Choices:
|