Skip to content

Commit

Permalink
lsr_role2collection.py - Converting "linux-system-roles." with "NAMES…
Browse files Browse the repository at this point in the history
…PACE.COLLECTION_NAME." in

playbook files in the collection converted playbooks directory.
  • Loading branch information
nhosoi committed Oct 2, 2020
1 parent 7100d25 commit 40ba1dd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lsr_role2collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(":"))
Expand Down

0 comments on commit 40ba1dd

Please sign in to comment.