geerlingguy / ansible-role-mysql

Ansible Role - MySQL
https://galaxy.ansible.com/geerlingguy/mysql/
MIT License
1.05k stars 861 forks source link

ERROR! 'include_tasks' is not a valid attribute for a Play #508

Closed gp-Airee closed 1 year ago

gp-Airee commented 1 year ago
ansible 2.10.8
  config file = None
  configured module search path = ['/home/ansible/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3/dist-packages/ansible
  executable location = /usr/bin/ansible
  python version = 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110]
ERROR! 'include_tasks' is not a valid attribute for a Play

The error appears to be in '/home/ansible/observability/mysql/tasks/main.yml': line 3, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

# Variable configuration.
- include_tasks: variables.yml
  ^ here
geerlingguy commented 1 year ago

What is the ansible-playbook command you are running? Are you including this role as part of a larger playbook?

gp-Airee commented 1 year ago

Hi Jeff, just a playbook importing other playbooks. It has the same result running the specific roles main.yml.

On Mon, Dec 5, 2022 at 9:18 PM, Jeff Geerling @.***> wrote:

What is the ansible-playbook command you are running? Are you including this role as part of a larger playbook?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

stale[bot] commented 1 year ago

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

github-actions[bot] commented 1 year ago

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.