# Plays taking way to long to run...

**URL:** <https://forum.ansible.com/t/plays-taking-way-to-long-to-run/24516>\
**Category:** Ansible Project\
**Created:** [May 18, 2017, 7:58pm UTC](https://forum.ansible.com/t/plays-taking-way-to-long-to-run/24516 "2017-05-18T19:58:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Will\_Dennis](https://avatars.discourse-cdn.com/v4/letter/w/919ad9/32.png) [@Will\_Dennis](https://forum.ansible.com/u/Will_Dennis)\
**Post date:** [May 18, 2017, 7:58pm UTC](https://forum.ansible.com/t/plays-taking-way-to-long-to-run/24516/1 "2017-05-18T19:58:51Z")

</div>

Seeing a weird problem with running playbooks from my Macbook, which is running OS X 10.10.5… The plays are taking a very long time to run:

`  
Wills-MacBook-Air:ist-ansible will$ ansible-playbook --version  
ansible-playbook 2.3.0.0  
config file = /Users/will/Downloads/my-ansible/ansible.cfg  
configured module search path = Default w/o overrides  
python version = 2.7.10 (default, Jul 14 2015, 19:46:27) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)]  
Wills-MacBook-Air:ist-ansible will$ ansible-playbook -i prod -u root -k run\_role.yml -e “ROLE=common” -e “TARGET=my-server”  
SSH password:

PLAY [my-server] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

TASK [Gathering Facts] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
Thursday 18 May 2017 15:46:25 -0400 (0:00:00.119) 0:00:00.119 \*\*\*\*\*\*\*\*\*\*  
ok: [my-server]

TASK [common : RHELFAM | Ensure python-selinux is installed] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
Thursday 18 May 2017 15:48:58 -0400 (0:02:33.523) 0:02:33.642 \*\*\*\*\*\*\*\*\*\*

[…]

TASK [common : DEBFAM | Ensure AppArmor is turned off] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
Thursday 18 May 2017 15:51:33 -0400 (0:02:33.419) 0:05:08.434 \*\*\*\*\*\*\*\*\*\*  
ok: [admin12-10]

TASK [common : DEBFAM | Ensure UFW is turned off] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
Thursday 18 May 2017 15:54:06 -0400 (0:02:33.385) 0:07:41.819 \*\*\*\*\*\*\*\*\*\*  
ok: [admin12-10]

`

As you may notice, the profiling of the plays that do stuff (as above) all are taking 2:33… Anyone know the problem offhand (DNS?)

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![Will\_Dennis](https://avatars.discourse-cdn.com/v4/letter/w/919ad9/32.png) [@Will\_Dennis](https://forum.ansible.com/u/Will_Dennis)\
**Post date:** [May 19, 2017, 1:56am UTC](https://forum.ansible.com/t/plays-taking-way-to-long-to-run/24516/2 "2017-05-19T01:56:46Z")

</div>

Tested my role on an Ubuntu host running Ansible 2.3.0.0, same problem… So it wasn’t just my Macbook.

On a hunch, edited /etc/ssh/sshd\_config on the target system, put in “UseDNS no”, and restarted sshd - reran on my Macbook, problem solved!

Thus confirming the age-old sysadmin haiku truth:

It’s not DNS  
There’s no way it is DNS  
It was DNS
