also your when: clauses are using unnecessary mustaches, which makes them
subject to double interpolation bugs.

  when: role_mysql_version == "5.6" and ansible_distribution == "CentoOS"
and ansible_distribution_version.split('.')[0] == 6

or more readable:

  when:
    - role_mysql_version == "5.6"
    - ansible_distribution == "CentoOS"
    - ansible_distribution_major_version == "6"

----------
Brian Coca

-- 
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/CACVha7feQdw0%3DhowC3jE%2BgK59B%2BvtN0RBSNfjftWvhs9oNfVPg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to