misc: Add role command to make file
This commit is contained in:
parent
8376da3e6b
commit
5a4b0d453c
2 changed files with 6 additions and 3 deletions
4
Makefile
4
Makefile
|
@ -10,3 +10,7 @@ lint: ## Lint ansible files with ansible-lint
|
|||
|
||||
install: ## Install or update requirements
|
||||
ansible-galaxy install -f -r requirements.yml
|
||||
|
||||
role: ## Create a new role based on the default skeleton
|
||||
@read -p "Enter role name: " name; \
|
||||
ansible-galaxy role init --init-path ./roles $$name
|
||||
|
|
|
@ -24,12 +24,11 @@ When creating new roles, you can set up an initial folder structure with Ansible
|
|||
For more information check out the Ansible documentation [here](https://docs.ansible.com/ansible/devel/galaxy/dev_guide.html#using-a-custom-role-skeleton)
|
||||
|
||||
```
|
||||
cd roles
|
||||
ansible-galaxy init ROLE_NAME
|
||||
make role
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
This repository is licensed under GPL-3 and many roles are derived from the awesome [infrastructure](https://git.shivering-isles.com/shivering-isles/infrastructure) repository published by [Sheogorath](https://shivering-isles.com).
|
||||
|
||||
Thank you, and so I hope this can be as useful to someone else as Sheogorath's repository was to me.
|
||||
Thank you, and so I hope this can be as useful to someone else as Sheogorath's repository was to me.
|
||||
|
|
Loading…
Add table
Reference in a new issue