diff --git a/lsr_role2collection.py b/lsr_role2collection.py index 00829ba1..6fec527d 100644 --- a/lsr_role2collection.py +++ b/lsr_role2collection.py @@ -892,6 +892,11 @@ def add_rolename(filename, rolename): print(f"Copying extra {extra} to {dest}") copy2(extra, dest, follow_symlinks=False) +dest = dest_path / "playbooks" / role +if dest.is_dir(): + lsrxfrm = LSRTransformer(dest, False, role, LSRFileTransformer) + lsrxfrm.run() + default_collections_paths = "~/.ansible/collections:/usr/share/ansible/collections" default_collections_paths_list = list( map(os.path.expanduser, default_collections_paths.split(":"))