feat(tooling): added role skeleton for new ansible roles generated using Task
This commit is contained in:
parent
31aaf10a5c
commit
b6695cf49c
9 changed files with 54 additions and 1 deletions
|
@ -125,7 +125,7 @@ tasks:
|
|||
COLLECTION_NAME: '{{default "nullified.infrastructure" .COLLECTION_NAME}}'
|
||||
ROLE_NAME: '{{index .MATCH 0}}'
|
||||
cmds:
|
||||
- '{{.PYTHON_WRAPPER}} ansible-galaxy role init {{.ROLE_NAME}} --init-path {{.COLLECTIONS_DIR}}/{{.COLLECTION_NAME | replace "." "/"}}/roles'
|
||||
- '{{.PYTHON_WRAPPER}} ansible-galaxy role init {{.ROLE_NAME}} --role-skeleton ./templates/ansible_role_skeleton --init-path {{.COLLECTIONS_DIR}}/{{.COLLECTION_NAME | replace "." "/"}}/roles'
|
||||
|
||||
ansible:new:collection:*:
|
||||
desc: create a new collection
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue