Ansible Module include tasks: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(2 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>=
=<tt>when</tt>=
<code>include_tasks</code> accepts a <code>when:</code> clause. For more details, see: {{Internal|Ansible_Concepts#when_-_Conditional_Task_Execution|when - Conditional Task Execution}}
<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>=
=Difference between <tt>include_tasks</tt> and <tt>import_tasks</tt>=
{{Internal|Ansible Difference between include and import|Difference between include and import}}
{{Internal|Ansible Difference between include and import|Difference between include and import}}

Latest revision as of 05:25, 7 July 2021