On 15 April 2014 09:24, Joachim Friberg <[email protected]> wrote:

> For example I want to do a yum install mysql on a server, but this server
> does not have python-simplejson and/or other packages that is neccesary for
> Ansible.

In this specific case you'd just assert the python-simplejson package
exists right?
If it's already installed then nothing happens, and you'll be able to
skip on to the
other tasks.

If of course you're in a catch-22 situation (can't run ansible to set
up ansible pre-requisites),
then you'll need to seed your base image with what's required.

For example, my kickstarts bring up a machine with

* SSHd enabled and tcp/22 inbound permitted on the local firewall
* an 'ansible' account with a pre-defined list of SSH keys in its
authorised_keys file
* passwordless sudo configured for that account

Everything else is managed by Ansible.

This general approach also applies to CM with puppet, chef, etc.
(which typically
have much more requirements).

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAK5eLPQRxkteOi6tNH%2B%3DEFB3kp6v-pVw3RP_Bd0xvxM8vbZhpg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to