mirror of
https://github.com/Crocmagnon/ansible.git
synced 2024-12-04 21:13:38 +01:00
13 lines
305 B
Bash
Executable file
13 lines
305 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -euxo pipefail
|
|
|
|
echo "creating directories for '$1'"
|
|
mkdir -p "playbooks/apps/files/$1"
|
|
mkdir -p "playbooks/apps/templates/$1"
|
|
cp playbooks/apps/template.yaml.dist "playbooks/apps/$1.yaml"
|
|
sed -i '' "s/==APP==/$1/g" "playbooks/apps/$1.yaml"
|
|
git add .
|
|
pre-commit run
|
|
git add .
|
|
echo "done"
|