New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warning: 'include' is deprecated, 'import_tasks' or 'include_tasks' should be used #304

Closed
MacDada opened this Issue Nov 10, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@MacDada

MacDada commented Nov 10, 2017

Vagrant has automatically selected the compatibility mode '2.0'
according to the Ansible version installed (2.4.1.0).
    default: Running ansible-playbook...
[DEPRECATION WARNING]: The use of 'include' for tasks has been deprecated. Use 
'import_tasks' for static inclusions or 'include_tasks' for dynamic inclusions.
 This feature will be removed in a future release. Deprecation warnings can be 
disabled by setting deprecation_warnings=False in ansible.cfg.
[DEPRECATION WARNING]: include is kept for backwards compatibility but usage is
 discouraged. The module documentation details page may explain more about this
 rationale.. This feature will be removed in a future release. Deprecation 
warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.

@MacDada MacDada changed the title from warning: 'include' is deprecated, 'include_tasks' should be used to warning: 'include' is deprecated, 'import_tasks' or 'include_tasks' should be used Nov 10, 2017

@MacDada

This comment has been minimized.

Show comment
Hide comment
@MacDada

MacDada Nov 10, 2017

I'm not Ansible expert and I don't really know the difference between import_tasks and include_tasks.

http://docs.ansible.com/ansible/latest/playbooks_reuse_includes.html#including-and-importing-task-files

Anyway, changing include: to import_tasks: worked for me.

MacDada commented Nov 10, 2017

I'm not Ansible expert and I don't really know the difference between import_tasks and include_tasks.

http://docs.ansible.com/ansible/latest/playbooks_reuse_includes.html#including-and-importing-task-files

Anyway, changing include: to import_tasks: worked for me.

@debo

This comment has been minimized.

Show comment
Hide comment
@debo

debo Mar 16, 2018

Member

Hi @MacDada thanks for reporting the error. I do apologies if it took this long to get sorted but time to dedicate to Phansible it's been a bit scarse. I'm now back to actively work on it and the issue you highlighted was fixed in this commit. Keep in mind that because of the new architecture of Phansible this type of issues are often role specific so if you are to encounter further problems, and I'm sure you will, it would be great if you could file the bug against the proper role repo.

I'm going to close this issue as resolved but feel free to reply and keep the conversation going.

Thanks again for you contribution, I really appreciate it.

Member

debo commented Mar 16, 2018

Hi @MacDada thanks for reporting the error. I do apologies if it took this long to get sorted but time to dedicate to Phansible it's been a bit scarse. I'm now back to actively work on it and the issue you highlighted was fixed in this commit. Keep in mind that because of the new architecture of Phansible this type of issues are often role specific so if you are to encounter further problems, and I'm sure you will, it would be great if you could file the bug against the proper role repo.

I'm going to close this issue as resolved but feel free to reply and keep the conversation going.

Thanks again for you contribution, I really appreciate it.

@debo debo self-assigned this Mar 16, 2018

@debo debo closed this Mar 16, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment