This document describes how to enable feature flags in Ansible Automation Platform (AAP) for different installation types.
For OpenShift installations, you need to modify the AnsibleAutomationPlatform custom resource. Add the following to the spec section:
spec:
feature_flags:
FEATURE_POLICY_AS_CODE_ENABLED: TrueAfter applying the changes, wait for the operator to complete the update process. The operator will automatically handle the necessary service restarts and configuration updates.
For RPM-based installations, modify your inventory file used by the installer and add:
feature_flags:
FEATURE_POLICY_AS_CODE_ENABLED: TrueAfter modifying the inventory file, you will need to rerun the installer to apply the changes.
For containerized installations, modify your inventory file used by the installer and add:
feature_flags:
FEATURE_POLICY_AS_CODE_ENABLED: TrueAfter modifying the inventory file, you will need to rerun the installer to apply the changes.
To verify that the feature flag is enabled, you can check the feature flags state endpoint:
https://<your-aap-host>/api/controller/v2/feature_flags_state/
This endpoint will return a JSON response containing the current state of all feature flags, including FEATURE_POLICY_AS_CODE_ENABLED.