This would be similar to syntax-check - both generated and shipped playbooks - but run ansible-lint instead, which should perform more thorough testing.
Example on a Fedora without the collections installed:
$ ansible-lint ansible/rhel9-playbook-ism_o.yml
WARNING Listing 1 violation(s) that are fatal
syntax-check[unknown-module]: couldn't resolve module/action 'community.general.ini_file'. This often indicates a misspelling, missing collection, or incorrect module path.
ansible/rhel9-playbook-ism_o.yml:1401:5
# Rule Violation Summary
1 syntax-check profile:min tags:core,unskippable
Failed: 1 failure(s), 0 warning(s) in 1 files processed of 1 encountered.
This would be similar to syntax-check - both generated and shipped playbooks - but run
ansible-lintinstead, which should perform more thorough testing.Example on a Fedora without the collections installed: