Project

General

Profile

Actions

Bug #29336

closed

When variable (or template input) contains \s or other non-string formatting characters, execution fails

Added by Marek Hulán about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Difficulty:
Triaged:
No

Description

This is caused but the way we generate ansible inventory

#!/bin/sh
cat <<EOS
...
EOS

cat reading from STDIN causes to interpolate \\\s and ansible that fails parsing it. The safer solution is to have the playbook in external file and in the dynamic inventory just cat that.

Actions

Also available in: Atom PDF