From cb5f043df284a536cdd69811925bf784cd64d22d Mon Sep 17 00:00:00 2001 From: Trishna Guha Date: Tue, 29 Jan 2019 10:46:16 +0530 Subject: [PATCH] Add multiline config example in cli_config docs (#51413) Signed-off-by: Trishna Guha (cherry picked from commit f712e86728fd6f91a1d798873bfe09ba6a8e7915) --- lib/ansible/modules/network/cli/cli_config.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/ansible/modules/network/cli/cli_config.py b/lib/ansible/modules/network/cli/cli_config.py index aa949f0196d..9aa04e432f2 100644 --- a/lib/ansible/modules/network/cli/cli_config.py +++ b/lib/ansible/modules/network/cli/cli_config.py @@ -114,6 +114,12 @@ EXAMPLES = """ cli_config: config: "{{ lookup('template', 'basic/config.j2') }}" +- name: multiline config + cli_config: + config: | + hostname foo + feature nxapi + - name: configure device with config with defaults enabled cli_config: config: "{{ lookup('template', 'basic/config.j2') }}"