# Is it possible to not let Ansible-Runner generate the Artifacts Directory?

**URL:** <https://forum.ansible.com/t/is-it-possible-to-not-let-ansible-runner-generate-the-artifacts-directory/7290>\
**Category:** Get Help\
**Tags:** ansible-runner\
**Created:** [July 16, 2024, 10:21am UTC](https://forum.ansible.com/t/is-it-possible-to-not-let-ansible-runner-generate-the-artifacts-directory/7290 "2024-07-16T10:21:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShanDesai](https://avatars.discourse-cdn.com/v4/letter/s/838e76/32.png) [@ShanDesai](https://forum.ansible.com/u/ShanDesai)\
**Post date:** [July 16, 2024, 10:21am UTC](https://forum.ansible.com/t/is-it-possible-to-not-let-ansible-runner-generate-the-artifacts-directory/7290/1 "2024-07-16T10:21:20Z")

</div>

I am using `ansible-runner` along with `pytest` to perform tests and it fits really with for my testing scenarios.

I generally use `rotate_artifacts=-1` in order to explicitly avoid generating the respective artifacts, however the `artifacts` directory is generated no matter what.

I was wondering is there a specific parameter I can use to avoid generating the artifacts directory during testing?

---

<div class="post-metadata">

**Author:** ![jpmens](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jpmens/32/5543_2.png) [@jpmens](https://forum.ansible.com/u/jpmens)\
**Post date:** [July 16, 2024, 12:25pm UTC](https://forum.ansible.com/t/is-it-possible-to-not-let-ansible-runner-generate-the-artifacts-directory/7290/2 "2024-07-16T12:25:32Z")

</div>

I can’t see how to avoid the directory being created, but you could possibly do something like this:

```console
ansible-runner --artifact-dir /tmp --rotate-artifacts=-1

```
