--- - name: Use module and filter plugin from local collection hosts: localhost tasks: - name: Use module from local collection testns.test_collection.test_module_2: - name: Use filter from local collection ansible.builtin.assert: that: - 1 | testns.test_collection.test_filter(2) == '1:2'