mschuchard / linter-ansible-linting

ansible-lint linter for pulsar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unable to parse /etc/ansible/hosts as an inventory source

MarkJamesHub opened this issue · comments

Folder Structure...

  1. //Product1
    1. /group_vars
    2. /inventory/hosts
    3. /roles
    4. create1.yml
  2. //Product2
    1. /group_vars
    2. /inventory/hosts
    3. /roles
    4. create2.yml

When linting the create_.yml files it does not seem to recognise my folder structure and defaults to my local host file system i.e. /etc/ansible/hosts as an inventory source

Is there a way to make linter understand my Folder Structure (I have literally dozens of Product folders)

I believe this is something that is set in an ansible config local to the playbook. If you execute ansible-lint via the CLI on the create?.yml, do you have the same issue?

No updates in a year; closing.