Create runtime environments for event-driven automation
Decision environments are container images that run Ansible rulebooks. They create a common language for communicating automation dependencies, and give a standard way to build and distribute the automation environment.
You can find the default decision environment in the Ansible Rulebook.
To create your own decision environment, see Install Ansible Builder to create or edit execution environments and Build a custom decision environment for Event-Driven Ansible. Refer to the Related Links section for more details.
Supported event sources and filters
The capabilities of your decision environment are largely defined by the event sources and filters included in your container image. Event sources serve as the foundation for {EDAcontroller}, determining where your rulebooks receive incoming signals.
Selecting compatible sources is critical for successful deployment, as availability can vary—some sources are exclusive to the web-based Event-Driven Ansible controller, while others are optimized for the ansible-rulebook command-line interface (CLI).
When building your decision environments, the de-minimal image provides a curated set of supported plugins designed to ensure stability and compatibility. However, as the ecosystem evolves, plugin namespaces have been updated to reflect their specific collection origins (for example, migrating from ansible.eda to specific cloud collections). To ensure your rulebooks remain functional, verify that your definitions align with the latest plugin naming conventions.
The following table lists the supported plugins in the de-minimal image, including their plugin type and any associated deprecated names:
| Plugin name |
Event filter |
Deprecated name |
|---|---|---|
eda.builtin.dashes_to_underscores |
Event filter |
ansible.eda.dashes_to_underscores |
eda.builtin.event_splitter |
Event filter |
|
eda.builtin.generic |
Event source |
ansible.eda.generic |
eda.builtin.insert_hosts_to_meta |
Event filter |
ansible.eda.insert_hosts_to_meta |
eda.builtin.insert_meta_info |
Event filter |
|
eda.builtin.json_filter |
Event filter |
ansible.eda.json_filter |
eda.builtin.normalize_keys |
Event filter |
ansible.eda.normalize_keys |
eda.builtin.pg_listener |
Event source |
ansible.eda.pg_listener |
eda.builtin.range |
Event source |
ansible.eda.range |
eda.builtin.webhook |
Event source |
ansible.eda.webhook |
The following event sources have been made available in dedicated collections. The original ansible.eda names are currently supported as deprecated plugins in de-minimal, but you must transition to the new de-supported versions to ensure long-term compatibility and overall improvements:
| Event source (in |
Deprecated name (in |
|---|---|
amazon.aws.aws_cloudtrail |
ansible.eda.aws_cloudtrail |
amazon.aws.aws_sqs_queue |
ansible.eda.aws_sqs_queue |
azure.azcollection.azure_service_bus |
ansible.eda.azure_service_bus |
de-minimal image currently provides event sources that are not supported, and will be removed in a future release:
ansible.eda.fileansible.eda.file_watchansible.eda.journaldansible.eda.tickansible.eda.url_check
Build a custom decision environment for Event-Driven Ansible
Customize a decision environment container image to ensure your rulebook activations run with the precise, custom-maintained collections and dependencies they require.
Before you begin
- Ansible Automation Platform > = 2.5
- Event-Driven Ansible
- Ansible Builder > = 3.0
Use the de-minimal decision environment image that matches your version of Ansible Automation Platform to prevent rulebook activation failure. Use registry.redhat.io/<platform-version>/de-minimal-rhel<rhel-version>:latest.
Procedure
Set up a new decision environment
Set up a new decision environment to define the dedicated, containerized runtime (including collections and dependencies) necessary to execute your rulebook activations.
Before you begin
- You have set up a credential, if necessary. For more information, see the Setting up credentials section.
- You have pushed a decision environment image to an image repository or you chose to use the
de-minimalThis content is not included.image located in Content from registry.redhat.io is not included.registry.redhat.io.
Procedure
Results
Your decision environment is now created and can be managed on the Decision Environments page.
After saving the new decision environment, the decision environment’s details page is displayed. From there or the Decision Environments list view, you can edit or delete it.