I'm just figuring out using Ansible. One of the things I'm trying to
figure out is marking particular hosts using the linode dynamic
inventory. E.g. I monitor my hosts using Nagios, so most hosts should
have the Nagios NRPE server installed. The host containing the Nagios
server, of course, shouldn't. Also, most hosts use a standard Postfix
configuration, except of course, for the mail server, which will use a
differnet Postfix configuration.
On my local hosts, where I maintain a manual inventory, it's fairly
easy. I add an extra variable to the hosts that need to be marked, and
test for the existence of that variable in my playbooks. I'm trying to
figure out how to do something similar for my Linode hosts, where I'm
using the Linode dynamic inventory plugin. I so far haven't found a way
to mark a host in the Linode UI that will make its way into the dynamic
inventory visable from within Ansible. Am I missing something? Or is
there a way to tell Ansible 'if this particular host shows up, add this
variable to it' or something similar? Or is there another approach to
this I should be taking?
Ben