From 0545b55d8dd9312178de33075d7bcc152e7d26b2 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Wed, 24 Feb 2016 11:39:22 -0600 Subject: [PATCH] Report as puppet_report_as instead of fqdn We want to report as the puppetmaster, not as the host in question. Change-Id: I0462a898502ad709e046be76c19c9e11f4617335 Depends-On: I290ad569283390bac2a74a9991331c9e86821ab7 --- tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 2c00eab..ae4916c 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -82,8 +82,8 @@ puppetdb: "{{ puppetdb }}" hostvars: "{{ hostvars[inventory_hostname] }}" logfile: "{{ puppet_logfile }}" - whoami: "{{ ansible_fqdn }}" + whoami: "{{ puppet_report_as }}" delegate_to: localhost connection: local - when: puppetdb is defined + when: puppetdb is defined and puppet_report_as is defined