Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No easy way to install Ansible on all OS's #47

Closed
rndmh3ro opened this issue Apr 26, 2015 · 4 comments
Closed

No easy way to install Ansible on all OS's #47

rndmh3ro opened this issue Apr 26, 2015 · 4 comments

Comments

@rndmh3ro
Copy link
Member

Right now there's no easy way to install Ansible on the different operationg systems:

  • Debian 6 does not have a package
  • Oracle 6.4 misses PyYAML

For Debian ansible-omnibus is currently used: Omnibus downloads and runs the following shell script:

#!/bin/bash
sudo apt-get install -y build-essential python-dev python-setuptools
cd /tmp && wget http://releases.ansible.com/ansible/ansible-latest.tar.gz
tar xzf ansible-latest.tar.gz
cd ansible-* && sudo python setup.py install

One could also install (with the help of this shell script) python-pip and then install Ansible with pip install ansible.
The only problem now is that you have to know when to use apt-get or yum or foo-package-manager.
For that we could use pacapt. This script tries to determine the correct package manager and run the appropriate command (e.g. yum or apt-get). Right now pacapt doesn't support unattended upgrades (e.g. yum install foo --yes), but I created a issue for that.

@chris-rock
Copy link
Member

should we move this ticket to hardening-io/ansible-ssh-hardening? I think the issue is not related to the serverspec tests.

@rndmh3ro
Copy link
Member Author

Ansible gets installed during the converge-phase of the tests and this is only relevant for testing, not in real usage.
Also it will be a general issue for all future ansible-*-hardenings, so is there a more general place to put it?
But I don't care where the issue resides, so if you want, I'll close this one and reopen it in ansible-ssh-hardening.

@chris-rock
Copy link
Member

I think we should open an issue at https://github.com/neillturner/kitchen-ansible, because I do not see a proper way to fix this issue in our tests. The cross-platform installation should be solved once in kitchen-ansible. Do you agree?

@rndmh3ro
Copy link
Member Author

Yes, you're right. Ansible-kitchen installs Ansible on rhel and ubuntu boxes already, so it should install it on Debian as well. I'll create a issue for it in ansible-kitchen.

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

No branches or pull requests

2 participants