If ansible-container has a path to a role directory that is nested (e.g., roles/some/path/to/role/) it ends up trying to use a layer name that is invalid in Docker.
Docker layer names may not contain characters outside the range [a-zA-Z0-9_.-].
This patch replaces all characters outside the allowed range with underscores.
ISSUE TYPE
SUMMARY
If ansible-container has a path to a role directory that is nested (e.g., roles/some/path/to/role/) it ends up trying to use a layer name that is invalid in Docker.
Docker layer names may not contain characters outside the range [a-zA-Z0-9_.-].
This patch replaces all characters outside the allowed range with underscores.