library/roles/create_new_role_stub: Script that creates a role directory tree.

This commit is contained in:
Andrea Dell'Amico 2019-03-19 18:53:42 +01:00
parent adccda1cf7
commit 7907003ec6
1 changed files with 8 additions and 0 deletions

8
create_new_role_stub Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
new_role=$1
mkdir "$new_role"
mkdir -p "${new_role}"/{defaults,tasks,files,templates,vars,meta}
touch "${new_role}"/{defaults,tasks,vars,meta}/main.yml