Not all Ansible templates displayed as Ansible automations
An increase is required to the default pagination size of the Ansible® REST framework.
Problem
If there are more than 25 job templates or more than 25 workflow job templates defined in Ansible Automation Platform Controller, then only a subset of the job templates and/or workflow job templates are listed as Ansible automations on the Automations page.
Cause
By default, the Ansible server has pagination enabled that limits the number of templates that are returned to 25 items per REST API call. Clients can actively query for more than those 25 items (up to MAX_PAGE_SIZE). Runbook Automation currently does not use this feature.
Resolution
As an administrator of the Ansible server, increase the default pagination size of the Ansible REST framework to a value that is at least as high as the maximum amount of job templates or workflow job templates that exist in the installation. For example, to set the default page size to
500
:- Edit or create
/etc/tower/conf.d/rest_framework.py
(or edit some other*.py
file in that directory) and add the lineREST_FRAMEWORK['PAGE_SIZE'] = 500
. - Restart the Ansible Automation Controller service:
automation-controller-service restart
.