14 lines
235 B
Bash
14 lines
235 B
Bash
|
#!/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
|