Change 'content_root' to 'collections_path' and make 'ansible_collections' implicit
Fixes: #239
From CHANGELOG.rst
WARNING: The config file items and cli options for specifying install paths
have changed and may break existing configs and scripts.
The config item content_root has been replaced with collections_path
The config item global_content_root has been replaced with global_collections_path
The new collections_path value no longer needs to end with ansible_collections
The new global_collections_path value no longer needs to end with ansible_collections
The new collections_path defaults to ~/.ansible/collections.
Note that this replaces the previous content_root config item that
defaulted to ~/.ansible/collections/ansible_collections
The new global_collections_path defaults to /usr/share/ansible/collections.
Note that this replaces the previous global_content_root config item that
defaulted to /usr/share/ansible/collections/ansible_collections
mazer install with default collections_path (~/.ansible/collections) will
still install to ~/.ansible/collections/ansible_collections, but install
will add the require trailing 'ansible_collections' automatically.
mazer install --global with default global_collections_path
(/usr/share/ansible/collections) will still install to
usr/share/ansible/collections/ansible_collections, but
mazer install --global will add the require trailing
ansible_collections automatically.
ISSUE TYPE
Bugfix Pull Request
MAZER VERSION
name = mazer
version = 0.4.0
config_file = /home/adrian/.ansible/mazer.yml
uname = Linux, newswoop, 5.0.5-200.fc29.x86_64, #1 SMP Wed Mar 27 20:58:04 UTC 2019, x86_64
executable_location = /home/adrian/venvs/mazer_0.4.0_py36/bin/mazer
python_version = 3.6.8 (default, Jan 27 2019, 09:00:23) [GCC 8.2.1 20181215 (Red Hat 8.2.1-6)]
python_executable = /home/adrian/venvs/mazer_0.4.0_py36/bin/python
SUMMARY
Change 'content_root' to 'collections_path' and make 'ansible_collections' implicit Fixes: #239
From CHANGELOG.rst
content_root
has been replaced withcollections_path
global_content_root
has been replaced withglobal_collections_path
collections_path
value no longer needs to end withansible_collections
global_collections_path
value no longer needs to end withansible_collections
collections_path
defaults to~/.ansible/collections
. Note that this replaces the previouscontent_root
config item that defaulted to~/.ansible/collections/ansible_collections
global_collections_path
defaults to/usr/share/ansible/collections
. Note that this replaces the previousglobal_content_root
config item that defaulted to/usr/share/ansible/collections/ansible_collections
mazer install
with defaultcollections_path
(~/.ansible/collections
) will still install to~/.ansible/collections/ansible_collections
, but install will add the require trailing 'ansible_collections' automatically.mazer install --global
with defaultglobal_collections_path
(/usr/share/ansible/collections
) will still install tousr/share/ansible/collections/ansible_collections
, butmazer install --global
will add the require trailingansible_collections
automatically.ISSUE TYPE
MAZER VERSION