Specify Matchers and the Ansible Plugin

Problem:
When selecting os as “windows” under “Specify Matchers” for any variable, I don’t see the override showing up under any windows hosts.

Expected outcome:
The override would match the os type windows and set the override value under Host Parameters either on the host itself or under each version of Windows.

Foreman and Proxy versions:
foreman:1.21.4
foreman_ansible: 2.3.6

Distribution and version:
CentOS 7 x86_64

Other information
One example would be >
ansible_connection:

  • ssh (default)
  • winrm (override based on os type windows)

This seems to work when I disable the override from the variable itself and place the parameters under each OS version which is less ideal but would still get me what I want. Is this by design?

os matchers can only match on exact os name - e.g. “Windows Vista Server”, not on os type.
Another option is to match on a fact name - e.g. ansible_os_family.