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.
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"