Couldn’t resolve module/action ‘ini_file’. This often indicates a misspelling, missing collection, or incorrect module path

Posted on

I have the playbook failing with the error "Couldn’t resolve module/action ‘ini_file’. This often indicates a misspelling, missing collection, or incorrect module path"
I checked online and added "community.general.ini_file" but had the same error.
I also checked my system and had this output " # /root/.ansible/collections/ansible_collections
Collection Version


ansible.posix 1.5.4
community.general 7.3.0

/usr/share/ansible/collections/ansible_collections

Collection Version


community.general 7.3.0"

I am not sure if ini_file module has been replaced or updated to a different module.
Thanks for any help

Responses