From f712e86728fd6f91a1d798873bfe09ba6a8e7915 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 --- 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 a4de544f2b0..0166049f580 100644 --- a/lib/ansible/modules/network/cli/cli_config.py +++ b/lib/ansible/modules/network/cli/cli_config.py @@ -147,6 +147,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') }}"