ssh Remote Execution fails when output contains special characters
When using "Run Job" with "Commands" and "Run Command - SSH Default" on CentOS 7.3 with Foreman 13.2 or 14.2 with commands, which produce special character as output, it fails and at least the the following error is displayed:
'Failed to initialize: Dynflow::ExecutionPlan::Steps::Error - Playbook execution failed'
To reproduce, run one ofthe following commands:
systemctl status iptables
On the other hand the following command is working:
systemctl status iptables | tr -d ●
Maybe, this is not the intended behaviour.
Updated by IfAM Admins over 6 years ago
Marek Hulán wrote:
I encountered the same. As a simple workaround, add LANG=C to the top of the template. I think it's already reported as #18356
Thank you for your quick help, we searched the bug reports, but didn't find it. Your idea works like charm.