github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/bench/tools/aisloader-composer/common.sh (about) 1 #!/bin/bash 2 3 INVENTORY="inventory/oci.yaml" 4 GRAFANA_HOST="aismonitor" 5 6 # Hide output for tasks we aren't executing 7 export ANSIBLE_DISPLAY_SKIPPED_HOSTS=false 8 9 run_ansible_playbook() { 10 local playbook="$1" 11 # Any extra variables to pass to the playbook 12 local env="$2" 13 ansible-playbook -i "$INVENTORY" "$playbook" -f 10 --become -e "ansible_become_pass=y grafana_host=$GRAFANA_HOST $2" 14 }