From: Seena Fallah Date: Mon, 4 Mar 2024 14:13:01 +0000 (+0100) Subject: build_utils: move collect lgos playbook into the root dir X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2a628abe81ecc0f3af71604f988ec03caa73602b;p=ceph-build.git build_utils: move collect lgos playbook into the root dir The playbook needs to be in the root directory so it can discover the roles Signed-off-by: Seena Fallah --- diff --git a/scripts/build_utils.sh b/scripts/build_utils.sh index 9933a9bb..d3db52ef 100755 --- a/scripts/build_utils.sh +++ b/scripts/build_utils.sh @@ -1375,7 +1375,9 @@ collect_ceph_logs() { if [ -z "$collect_logs_playbook_path" ]; then write_collect_logs_playbook - collect_logs_playbook_path="$WORKSPACE/collect-logs.yml" + else + # the playbook needs to be in the root directory so it can discover the roles + cp $collect_logs_playbook_path $WORKSPACE/collect-logs.yml fi pkgs=( "ansible" ) @@ -1383,7 +1385,7 @@ collect_ceph_logs() { export ANSIBLE_SSH_ARGS='-F ./vagrant_ssh_config' export ANSIBLE_STDOUT_CALLBACK='debug' - $venv/ansible-playbook -vv -i hosts --limit $limit --extra-vars "archive_path=$WORKSPACE/logs" "$collect_logs_playbook_path" || true + $venv/ansible-playbook -vv -i hosts --limit $limit --extra-vars "archive_path=$WORKSPACE/logs" $WORKSPACE/collect-logs.yml || true fi }