# 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
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/f8753d4f-6556-4674-91d9-7b993d10dc0d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.