Initial Commit
This commit is contained in:
0
playbooks/inventories/.gitkeep
Normal file
0
playbooks/inventories/.gitkeep
Normal file
14
playbooks/play.sh
Executable file
14
playbooks/play.sh
Executable 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
0
playbooks/roles/.gitkeep
Normal file
Reference in New Issue
Block a user