An example of what I think might work.
- name: Verify ruby version is 1.9
shell: echo /opt/vagrant_ruby/bin/ruby --version
register: status
- fail: "This is bad version"
when: var=status.stdout_lines != "1.9"
On Friday, November 20, 2015 at 11:5
Hello,
I want to run a check in my playbook for the current version of ruby
package installed and if its not the version Im expecting then fail the
play.
How can I go about doing this?
Thanks
Mike
--
You received this message because you are subscribed to the Google Groups
"Ansible P