ERROR given,
couldn't resolve module/action 'community.mysql.mysql_query'. This often indicates a misspelling, missing collection, or incorrect module path.
As first question is it available in freebsd ?
Finishes without errors
But code maria.yml,
Spits out
couldn't resolve module/action 'community.mysql.mysql_query'. This often indicates a misspelling, missing collection, or incorrect module path.
As first question is it available in freebsd ?
Code:
ansible-galaxy collection install community.mysql
But code maria.yml,
Code:
- name: get maria
community.mysql.mysql_query:
login_db: "{{db_name}}"
login_user: "{{db_user}}"
login_password: "{{db_password}}"
query: SELECT * FROM "{{db_table}}"
register: queryresult
Code:
ERROR! couldn't resolve module/action 'community.mysql.mysql_query'. This often indicates a misspelling, missing collection, or incorrect module path.
The error appears to be in '/usr/home/x/Root/Db/maria/ansible_error/maria.yml': line 18, column 7, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: get maria
^ here