Skip to content

Not found inventory, roles path #13

Open
@guard43ru

Description

@guard43ru

Hello, I have some problems with plugin:

Error Ansible: the role 'nodejs' was not found in /Users/guard/Documents/ansible/server/playbooks/roles:/Users/guard/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/Users/guard/Documents/ansible/server/playbooks
Warning Ansible: No inventory was parsed, only implicit localhost is available.
Warning Ansible: provided hosts list is empty, only localhost is available. Note that.

As I understand, plugin don't see my ansible.cfg
Ansible works perfectly (see all roles, hosts)
ansible-lint, ansible-playbook --syntax-check launched from the shell successfully works

project tree

.
├── README.md
├── ansible.cfg
├── env
│   ├── dev
│   │   ├── group_vars
│   │   ├── host_vars
│   │   └── hosts
│   └── prod
│       ├── group_vars
│       ├── host_vars
│       └── hosts
├── playbooks
│   ├── ...
│   ├── nodejs.yml
└── roles
    ├── ...
    └── nodejs
        ├── defaults
        └── tasks

ansible.cfg

[defaults]
inventory = env/dev/hosts
roles_path = roles

my environment

macos: 10.15.1
ansible: 2.9.14
atom: 1.52.0
language-ansible: 0.2.2
linter: 3.1.1
linter-ansible-syntax: 1.3.0

all other plugins disabled for debug

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions