Skip to content

Commit 8e79488

Browse files
committed
tests: Mark or avoid sudo tasks on localhost
1 parent f070767 commit 8e79488

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

tests/ansible/bench/file_transfer.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,26 @@
5252
with_items:
5353
- /tmp/bigfile.out
5454
- /tmp/bigbigfile.out
55+
tags:
56+
- requires_local_sudo
5557

5658
- name: Copy 32MiB file via localhost sudo
5759
delegate_to: localhost
5860
become: true
5961
copy:
6062
src: /tmp/bigfile.in
6163
dest: /tmp/bigfile.out
64+
tags:
65+
- requires_local_sudo
6266

6367
- name: Copy 320MiB file via localhost sudo
6468
delegate_to: localhost
6569
become: true
6670
copy:
6771
src: /tmp/bigbigfile.in
6872
dest: /tmp/bigbigfile.out
73+
tags:
74+
- requires_local_sudo
6975

7076
tags:
7177
- resource_intensive

tests/ansible/regression/issue_615__streaming_transfer.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
- file:
2626
path: /tmp/fetch-out
2727
state: absent
28+
become: false
2829
delegate_to: localhost
2930
run_once: true
3031
when:

0 commit comments

Comments
 (0)