From 62af321909437fadb986ea1a094ff7e8aff2487e Mon Sep 17 00:00:00 2001 From: Sandra McCann Date: Mon, 10 Dec 2018 14:10:17 -0500 Subject: [PATCH] added jinja2 example (#49740) --- lib/ansible/modules/network/ios/ios_config.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/ansible/modules/network/ios/ios_config.py b/lib/ansible/modules/network/ios/ios_config.py index b2e2162ee8c..bc3aa4222e9 100644 --- a/lib/ansible/modules/network/ios/ios_config.py +++ b/lib/ansible/modules/network/ios/ios_config.py @@ -282,6 +282,11 @@ EXAMPLES = """ - boot system flash bootflash:{{new_image}} host: "{{ inventory_hostname }}" when: ansible_net_version != version + +- name: render a Jinja2 template onto an IOS device + ios_config: + backup: yes + src: ios_template.j2 """ RETURN = """