no_log with bin/ansible ?

Is there any way to use no_log with ansible ad-hoc commands?

not currently.

I found that if I changed lines 48 and 49 in normal.py and recompiled it, remote logging was disabled. :slight_smile:
I’m not sure what other features might be affected by this, but this minor change accomplished what I wanted.
Ken

  • if self.runner.no_log:
  • module_args += " NO_LOG=True"
  • #if self.runner.no_log:
  • module_args += " NO_LOG=True"