Documentation

    PLEASE NOTE: This document applies to v2.6 version and not to the latest stable release v2.9

    Documentation for other releases can be found by using the version selector in the left bottom of any doc page.

    include

    This module include tasks to be executed from another file.

    Attributes

    check_mode:
      support: none
    

    Parameters

    Parameter Required Type Values Description
    file true string   Parse target file and execute tasks in the current context.

    Example

    - include: foo.rh
    
    - include: "{{ rash.dir }}/bar.rh"
    
    - include: "{{ env.HOSTNAME }}.rh"