misc: Add role command to make file

This commit is contained in:
saibotk 2021-11-07 16:06:38 +01:00
parent 8376da3e6b
commit 5a4b0d453c
Signed by: saibotk
GPG key ID: 67585F0065E261D5
2 changed files with 6 additions and 3 deletions

View file

@ -10,3 +10,7 @@ lint: ## Lint ansible files with ansible-lint
install: ## Install or update requirements install: ## Install or update requirements
ansible-galaxy install -f -r requirements.yml 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

View file

@ -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) 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 make role
ansible-galaxy init ROLE_NAME
``` ```
## License ## 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). 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.