ansible-roles/library/roles/create_new_role_stub

9 lines
185 B
Bash
Executable File

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