From 8e79488768a839e855d4a6359acad27b153d8a66 Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Mon, 13 Jun 2022 22:05:36 +0100 Subject: [PATCH] tests: Mark or avoid sudo tasks on localhost --- tests/ansible/bench/file_transfer.yml | 6 ++++++ tests/ansible/regression/issue_615__streaming_transfer.yml | 1 + 2 files changed, 7 insertions(+) diff --git a/tests/ansible/bench/file_transfer.yml b/tests/ansible/bench/file_transfer.yml index f6702f58..6324a84e 100644 --- a/tests/ansible/bench/file_transfer.yml +++ b/tests/ansible/bench/file_transfer.yml @@ -52,6 +52,8 @@ with_items: - /tmp/bigfile.out - /tmp/bigbigfile.out + tags: + - requires_local_sudo - name: Copy 32MiB file via localhost sudo delegate_to: localhost @@ -59,6 +61,8 @@ copy: src: /tmp/bigfile.in dest: /tmp/bigfile.out + tags: + - requires_local_sudo - name: Copy 320MiB file via localhost sudo delegate_to: localhost @@ -66,6 +70,8 @@ copy: src: /tmp/bigbigfile.in dest: /tmp/bigbigfile.out + tags: + - requires_local_sudo tags: - resource_intensive diff --git a/tests/ansible/regression/issue_615__streaming_transfer.yml b/tests/ansible/regression/issue_615__streaming_transfer.yml index f6f4ce34..56a7ec41 100644 --- a/tests/ansible/regression/issue_615__streaming_transfer.yml +++ b/tests/ansible/regression/issue_615__streaming_transfer.yml @@ -25,6 +25,7 @@ - file: path: /tmp/fetch-out state: absent + become: false delegate_to: localhost run_once: true when: