# Connection lost in middle of script execution

**URL:** <https://forum.ansible.com/t/connection-lost-in-middle-of-script-execution/31651>\
**Category:** Ansible Project\
**Created:** [November 13, 2019, 4:11pm UTC](https://forum.ansible.com/t/connection-lost-in-middle-of-script-execution/31651 "2019-11-13T16:11:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marc-antoine\_Desroch](https://avatars.discourse-cdn.com/v4/letter/m/6bbea6/32.png) [@Marc-antoine\_Desroch](https://forum.ansible.com/u/Marc-antoine_Desroch)\
**Post date:** [November 13, 2019, 4:11pm UTC](https://forum.ansible.com/t/connection-lost-in-middle-of-script-execution/31651/1 "2019-11-13T16:11:57Z")

</div>

Ansible configuration:

# config file for ansible – [https://ansible.com/](https://ansible.com/)

# ===============================================

# nearly all parameters can be overridden in ansible-playbook

# or with command line flags. ansible will read ANSIBLE\_CONFIG,

# ansible.cfg in the current working directory, .ansible.cfg in

# the home directory or /etc/ansible/ansible.cfg, whichever it

# finds first

[defaults]

# some basic default values…

#inventory = /etc/ansible/hosts  
#library = /usr/share/my\_modules/  
#module\_utils = /usr/share/my\_module\_utils/  
#remote\_tmp = ~/.ansible/tmp  
remote\_tmp = /tmp  
#local\_tmp = ~/.ansible/tmp  
#plugin\_filters\_cfg = /etc/ansible/plugin\_filters.yml  
#forks = 5  
#poll\_interval = 15  
#sudo\_user = root  
#ask\_sudo\_pass = True  
#ask\_pass = True  
#transport = smart  
#remote\_port = 22  
#module\_lang = C  
#module\_set\_locale = False  
interpreter\_python = /usr/bin/python3.6

# plays will gather facts by default, which contain information about

# the remote system.
