Hi,
In Centos 7, mysql is now “mariadb”, in Centos 6 or below it is “mysq”.
Looking at “ansible_distribution_major_version” fact I will be able to find if my target host is Centos 6 or 7.
How would I create a variable {{db_name}} such that I can use it like this:
yum: pkg={{db_name}} state=installed
yum: pkg={{db_name}}-server state=installed
That variable should also be sharable with other roles as well.
Thanks,
Long
This email or any attachments may contain confidential or legally privileged information intended for the sole use of the addressees. Any use, redistribution, disclosure, or reproduction of this information, except as intended, is prohibited. If you received this email in error, please notify the sender and remove all copies of the message, including any attachments.