Add a arg based cookbook for ansible

This commit is contained in:
ViViDboarder 2016-01-27 15:08:44 -08:00
parent 63162d05b3
commit 7ce308e8c2
3 changed files with 34 additions and 0 deletions

26
ansible-cookbook Executable file
View File

@ -0,0 +1,26 @@
#!/bin/bash
# Initialization - DO NOT REMOVE
. helpers/initialize
##############################################################
### Customizations start here ################################
##############################################################
# Barebones cookbook that accepts args to run single recipes
# Get current directory for future use in links
cd $(dirname $0)
PROJECT_DIR=$(pwd)
detect_package_manager
init_paths_and_vars
# Get params
COOKBOOK_NAME=$1
RECIPIE=$2
# SET_INSTALLED=$3
recipe $RECIPIE
# set_installed $SET_INSTALLED

View File

@ -0,0 +1,4 @@
#! /bin/bash
# Simple recipe for debugging
echo "Running default"

View File

@ -0,0 +1,4 @@
#! /bin/bash
# Simple recipe for debugging
echo "Running no-sudo"