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

RH294-238: 7.11 Simplifying Playbooks with Roles and Ansible Content Collections LAB

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • RH294 - RHEL9.0-en-2-20221117
    • RH294
    • None
    • 7
    • en-US (English)

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

      Description: Could we use the fully qualified collection path for the include_role module? Just to have consistency.

      Also, we could use 'role install', 'role init' with the ansible-galaxy command.

      Under step 6.2 in this LAB, we spell out all the details of the infra.apache role all over again when we configure it as a dependency. The following would be enough, since we have already checked out the content from git:

      dependencies:
        - role: infra.apache
      

      At least this is the style shown in the online documentation:
      [https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_reuse_roles.html#using-role-dependencies
      ]

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

                Created:
                Updated: