]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
build_utils: move collect lgos playbook into the root dir 2213/head
authorSeena Fallah <seenafallah@gmail.com>
Mon, 4 Mar 2024 14:13:01 +0000 (15:13 +0100)
committerSeena Fallah <seenafallah@gmail.com>
Mon, 4 Mar 2024 14:13:01 +0000 (15:13 +0100)
The playbook needs to be in the root directory so it can discover the roles

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
scripts/build_utils.sh

index 9933a9bb8c8be68a940d828e8e6d4a35b33c50e3..d3db52effb1d31e9d5b69a554fbef11c9303700a 100755 (executable)
@@ -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
 }