From 7907003ec64769283c5ec299d3dd76c1b664c9ab Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 19 Mar 2019 18:53:42 +0100 Subject: [PATCH] library/roles/create_new_role_stub: Script that creates a role directory tree. --- create_new_role_stub | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 create_new_role_stub diff --git a/create_new_role_stub b/create_new_role_stub new file mode 100755 index 0000000..25870ae --- /dev/null +++ b/create_new_role_stub @@ -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 +