# How to add verbosity to ansible.runner.Runner ?

**URL:** <https://forum.ansible.com/t/how-to-add-verbosity-to-ansible-runner-runner/16725>\
**Category:** Ansible Project\
**Created:** [November 8, 2014, 9:33pm UTC](https://forum.ansible.com/t/how-to-add-verbosity-to-ansible-runner-runner/16725 "2014-11-08T21:33:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ethan\_Collins](https://avatars.discourse-cdn.com/v4/letter/e/a87d85/32.png) [@Ethan\_Collins](https://forum.ansible.com/u/Ethan_Collins)\
**Post date:** [November 8, 2014, 9:33pm UTC](https://forum.ansible.com/t/how-to-add-verbosity-to-ansible-runner-runner/16725/1 "2014-11-08T21:33:25Z")

</div>

I am not yet using playbooks. Calling ansible.runner.Runner from python to run modules. How can I add verbosity (like using -vvvv when running ansible from shell) ?

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [November 8, 2014, 10:50pm UTC](https://forum.ansible.com/t/how-to-add-verbosity-to-ansible-runner-runner/16725/2 "2014-11-08T22:50:21Z")

</div>

Verbosity is actually increased by setting a variable in ansible.utils

Such as:

ansible.utils.VERBOSITY = 4

The value is the NUMBER representation of how many v’s you want to specify.

---

<div class="post-metadata">

**Author:** ![Ethan\_Collins](https://avatars.discourse-cdn.com/v4/letter/e/a87d85/32.png) [@Ethan\_Collins](https://forum.ansible.com/u/Ethan_Collins)\
**Post date:** [November 8, 2014, 11:42pm UTC](https://forum.ansible.com/t/how-to-add-verbosity-to-ansible-runner-runner/16725/3 "2014-11-08T23:42:13Z")

</div>

Thanks Matt.

I am trying to debug the copy module which I am using to transfer an image from linux to XP on virtualbox on the same host (for subsequent processing). I am using SSH, with ControlPersist, scp\_if\_ssh and pipelining turned on.

When I first copy the file, ~700KB, it takes ~3.5 secs. Subsequently, ie when the file exists in the target location, it takes ~1.2 secs.

I understand from debug logs that during the first copy operation, it does the copy. And during the overwrite operation, it doesn’t as mostly MD5 checksum says so. What I don’t understand is that scp of the same file, irrespective of copy or overwrite, takes \< 1sec. Why does ansible take so long a time?

Any light on the functioning of the copy module is greatly appreciated. The only other method I have to overcome this induced delay is doing an scp.

---

<div class="post-metadata">

**Author:** ![Greg\_Andrews](https://avatars.discourse-cdn.com/v4/letter/g/6bbea6/32.png) [@Greg\_Andrews](https://forum.ansible.com/u/Greg_Andrews)\
**Post date:** [November 9, 2014, 12:13am UTC](https://forum.ansible.com/t/how-to-add-verbosity-to-ansible-runner-runner/16725/4 "2014-11-09T00:13:31Z")

</div>

After you reboot the XP in virtualbox and Linux (also under virtualbox?),  
what happens to the transfer times when you do the scp first and the  
Ansible copy second?

&nbsp;&nbsp;-Greg

---

<div class="post-metadata">

**Author:** ![Ethan\_Collins](https://avatars.discourse-cdn.com/v4/letter/e/a87d85/32.png) [@Ethan\_Collins](https://forum.ansible.com/u/Ethan_Collins)\
**Post date:** [November 11, 2014, 5:31pm UTC](https://forum.ansible.com/t/how-to-add-verbosity-to-ansible-runner-runner/16725/5 "2014-11-11T17:31:59Z")

</div>

I tried this today after rebooting XP and the timing is the same – scp takes \< 1 sec and ansible taking 1.2 sec, as I didn’t delete the already copied file. After I deleted, ansible took 3.5 secs.

I am on Linux host and running XP on virtualbox on the same Linux host.

Any idea why ansible takes 3.5 secs when it has to copy the file (sz: ~700KB) ?

-Ethan
