-
Notifications
You must be signed in to change notification settings - Fork 24.1k
Closed
Labels
affects_2.2This issue/PR affects Ansible v2.2This issue/PR affects Ansible v2.2bugThis issue/PR relates to a bug.This issue/PR relates to a bug.c:plugins/connectionc:plugins/connection/sshsupport:coreThis issue/PR relates to code supported by the Ansible Engineering Team.This issue/PR relates to code supported by the Ansible Engineering Team.
Description
ISSUE TYPE
- Bug Report
COMPONENT NAME
ansible-playbook setup
ANSIBLE VERSION
ansible 2.2.1.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
CONFIGURATION
OS / ENVIRONMENT
Linux ip-x-x-x-x 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-1 (2016-03-06) x86_64 GNU/Linux
SUMMARY
When running ansible localhost using cloud-init, the following error is given:
PLAY [localhost] ***************************************************************
TASK [setup] *******************************************************************
fatal: [localhost]: FAILED! => {"failed": true, "msg": "failed to transfer file to ~/.ansible/tmp/ansible-tmp-1487178101.89-244463273612786/setup.py: [Errno 2] No such file or directory: '~/.ansible/tmp/ansible-tmp-1487178101.89-244463273612786/setup.py'"}
to retry, use: --limit @/tmp/ansible/server/deploy_rancher_master.retry
PLAY RECAP *********************************************************************
localhost : ok=0 changed=0 unreachable=0 failed=1
This works using version 2.2.0.0.
STEPS TO REPRODUCE
We run our playbooks on AWS as part of a cloud-init script used in a cloudformation template. The playbooks are downloaded on to the instance and run using:
ansible-playbook /tmp/ansible/server/deploy_rancher_master.yml --extra-vars "extra=vars"
Ansible is installed using apt:
apt-get -y -t jessie-backports install ansible
Sample cloudformation template can be provided if required.
EXPECTED RESULTS
Setup task to complete.
ACTUAL RESULTS
Error in setup task:
TASK [setup] *******************************************************************
fatal: [localhost]: FAILED! => {"failed": true, "msg": "failed to transfer file to ~/.ansible/tmp/ansible-tmp-1487178101.89-244463273612786/setup.py: [Errno 2] No such file or directory: '~/.ansible/tmp/ansible-tmp-1487178101.89-244463273612786/setup.py'"}
to retry, use: --limit @/tmp/ansible/server/deploy_rancher_master.retry
This works using version 2.2.0.0
arm4b, dwo, liambuchanan, mercora, CaseyLabs and 1 more
Metadata
Metadata
Assignees
Labels
affects_2.2This issue/PR affects Ansible v2.2This issue/PR affects Ansible v2.2bugThis issue/PR relates to a bug.This issue/PR relates to a bug.c:plugins/connectionc:plugins/connection/sshsupport:coreThis issue/PR relates to code supported by the Ansible Engineering Team.This issue/PR relates to code supported by the Ansible Engineering Team.