Initial Commit

This commit is contained in:
2024-01-21 12:58:06 -05:00
commit 732455607d
10 changed files with 101 additions and 0 deletions

View File

14
playbooks/play.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
playbook_name=$1
inventory_path="./inventories/"
log_path="../logs"
log_file="${log_path}/${playbook_name}.log"
mkdir -p "${log_path}"
echo "${playbook_name} started at $(date)" | tee -a "${log_file}"
{ time ansible-playbook -i "${inventory_path}" "${playbook_name}" ; } 2>&1 | tee -a "${log_file}"
echo "${playbook_name} finished at $(date)" | tee -a "${log_file}"

0
playbooks/roles/.gitkeep Normal file
View File