File copy fails with large file

19 views
Skip to first unread message

leam hall

unread,
Feb 20, 2018, 12:07:32 PM2/20/18
to Ansible Project
# Outside of Ansible, the user ansible can scp the file in 52 seconds.

# Using Ansible, even after upping the timeout to 105 seconds per https://github.com/ansible/ansible/issues/14426
# the copy fails with:

fatal: [psalms]: FAILED! => {"failed": true, "msg": "Timeout (105s) waiting for privilege escalation prompt: "}

# Changing the playbook to copy a smaller file, the CentOS-6_minimal.iso, works.

# Ansible version info
ansible 2.4.1.0
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/ansible/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.6/site-packages/ansible
executable location = /usr/bin/ansible
python version = 2.6.6 (r266:84292, Aug 18 2016, 15:13:37) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]

# iso_dir is /opt/iso, with mode 0775 and the user is in the directory's group.

# Playbook stanza
- name: copy_iso
copy:
src: "{{ iso_dir }}/{{ item }}"
dest: "{{ iso_dir }}/{{ item }}"
mode: 0664
owner: root
group: syseng
with_items:
- CentOS-6.9-x86_64-bin-DVD1.iso


# Error:

TASK [copy_ssh_key] *****************************************************************************************
ok: [psalms]

TASK [copy_iso] *********************************************************************************************
[WARNING]: sftp transfer mechanism failed on [psalms]. Use ANSIBLE_DEBUG=1 to see detailed information

[WARNING]: scp transfer mechanism failed on [psalms]. Use ANSIBLE_DEBUG=1 to see detailed information

fatal: [psalms]: FAILED! => {"failed": true, "msg": "Timeout (105s) waiting for privilege escalation prompt: "}
to retry, use: --limit @/home/ansible/lang/git/Ansible_Test/playbooks/create_virt_host.retry

PLAY RECAP **************************************************************************************************
psalms : ok=16 changed=3 unreachable=0 failed=1


Reply all
Reply to author
Forward
0 new messages