As the action is currently not supported a feature request has been raised internally. The request ID: VCF-I-1909 can be used to follow up on this with support.
Workaround:
To workaround the issue you can remove the Ansible component from the parent template object and perform an iterative update against the deployment, this will remove the Ansible component from the affected deployment:
1. Snapshot Aria Automation appliances as a best practice precaution.
2. Navigate to Cloud Assembly > Design > Templates - Open the relevant template.
3. Select the Ansible resource and delete.
4. Select deploy
5. Under deployment type - Select the dropdown option - Select Update an existing deployment.
6. Select the specific deployment
7. Select Next - on the Plan window you should see confirmation the Ansible Resource is to be deleted.
8. Deploy