Importing and exporting objects into the controller
With objects created inside of the controller, it is important to be able to export and import those objects. This can be used to back up and restore some aspects of the Automation controller as well. However, this method has limitations on what it can export.
I’d personally recommend using Configuration as Code (CaC) to manage objects on Ansible Automation Platform. Users with existing deployments need a way to move objects to definition files in order to move to a CaC model. Using the export methods described in this section facilitates the move to CaC.
The modules used to export require an underlying Python module, which can be installed using the following command:
$ pip install awxkit
This allows for either the awx.awx
or ansible.controller
collection import
and export
modules to act on objects from the API.
Currently, this is limited to the following controller objects:
applications
credential_types...