Skip to content

--no-offline argument doesn't install roles and collections when "offline: true" is set in .ansible-lint file #4845

@bschonec

Description

@bschonec
Summary

ansible-lint --no-offline
doesn't install the roles and collections when the ./.ansible-lint file has

offline: true

is set.

Issue Type
  • Bug Report
OS / ENVIRONMENT
ansible-lint 25.9.0 using ansible-core:2.19.2 ansible-compat:25.8.1 ruamel-yaml:0.18.15 ruamel-yaml-clib:0.2.12
A new release of ansible-lint is available: 25.9.0 → 25.11.0[/] Upgrade by running: pip3 install --user --upgrade ansible-lint
<!--- Provide all relevant information below, e.g. target OS versions, network
 device firmware, etc. -->

  • ansible installation method: one of source, pip, OS package
  • ansible-lint installation method: one of source, pip, OS package
STEPS TO REPRODUCE

ensure ./ansible-lint contains:

offline: true

At command line:

ansible-lint --no-offline .

Desired Behavior

Roles and collections should be installed in ./ansible directory.

Actual Behavior
./ansible/roles
./ansible/collections
./ansible/modules

directories are created but they are devoid of roles/collections.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugnewTriage required

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions