Ansible: Install on Debian-6
From FVue
Problem
Ansible isn't available (yet) as a Debian package from the main repositories. So how do I install Ansible?
Solution
Build from source
$ git clone https://github.com/ansible/ansible.git $ sudo apt-get install python-yaml python-paramiko python-jinja2 $ cd ansible && make deb $ sudo dpkg -i ../ansible_0.9_all.deb
To remove the package, use:
$ sudo dpkg -r ansible
Journal
20121228
- Anyone want to own the Debian packing of Ansible? - Google Discussiegroepen
- Forum thread with tips how to install on debian.
$ git clone https://github.com/ansible/ansible.git $ sudo apt-get install python-yaml python-paramiko python-jinja2 $ cd ansible && make deb $ sudo dpkg -i ../ansible_0.9_all.deb
Is giving me warnings:
Selecting previously deselected package ansible.
(Reading database ... 86577 files and directories currently installed.)
Unpacking ansible (from ansible_0.9_all.deb) ...
Setting up ansible (0.9) ...
Processing triggers for man-db ...
Processing triggers for python-support ...
/usr/lib/pymodules/python2.5/ansible/runner/__init__.py:530: Warning: 'with' will become a reserved keyword in Python 2.6
Compiling /usr/lib/pymodules/python2.5/ansible/runner/__init__.py ...
File "/usr/lib/pymodules/python2.5/ansible/runner/__init__.py", line 530
with open(in_path) as f:
^
SyntaxError: invalid syntax
/usr/lib/pymodules/python2.5/ansible/runner/connection_plugins/paramiko_ssh.py:28: Warning: 'with' will become a reserved keyword in Python 2.6
Compiling /usr/lib/pymodules/python2.5/ansible/runner/connection_plugins/paramiko_ssh.py ...
File "/usr/lib/pymodules/python2.5/ansible/runner/connection_plugins/paramiko_ssh.py", line 28
with warnings.catch_warnings():
^
SyntaxError: invalid syntax
/usr/lib/pymodules/python2.5/ansible/runner/lookup_plugins/dnstxt.py:60: Warning: 'as' will become a reserved keyword in Python 2.6
Compiling /usr/lib/pymodules/python2.5/ansible/runner/lookup_plugins/dnstxt.py ...
File "/usr/lib/pymodules/python2.5/ansible/runner/lookup_plugins/dnstxt.py", line 60
except dns.exception.DNSException as e:
^
SyntaxError: invalid syntax
/usr/lib/pymodules/python2.5/ansible/utils/__init__.py:148: Warning: 'as' will become a reserved keyword in Python 2.6
Compiling /usr/lib/pymodules/python2.5/ansible/utils/__init__.py ...
File "/usr/lib/pymodules/python2.5/ansible/utils/__init__.py", line 148
except SyntaxError as e:
^
SyntaxError: invalid syntax
but seems to have installed all right.
Advertisement