diff --git a/roles/bats/tasks/main.yml b/roles/bats/tasks/main.yml index e2151bece..23ac6c39d 100644 --- a/roles/bats/tasks/main.yml +++ b/roles/bats/tasks/main.yml @@ -43,6 +43,7 @@ register: "test_output" ignore_errors: true environment: "{{ bats_environment }}" + # Adds -i to Ansible's default become_flags: '-H -S -n -i' - name: "Read results"