Closed popstas closed 4 years ago
@popstas - That seems like it would be a bug upstream in Ansible. Also, are you saying that - include: tasks/build-makefile.yml
worked, and - include: build-makefile.yml
didn't? Or vice-versa?
See: https://github.com/ansible/ansible/issues/21328 — I'm inclined to close this since I don't want to change (and potentially break) how this role works on a modular level. Instead, I'd recommend posting in that upstream Ansible issue and testing any potential fixes that result from that thread.
- include: tasks/build-makefile.yml
- not worked
- include: build-makefile.yml
- worked
Thank you, agreed, ansible/ansible#21328 seems same bug.
Anyway, I'm using about 10 your roles and don't seen - include: tasks/...
in other your main.yml
.
I confirm
- include: tasks/build-makefile.yml - not worked
- include: build-makefile.yml - worked
ansible 2.4.1 ansible-lint 3.4.15
[kalebas@mate drupal-vm]$ ansible-lint provisioning/playbook.yml
WARNING: Couldn't open /home/kalebas/Desktop/staff/ansible/drupal-vm/provisioning/roles/geerlingguy.drupal/tasks/tasks/deploy.yml - No such file or directory
WARNING: Couldn't open /home/kalebas/Desktop/staff/ansible/drupal-vm/provisioning/roles/geerlingguy.drupal/tasks/tasks/update.yml - No such file or directory
WARNING: Couldn't open /home/kalebas/Desktop/staff/ansible/drupal-vm/provisioning/roles/geerlingguy.drupal/tasks/tasks/build-makefile.yml - No such file or directory
WARNING: Couldn't open /home/kalebas/Desktop/staff/ansible/drupal-vm/provisioning/roles/geerlingguy.drupal/tasks/tasks/build-composer.yml - No such file or directory
WARNING: Couldn't open /home/kalebas/Desktop/staff/ansible/drupal-vm/provisioning/roles/geerlingguy.drupal/tasks/tasks/build-composer-project.yml - No such file or directory
WARNING: Couldn't open /home/kalebas/Desktop/staff/ansible/drupal-vm/provisioning/roles/geerlingguy.drupal/tasks/tasks/install-site.yml - No such file or directory
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.
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.
Hello, I have role
site
, it executes other roles withinclude_role
. When I addedtasks/drupal.yml
:It fails at task files include:
When I replaced:
to:
Do you want to merge PR with fix?