This is also a bit weird looking, but you could abuse the "removes" parameter to the shell command, which does not run a command when a binary does not exist.
The downside is this makes your playbook look weirder. - shell: yum install python-simplejson removes=/usr/bin/yum referenced here: http://docs.ansible.com/shell_module.html Generally this is done to prevent running installers a second time, and will not remove the indicated file. Another solution is usually to have the kickstart or base image slightly prepped in the case of those older OSes, but we definitely don't require it. On Thu, Apr 17, 2014 at 7:46 AM, Brian Coca <[email protected]> wrote: > - shell: yum install python-simplejson > ignore_errors: true > changed_when: False > > ugly but should work > > > > > -- > Brian Coca > Stultorum infinitus est numerus > > 0110000101110010011001010110111000100111011101000010000001111001011011110111010100100000011100110110110101100001011100100111010000100001 > Pedo mellon a minno > > -- > 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/CADn%2BHsw8CX0HLkZqzixhqgtS58TX-S3L%3DpTRcUaswNaEyGdnMA%40mail.gmail.com<https://groups.google.com/d/msgid/ansible-project/CADn%2BHsw8CX0HLkZqzixhqgtS58TX-S3L%3DpTRcUaswNaEyGdnMA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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/CA%2BnsWgzKG2HFq3jm4%2BUWPh2pmBi3z5CWPfB%3DZ0mHzXj1NV_GNw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
