Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-28198

Ansible variables under vars/main.yml in a role directory are not loaded when the role is imported

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • 0
    • Rocket

      Description of problem:

       

      How reproducible:

      Always

      Is this issue a regression from an earlier version:

      No

      Steps to Reproduce:

      1. Create a role "ansible-galaxy init --init-path /etc/ansible/roles/ test_role"

      2. Add a few variables for this role in /etc/ansible/roles/ test_role/vars/main.yml

      3. Create a simple task for this role in  /etc/ansible/roles/ test_role/tasks/main.yml

      4. Import this role to Satellite

      Actual behavior:
      Ansible variables under vars/main.yml in a role directory are not loaded

      Expected behavior:
      Ansible variables under vars/main.yml in a role directory should be loaded

      Business Impact / Additional info:

      Ansible variables under defaults/main.yml in a role directory gets loaded, but not from vars/main.yml

              Unassigned Unassigned
              gtalreja@redhat.com Gaurav Talreja
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: