14 lines
235 B
Bash
Executable File
14 lines
235 B
Bash
Executable File
#!/usr/bin/bash
|
|
|
|
if [ $# -ne 1 ]; then
|
|
echo "$0 <role_name>"
|
|
fi
|
|
|
|
ROLE="${1}"
|
|
|
|
mkdir roles/${ROLE}
|
|
|
|
mkdir roles/${ROLE}/{defaults,handlers,tasks,templates,files}
|
|
|
|
touch roles/${ROLE}/{defaults,handlers,tasks,templates,files}/main.yml
|