From 5182cc1255bb9b1873352a2a432b8fa36004dd9b Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Mon, 13 May 2024 11:37:50 +0100 Subject: [PATCH] Assert that tempest playbook is not executed with a local connection This playbook copies files to temporary directories. They must be on the host rather than in the Kayobe container in order to be accessible by the docker-rally container. --- ansible/kayobe-automation-run-tempest.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ansible/kayobe-automation-run-tempest.yml b/ansible/kayobe-automation-run-tempest.yml index c7c5077..5a52a1e 100644 --- a/ansible/kayobe-automation-run-tempest.yml +++ b/ansible/kayobe-automation-run-tempest.yml @@ -22,6 +22,14 @@ skip_list_path_remote: "{{ results_path_remote.path }}/tempest-skip-list" accounts_path_remote: "{{ results_path_remote.path }}/tempest-accounts" tasks: + # This playbook copies files to temporary directories. They must be on the + # host rather than in the Kayobe container in order to be accessible by the + # docker-rally container. + - name: Assert that we are not using a local connection + assert: + that: ansible_connection != 'local' + fail_msg: This playbook is not compatible with the local connection plugin + - block: - name: Create temporary results directory