Move roles into a standard directory layout

This change adopts the same directory layout as tripleo-ansible[1]
in preparation for the metalsmith repo containing ansible plugins such
as modules.

Like in tripleo-ansible, the roles directory becomes a symlink to the
new roles location so that ansible can discover the role without
having to install.

[1] https://opendev.org/openstack/tripleo-ansible/src/branch/master/tripleo_ansible

Change-Id: I34114e653a0714cb5991672af1192e9fad95ea6b
This commit is contained in:
Steve Baker 2020-06-24 13:15:01 +12:00
parent 72072cd509
commit 53636ba03c
8 changed files with 4 additions and 3 deletions

View File

@ -1 +1 @@
.. include:: ../../../roles/metalsmith_deployment/README.rst
.. include:: ../../../metalsmith_ansible/roles/metalsmith_deployment/README.rst

1
roles Symbolic link
View File

@ -0,0 +1 @@
metalsmith_ansible/roles

View File

@ -26,7 +26,7 @@ packages =
metalsmith
data_files =
share/ansible/roles/metalsmith_deployment = roles/metalsmith_deployment/*
share/ansible/roles/ = metalsmith_ansible/roles/*
[entry_points]
console_scripts =

View File

@ -44,7 +44,7 @@ passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY \
[testenv:pep8]
commands =
flake8 metalsmith
doc8 README.rst doc/source roles
doc8 README.rst doc/source metalsmith_ansible/roles
[testenv:docs]
deps =