Ansible Module include tasks: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=External= * https://docs.ansible.com/ansible/latest/collections/ansible/builtin/include_tasks_module.html#ansible-collections-ansible-builtin-include-tasks-module =Internal=...")
 
 
(6 intermediate revisions by the same user not shown)
Line 4: Line 4:
* [[Ansible_Concepts#include_tasks|Ansible Concepts]]
* [[Ansible_Concepts#include_tasks|Ansible Concepts]]
=Overview=
=Overview=
=<tt>when</tt>=
<code>include_tasks</code> accepts a <code>when</code> clause.
<font color=darkgray>TODO: https://docs.ansible.com/ansible/latest/user_guide/playbooks_conditionals.html#conditionals-with-includes</font>
For more details, see: {{Internal|Ansible_Concepts#when_-_Conditional_Task_Execution|when - Conditional Task Execution}}
=Difference between <tt>include_tasks</tt> and <tt>import_tasks</tt>=
{{Internal|Ansible Difference between include and import|Difference between include and import}}

Latest revision as of 05:25, 7 July 2021