I've got some tasks I use to make sure we're on the correct RPM version.
Each inventory governs an environment with a common site.yml playbook.

(ansible 1.9.x, centos 6.x)

$environment/group_vars/all holds vars like

thingy_rpm: thingy-1.2.3.500

and the play has tasks like

- name: ensure we are on {{ thingy_rpm }}
  yum: name={{ thingy_rpm }} state=present
  notify: bounce thingy


This works fine when I'm on a version earlier than 1.2.3.500, but if I need
to roll back an RPM and try setting

thingy_rpm: thingy-1.2.2.500

nothing happens.

Am I holding this thing the right way round? Or are the versions in a yum
task a minimum?

-- 
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/CAK5eLPRfqOZEHmvR8SvmTk-vPGrTSfrO8RDMSpNK1oyUQ12A3A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to