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') }}"