realtime # vs extension mode, really fast
quick # from the CLI
full # for CI
galaxy? # is this seperate?
ansible-galaxy install
commands … – controled by offline modeWe might want to avoid adding one option for each of these, as it would explode the testing complexity.
# config
#
flags:
isolated: true
# should be false for CI mode
#
editable: true # unless CI is detected / limited to a recognized role/collection
install-requirements: true
# by default, look in a ./collections directory
# if a rqwuirements file is found in ./collections
# install the collections in ./collections
# this feature will install collecitons and roles
# but not their python or system package dependancies
# this should be documented, and suggest an EE for a full dep build
update-schemas: true
version-check: true # not for rpms
# reserved for future
telemetry: false # true for github-action
saas: false # or wisdom?
e/E
--feature=!telemetry,-editable
./collection
Question: If running ansible-lint in a directory that appears to be a collection, how do we ensure that collection can be used by ansible-core? Do we symlink the current working directory directories into a collections/ansible-collections/directory/name/namespace and inject the current working directory into the ansible-core collection path for the user?
Out of the box without any additional configuration, I want
I want to be able to opt into telemetry
I want the option for ansible-lint to install collections in the current environment based on the presense of a project directory requirements.yml file within a playbook adjacent collection directory
I want the option to disable automatic schema updates
I want the option to disable newer version checking
I want the ability to disable errors thrown by "plugin not found"
I want ansible-lint to recognise I am developing a collection and symlink my workspace contents into a {workspace}/collections/ansible-collections/directory/name/namespace so ansible-lint paths are "clickable" <= this is probably the default behaviour of the extension using the "editable" mode
I do not want ansible-lint to try and build a collection if project folder is determined to be a collection