install Ubuntu 13.1
then
`
apt-get install git python-pip setuptools
$ git clone git://github.com/ansible/ansible.git --recursive
$ cd ./ansible
`
$ source ./hacking/env-setup
$ source ./hacking/env-setup -q
prevent “Python.h” error
> $ apt-get install python-dev libffi-dev libssl-dev
`
$ pip install setuptools pip --upgrade
$ pip install cffi
$ pip install paramiko PyYAML Jinja2 httplib2 six
`
`
`
now I finish my installation.
First,use
``
``
$ ansible 192.168.2.85 -m ping
``
it let me install sshpass
``
``
$ apt-get install sshpass
``
then
`
$ ansible 192.168.2.85 -m ping
192.168.2.85 | SUCCESS => {
“changed”: false,
“ping”: “pong”
}
`
it’s ok, tmp file did not appear;
Second,!!!
I am using the official example(http://docs.ansible.com/ansible/developing_api.html) :
``
$ python official.py
https://github.com/haroldTlan/ansible/blob/master/official.py
`
$ cd /.ansible/tmp
$ ls
ansible-local-65005zhPKlI ansible-local-70192KRXI4M
`
but tmp files still there
Is there any installation step wrong?
or official code wrong?