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
|
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
|
||||||
|
|
|
@ -24,8 +24,7 @@ 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
|
||||||
|
|
Loading…
Add table
Reference in a new issue