diff --git a/.ci/Jenkinsfile b/.ci/Jenkinsfile index 8c425a799e..08e9458dc5 100644 --- a/.ci/Jenkinsfile +++ b/.ci/Jenkinsfile @@ -381,7 +381,9 @@ def getMachineInfo(workspace, platform){ } def ansible(workspace, run_id, args){ - pyrun("ansible-playbook --private-key=\"${workspace}/e2essh\" --extra-vars=\"workspace=${workspace}/ runId=${run_id} sshPublicKey=${workspace}/e2essh.pub\" --ssh-common-args='-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null' ${workspace}/.ci/ansible/playbook.yml ${args}") + withOtelEnv() { + pyrun("ansible-playbook --private-key=\"${workspace}/e2essh\" --extra-vars=\"workspace=${workspace}/ runId=${run_id} sshPublicKey=${workspace}/e2essh.pub\" --ssh-common-args='-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null' ${workspace}/.ci/ansible/playbook.yml ${args}") + } } diff --git a/.ci/ansible/ansible.cfg b/.ci/ansible/ansible.cfg new file mode 100644 index 0000000000..f394c17c0b --- /dev/null +++ b/.ci/ansible/ansible.cfg @@ -0,0 +1,2 @@ +[defaults] +callbacks_enabled = community.general.opentelemetry diff --git a/.ci/ansible/tasks/wait_for_ssh.yml b/.ci/ansible/tasks/wait_for_ssh.yml index 3a3d7ed61e..f0e66a082a 100644 --- a/.ci/ansible/tasks/wait_for_ssh.yml +++ b/.ci/ansible/tasks/wait_for_ssh.yml @@ -1,3 +1,7 @@ --- - name: Wait for SSH to come up - wait_for: host={{ inventory_hostname }} port=22 delay=10 timeout=60 + wait_for: + host: "{{ inventory_hostname }}" + port: 22 + delay: 10 + timeout: 120