tests: Mark or avoid sudo tasks on localhost

This commit is contained in:
Alex Willmer 2022-06-13 22:05:36 +01:00
parent f070767dad
commit 8e79488768
2 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -25,6 +25,7 @@
- file:
path: /tmp/fetch-out
state: absent
become: false
delegate_to: localhost
run_once: true
when: