ansible-ranma/create-role.sh
2024-12-04 23:49:00 +01:00

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