'Determine if running on first master. Returns: bool'

def is_first_master(self):

    hostname = (self.get_var('ansible_ssh_host') or [None])
    masters = (self.get_var('groups', 'masters', default=None) or [None])
    return (masters[0] == hostname)
