diff --git a/src/ansible_compat/runtime.py b/src/ansible_compat/runtime.py index 476cec3f..6f74361b 100644 --- a/src/ansible_compat/runtime.py +++ b/src/ansible_compat/runtime.py @@ -645,7 +645,7 @@ def prepare_environment( # noqa: C901 f"{destination}/ansible_collections/{colpath_from_path(Path.cwd())}", ) if colpath.is_symlink(): - if os.path.realpath(colpath) == str(Path.cwd()): + if Path.resolve(colpath) == Path.cwd(): _logger.warning( "Found symlinked collection, skipping its installation.", ) diff --git a/test/collections/acme.goodies/molecule/default/converge.yml b/test/collections/acme.goodies/molecule/default/converge.yml index b85e064e..9c5060e2 100644 --- a/test/collections/acme.goodies/molecule/default/converge.yml +++ b/test/collections/acme.goodies/molecule/default/converge.yml @@ -3,5 +3,5 @@ hosts: localhost tasks: - name: "Include sample role from current collection" - include_role: - name: acme.goodies.baz + ansible.builtin.include_role: + name: baz