Repository: ansible/ansible
Pull request: added jinja2 example
##### SUMMARY
<!--- Describe the change below, including rationale and design decisions -->
Added simple example of using jinja2 template for src parameter
<!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
Closes https://github.com/ansible/ansible/issues/44461
##### ISSUE TYPE
<!--- Pick one below and delete the rest -->

- Docs Pull Request

##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below -->
eos_config
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
2.8
```

##### ADDITIONAL INFORMATION
<!--- Include additional information to help people understand the change here -->
<!--- A step-by-step reproduction of the problem is helpful if there is no related issue -->

<!--- Paste verbatim command output below, e.g. before and after your change -->
```paste below

```


Problem statement:
add example for jinja2 template for eos_config module
##### SUMMARY
There is no example with jinja2 for Arista

Add an example like this->

```yaml
- name: render jinja template onto Arista switch
  eos_config:
    src: eos_template.j2
```
##### ISSUE TYPE
 - Documentation Report

##### COMPONENT NAME
N/A

##### ANSIBLE VERSION
N/A


##### CONFIGURATION
N/A


##### OS / ENVIRONMENT
N/A


##### STEPS TO REPRODUCE
N/A

##### EXPECTED RESULTS
N/A

##### ACTUAL RESULTS
N/A

Hints from issue discussion:
Files identified in the description:
None

If these files are inaccurate, please update the `component name` section of the description or use the `!component` bot command.

[click here for bot help](https://github.com/ansible/ansibullbot/blob/master/ISSUE_HELP.md)
<!--- boilerplate: components_banner --->

Commit message: added jinja2 example

Patch to review:
diff --git a/docs/docsite/rst/dev_guide/testing/sanity/index.rst.new b/docs/docsite/rst/dev_guide/testing/sanity/index.rst.new
new file mode 100644
index 00000000000000..c23afdc463daec
--- /dev/null
+++ b/docs/docsite/rst/dev_guide/testing/sanity/index.rst.new
@@ -0,0 +1,46 @@
+Sanity Tests
+============
+
+The following sanity tests are available as ``--test`` options for ``ansible-test sanity``.
+This list is also available using ``ansible-test sanity --list-tests``.
+
+.. toctree::
+   :maxdepth: 1
+
+   ansible-doc
+   azure-requirements
+   boilerplate
+   botmeta
+   changelog
+   compile
+   configure-remoting-ps1
+   empty-init
+   import
+   integration-aliases
+   line-endings
+   no-assert
+   no-basestring
+   no-dict-iteritems
+   no-dict-iterkeys
+   no-dict-itervalues
+   no-get-exception
+   no-illegal-filenames
+   no-smart-quotes
+   no-tests-as-filters
+   no-underscore-variable
+   no-unicode-literals
+   pep8
+   pslint
+   pylint
+   replace-urlopen
+   required-and-default-attributes
+   rstcheck
+   sanity-docs
+   shebang
+   shellcheck
+   test-constraints
+   use-argspec-type-path
+   use-compat-six
+   validate-modules
+   yamllint
+
diff --git a/lib/ansible/modules/network/eos/eos_config.py b/lib/ansible/modules/network/eos/eos_config.py
index 53d7ab10802ecf..b84c749197c2ab 100644
--- a/lib/ansible/modules/network/eos/eos_config.py
+++ b/lib/ansible/modules/network/eos/eos_config.py
@@ -228,6 +228,11 @@
   eos_config:
     src: eos.cfg
 
+- name: render a Jinja2 template onto an Arista switch
+  eos_config:
+    backup: yes
+    src: eos_template.j2
+
 - name: diff the running config against a master config
   eos_config:
     diff_against: intended


Code review comments:
diff_hunk: @@ -0,0 +1,46 @@
+Sanity Tests
path: docs/docsite/rst/dev_guide/testing/sanity/index.rst.new
text: @user1:
Added accidently? 

@author:
grrr... still not sure why that file keeps showing up... removing now, thanks!