Uploaded image for project: 'Automation Hub'
  1. Automation Hub
  2. AAH-51

Collection modules in roles cause ansible-lint exception

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • 4.3.0b3, 2.0
    • None
    • Backend
    • AAH Sprint 4, AAH Sprint 5

      SUMMARY

      Noticed in import logs that ansible-lint was encountering an exception and could not run over a few collections. I pulled down the collections locally and ansible-lint was able to run successfully over the collections.

      repos for 2 collections that could not run:
      https://github.com/IBM/ansible-for-i/tree/1.0.1
      https://github.com/IBM/ansible-power-aix

      STEPS TO REPRODUCE

      1. upload collection to ah
      2. review import logs

      EXPECTED RESULTS

      ansible-lint sucessfully runs

      ACTUAL RESULTS

      ansible-lint does not run

      Linting role power_aix_bootstrap via ansible-lint...
      ERROR: CRITICAL Couldn't parse task at /tmp/tmpmgx3gkpj/ansible_collections/ibm/power_aix/roles/power_aix_bootstrap/tasks/python_install.yml:13 (couldn't resolve module/action 'ibm.power_aix.filesystem'. This often indicates a misspelling, missing collection, or incorrect module path.)
      ERROR: { 'ibm.power_aix.filesystem': { '__file__': '/tmp/tmpmgx3gkpj/ansible_collections/ibm/power_aix/roles/power_aix_bootstrap/tasks/python_install.yml',
      ERROR:                                 '__line__': 15,
      ERROR:                                 'attributes': 'size=+100M',
      ERROR:                                 'filesystem': '/var',
      ERROR:                                 'state': 'present'},
      ERROR:   'name': 'Expand /var target directory (+100M)'}
      Loading module nim_vios_hc
      

            hhummel@redhat.com Henderson Hummel (Inactive)
            chousekn Chris Houseknecht (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: