Hi,
> On 18.09.2021, at 14:28, Adam <
adam.f...@gmail.com> wrote:
>
> SO this is what happens when I check if the module exists when logged in as a normal user:
>
>
> [WARNING]: module community.mysql.mysql_query not found in:
> /home/normaluser/.ansible/plugins/modules:/usr/share/ansible/plugins/modules:/usr/lib/python3.6/site-
> packages/ansible/modules
>
> If I run that same check when logged in as root, it appears like I get the appropriate output with mysql information.
SO, you installed the collection as root, probably into /root/.ansible/plugins/modules
unprivileged normaluser does not have /root/.ansible/plugins/modules in the
$ANSIBLE_COLLECTIONS_PATHS
one solution would be: install it again as normaluser
>
> But I still get the error when running the syntax check:
>
> ERROR! 'community.mysql.mysql_query' is not a valid attribute for a Play
>
> The error appears to be in '/etc/ansible/playbooks/get_trunk_name.yml': line 12, column 3, but may
> be elsewhere in the file depending on the exact syntax problem.
>
> The offending line appears to be:
>
>
> - name: get trunk names
> ^ here
SO, syntax went wrong? Wrong indentation?
```
- name: get trunk names
community.mysql.mysql_query:
```
it should be (note the spaces)
```
- name: get trunk names
community.mysql.mysql_query:
```
Best Regards, Markus