Hi Arpin,

Sounds like an utf-8 problem:

`to_json': source sequence is illegal/malformed utf-8

Please run the facter -j command on the windows system and check that it 
returns the values.
Check which locale is configured when running ansible on the windows system.

Hth,
Martin


> On 27. Aug 2021, at 03:31, Arpin Dominique (Nter) 
> <dominique.ar...@casino.qc.ca> wrote:
> 
> Hi,
>  
> I just wondering if anybody it using Ansible 2.9 and Puppet agent 7.10 
> together?
>  
> I got this error after I upgrade Puppet 6.24.0 to 7.10:
>  
> I use the module setup in Ansible to retrieves the facts for Ansible.
>  
> {
>     "exception": "C:/Program Files/Puppet 
> Labs/Puppet/puppet/lib/ruby/2.7.0/json/common.rb:286:in `to_json': source 
> sequence is illegal/malformed utf-8 (JSON::GeneratorError)\r\nAu caractère 
> Ligne:243 : 9\r\n+         &facter -j | Tee-Object  -Variable facter_output > 
> $null\r\n+         ~~~~~~~~~~\r\n    + CategoryInfo          : NotSpecified: 
> (C:/Program File...GeneratorError):String) [], RemoteException\r\n    + 
> FullyQualifiedErrorId : NativeCommandError\r\n\r\nScriptStackTrace:\r\nà 
> <ScriptBlock>, <Aucun fichier> : ligne 243\r\n",
>     "msg": "Unhandled exception while executing module: C:/Program 
> Files/Puppet Labs/Puppet/puppet/lib/ruby/2.7.0/json/common.rb:286:in 
> `to_json': source sequence is illegal/malformed utf-8 (JSON::GeneratorError)",
>     "_ansible_verbose_override": true,
>     "_ansible_no_log": false,
>     "changed": false
> }
>  
> Regards,
>  
> DOMINIQUE ARPIN
> ADMINISTRATEUR INFRASTRUCTURE ET STOCKAGE
> INFRASTRUCTURE ET EXPLOITATION - SUPPORT
> 
>  
>  
> TECHNOLOGIES NTER
> 500, RUE SHERBROOKE OUEST, 5E ÉTAGE, MONTRÉAL (QUÉBEC) CANADA, H3A 3G6 
> TÉL. : 514.285.2929 POSTE 140-4156
> 
> 
>  
> 
> 
> 
> 
> Mise en garde concernant la confidentialité : Le présent message, comprenant 
> tout fichier qui y est joint, est envoyé à l'intention exclusive de son 
> destinataire; il est de nature confidentielle et peut constituer une 
> information protégée par le secret professionnel. Si vous n'êtes pas le 
> destinataire, nous vous avisons que toute impression, copie, distribution ou 
> autre utilisation de ce message est strictement interdite. Si vous avez reçu 
> ce courriel par erreur, veuillez en aviser immédiatement l'expéditeur par 
> retour de courriel et supprimer le courriel. Merci! 
> 
> Confidentiality Warning: This message, including any attachment, is sent only 
> for the use of the intended recipient; it is confidential and may constitute 
> privileged information. If you are not the intended recipient, you are hereby 
> notified that any printing, copying, distribution or other use of this 
> message is strictly prohibited. If you have received this email in error, 
> please notify the sender immediately by return email, and delete it. Thank 
> you! 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to puppet-users+unsubscr...@googlegroups.com 
> <mailto:puppet-users+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/puppet-users/YQBPR0101MB12195954FA8F579FC2F066ACD0C89%40YQBPR0101MB1219.CANPRD01.PROD.OUTLOOK.COM
>  
> <https://groups.google.com/d/msgid/puppet-users/YQBPR0101MB12195954FA8F579FC2F066ACD0C89%40YQBPR0101MB1219.CANPRD01.PROD.OUTLOOK.COM?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/A6BD2D14-B581-4427-B9DF-4E19BAF5335E%40gmail.com.

Reply via email to