Uploaded image for project: 'Product Technical Learning'
  1. Product Technical Learning
  2. PTL-5159

RH294-231: 6.3 Including and Importing Files - Using FQCN

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • RH294 - RHEL9.0-en-2-20221117
    • RH294
    • None
    • 6
    • en-US (English)

      URL:
      Reporter RHNID:
      Section: -
      Language: en-US (English)||||||||
      Workaround:

      Description: import_playbook, import_tasks and include_tasks are technically modules in the builtin collection. Shouldn't we use fully qualified collection paths here in this narrative?
      Documentation also suggests the use of the newer 'file' argument:

       - name: Include task list in play
            ansible.builtin.include_tasks:
              file: stuff.yaml
      
       - name: Import task list in play
            ansible.builtin.import_tasks:
              file: stuff.yaml
      

      Interestingly, import_playbook doesn't have this newer style 'file' argument.

              glsbugs-automation@redhat.com PTL - Ansible Team
              zoltanmolnar Zoltan Molnar
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: