diff --git a/ansible/action_plugins/merge_configs.py b/ansible/action_plugins/merge_configs.py index d20edf1da8d6326ef75417edf23e59a57755f49f..6ad1e3a219500531bad26058e8cf23233b378c76 100644 --- a/ansible/action_plugins/merge_configs.py +++ b/ansible/action_plugins/merge_configs.py @@ -123,6 +123,10 @@ class OverrideConfigParser(iniparser.BaseParser): ws=self._whitespace, value=value)) else: + # We want additional values to be written out under the + # first value with the same indentation, like this: + # key = value1 + # value2 indent_size = len(key) + len(self._whitespace) * 2 + 1 ws_indent = ' ' * indent_size fp.write('{ws_indent}{value}\n'.format(