From 2a628abe81ecc0f3af71604f988ec03caa73602b Mon Sep 17 00:00:00 2001 From: Seena Fallah Date: Mon, 4 Mar 2024 15:13:01 +0100 Subject: [PATCH] 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 --- scripts/build_utils.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 } -- 2.39.5