Using host parameters in Ansible roles (Satellite 6.5)

Latest response

I'd like to use host parameters as variables in Ansible roles in Satellite, but I'm not really understand how to set that up. Here is what I'm trying to achieve:

We use syslog servers to collect log data from our various hosts. Each syslog server can only handle x number of hosts, so by necessity we have several different existing syslog servers and add additional servers when the need arises. When I provision a new host one of the little chores is to configure rsyslog.conf to point it to whichever syslog server has capacity.

I would like to be able to assign the syslog server as a host parameter in Satellite and have that parameter passed into an Ansible role; that way I can have a single role dynamically configure rsyslog.conf.

Is this possible?

Responses