Hiding Output for the Custom Module

I have written a custom module to define a bunch of variables. The module returns json with ansible_facts, and everything works great.

tasks:

  • local_action: my_custom_module
    sudo: false

But I have one problem - the ansible_facts include service ID’s and passwords - I don’t want this stuff to be output to the console.

How can I hide the console output for my custom module?