We want to keep the configuration of two Ansible Automation Platform (AAP) v2 clusters in sync. For this we want to use the Ansible Collection ansible.controller
. In a playbook, the export
module should be used to selectively export e.g. job_templates
and import them to the AAP test cluster using the import
module. But only with templates that start with e.g. LNX_
.
We've tried using *
as a wildcard, but it doesn't work.
Is there a way to use wildcards at this point, or another clever solution?
- name: "Get all from {{ vault_controller_host_prd_aap23 }}"
export:
controller_host: "{{ vault_controller_host_prd_aap23 }}"
validate_certs: False
controller_username: "{{ vault_controller_host_prd_aap23_username }}"
controller_password: "{{ vault_controller_host_prd_aap23_password }}"
projects: "LNX*"
job_templates: "LNX*"
credentials: "LNX*"
register: command_output