I’m trying to create smart inventories on the base of major operating system version
unfortunately in the facts received from the hosts the entry is received as ansible_distribution_major_version: ‘7’
and, probably due to the presence of ’ character I’m not able to match the os version with smart host filter search string similar to ansible_facts.ansible_distribution_major_version:‘7’
I did many attempts with many variations of ‘7’ but without success
Do someone have any idea how to solve the problem ?