Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

copy/template modules leave source in remote_tmp #3572

Closed
visit1985 opened this issue Apr 29, 2016 · 3 comments
Closed

copy/template modules leave source in remote_tmp #3572

visit1985 opened this issue Apr 29, 2016 · 3 comments

Comments

@visit1985
Copy link

ISSUE TYPE
  • Bug Report
COMPONENT NAME
copy
template
ANSIBLE VERSION
ansible 2.0.1.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = Default w/o overrides
CONFIGURATION
none
OS / ENVIRONMENT
CentOS Linux release 7.2.1511 (Core)
SUMMARY

copy and template module leave $HOME/.ansible/tmp/ansible-tmp-1461941904.93-114576180700549/source after successful execution.

It's conspicuous, that there are two different temp folders are used, while only the later one is deleted.

This worked in 1.9.4.

STEPS TO REPRODUCE
~ $ echo 'This is a test!' > a.out
~ $ ansible localhost -m copy -a "src=a.out dest=/tmp/b.out" -vvvv | grep PUT
127.0.0.1 PUT /tmp/tmpn5lAfb TO $HOME/.ansible/tmp/ansible-tmp-1461941904.93-114576180700549/source
127.0.0.1 PUT /tmp/tmpeDN0Wj TO $HOME/.ansible/tmp/ansible-tmp-1461941904.96-17498317945463/copy
~ $ rm a.out /tmp/b.out
~ $ cat $HOME/.ansible/tmp/ansible-tmp-1461941904.93-114576180700549/source
This is a test!
@bcoca
Copy link
Member

bcoca commented Apr 29, 2016

dupe of already fixed http://github.com/ansible/ansible/issues/14917

@bcoca bcoca closed this as completed Apr 29, 2016
@visit1985
Copy link
Author

@bcoca wrong reference?

@visit1985
Copy link
Author

@bcoca thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants