tests: Mark or avoid sudo tasks on localhost

pull/949/head
Alex Willmer 2 years ago
parent f070767dad
commit 8e79488768

@ -52,6 +52,8 @@
with_items: with_items:
- /tmp/bigfile.out - /tmp/bigfile.out
- /tmp/bigbigfile.out - /tmp/bigbigfile.out
tags:
- requires_local_sudo
- name: Copy 32MiB file via localhost sudo - name: Copy 32MiB file via localhost sudo
delegate_to: localhost delegate_to: localhost
@ -59,6 +61,8 @@
copy: copy:
src: /tmp/bigfile.in src: /tmp/bigfile.in
dest: /tmp/bigfile.out dest: /tmp/bigfile.out
tags:
- requires_local_sudo
- name: Copy 320MiB file via localhost sudo - name: Copy 320MiB file via localhost sudo
delegate_to: localhost delegate_to: localhost
@ -66,6 +70,8 @@
copy: copy:
src: /tmp/bigbigfile.in src: /tmp/bigbigfile.in
dest: /tmp/bigbigfile.out dest: /tmp/bigbigfile.out
tags:
- requires_local_sudo
tags: tags:
- resource_intensive - resource_intensive

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

Loading…
Cancel
Save