<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
<li>Documentation Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">eos_config<br>
(any of the eos_ modules)</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible-playbook 2.3.1.0
  config file = 
  configured module search path = Default w/o overrides
  python version = 2.7.13 (default, Dec 18 2016, 07:03:34) [GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)]"><pre class="notranslate"><code class="notranslate">ansible-playbook 2.3.1.0
  config file = 
  configured module search path = Default w/o overrides
  python version = 2.7.13 (default, Dec 18 2016, 07:03:34) [GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)]
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<p dir="auto">(default)</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">Mac OS</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">using any of the <code class="notranslate">eos_</code> modules gives various deprecation warnings, but there's no solution or mention in the docs</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<p dir="auto">See <a href="https://gist.github.com/halberom/d15181e6403ea3d9a4296a3fa6c0df7b">https://gist.github.com/halberom/d15181e6403ea3d9a4296a3fa6c0df7b</a></p>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">A comment in the docs at a minimum.</p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK [run show inventory] ******************************************************************************************************************************************************************************************************************************************************
 [WARNING]: argument transport has been deprecated and will be removed in a future version"><pre class="notranslate"><code class="notranslate">TASK [run show inventory] ******************************************************************************************************************************************************************************************************************************************************
 [WARNING]: argument transport has been deprecated and will be removed in a future version
</code></pre></div>
<p dir="auto">But there's nothing in the docs mentioning what it will be replaced with.</p>
<h5 dir="auto">ISSUE TYPE</h5>

<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>

<p dir="auto">networking<br>
eos-config</p>
<h5 dir="auto">ANSIBLE VERSION</h5>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.3.1.0
  config file = /Users/sean/src/ansibledemos/ansible/ansible.cfg
  configured module search path = Default w/o overrides
  python version = 2.7.6 (v2.7.6:3a1db0d2747e, Nov 10 2013, 00:42:54) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]"><pre class="notranslate"><code class="notranslate">ansible 2.3.1.0
  config file = /Users/sean/src/ansibledemos/ansible/ansible.cfg
  configured module search path = Default w/o overrides
  python version = 2.7.6 (v2.7.6:3a1db0d2747e, Nov 10 2013, 00:42:54) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>

<h5 dir="auto">OS / ENVIRONMENT</h5>

<h5 dir="auto">SUMMARY</h5>

<h5 dir="auto">STEPS TO REPRODUCE</h5>

<p dir="auto">Ran a playbook and wasn't expecting to receive the deprecated messages as per the post below from Peter that states the provider argument is not deprecated:</p>
<p dir="auto"><a href="https://www.ansible.com/blog/network-device-authentication-with-ansible-2-3" rel="nofollow">https://www.ansible.com/blog/network-device-authentication-with-ansible-2-3</a></p>

<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="---
- hosts: switches
  gather_facts: 'no'
  # Run Anisble on the local server using CLI or eAPI to the node
  connection: local
  vars:
    model_name: '{{ version_data.stdout[0].modelName }}'
    eos_version: '{{ version_data.stdout[0].internalVersion }}'

  tasks:
    - name: Get Version
      eos_command:
        commands: 'show version'
        provider: '{{ eos_connection }}'
      register: version_data

  #    - debug: msg=&quot;{{version_data}}&quot;

    - name: Print report
      template:
        src: version_report.j2
        dest: ./version_report-{{ inventory_hostname }}.txt

    - name: Configure vlans
      eos_config:
        backup: yes
        src: vlans.j2
        provider: '{{ eos_connection }}'

    - name: Configure interfaces
      eos_config:
        src: intf.j2
        provider: '{{ eos_connection }}'

---
# make ansible play nice in a virtualenv
ansible_python_interpreter: python

eos_connection:
  host: &quot;{{ inventory_hostname }}&quot;
  transport: eapi
  use_ssl: yes
  validate_certs: no"><pre class="notranslate">---
- <span class="pl-ent">hosts</span>: <span class="pl-s">switches</span>
  <span class="pl-ent">gather_facts</span>: <span class="pl-s"><span class="pl-pds">'</span>no<span class="pl-pds">'</span></span>
  <span class="pl-c"><span class="pl-c">#</span> Run Anisble on the local server using CLI or eAPI to the node</span>
  <span class="pl-ent">connection</span>: <span class="pl-s">local</span>
  <span class="pl-ent">vars</span>:
    <span class="pl-ent">model_name</span>: <span class="pl-s"><span class="pl-pds">'</span>{{ version_data.stdout[0].modelName }}<span class="pl-pds">'</span></span>
    <span class="pl-ent">eos_version</span>: <span class="pl-s"><span class="pl-pds">'</span>{{ version_data.stdout[0].internalVersion }}<span class="pl-pds">'</span></span>

  <span class="pl-ent">tasks</span>:
    - <span class="pl-ent">name</span>: <span class="pl-s">Get Version</span>
      <span class="pl-ent">eos_command</span>:
        <span class="pl-ent">commands</span>: <span class="pl-s"><span class="pl-pds">'</span>show version<span class="pl-pds">'</span></span>
        <span class="pl-ent">provider</span>: <span class="pl-s"><span class="pl-pds">'</span>{{ eos_connection }}<span class="pl-pds">'</span></span>
      <span class="pl-ent">register</span>: <span class="pl-s">version_data</span>

  <span class="pl-c"><span class="pl-c">#</span>    - debug: msg="{{version_data}}"</span>

    - <span class="pl-ent">name</span>: <span class="pl-s">Print report</span>
      <span class="pl-ent">template</span>:
        <span class="pl-ent">src</span>: <span class="pl-s">version_report.j2</span>
        <span class="pl-ent">dest</span>: <span class="pl-s">./version_report-{{ inventory_hostname }}.txt</span>

    - <span class="pl-ent">name</span>: <span class="pl-s">Configure vlans</span>
      <span class="pl-ent">eos_config</span>:
        <span class="pl-ent">backup</span>: <span class="pl-s">yes</span>
        <span class="pl-ent">src</span>: <span class="pl-s">vlans.j2</span>
        <span class="pl-ent">provider</span>: <span class="pl-s"><span class="pl-pds">'</span>{{ eos_connection }}<span class="pl-pds">'</span></span>

    - <span class="pl-ent">name</span>: <span class="pl-s">Configure interfaces</span>
      <span class="pl-ent">eos_config</span>:
        <span class="pl-ent">src</span>: <span class="pl-s">intf.j2</span>
        <span class="pl-ent">provider</span>: <span class="pl-s"><span class="pl-pds">'</span>{{ eos_connection }}<span class="pl-pds">'</span></span>

---
<span class="pl-c"><span class="pl-c">#</span> make ansible play nice in a virtualenv</span>
<span class="pl-ent">ansible_python_interpreter</span>: <span class="pl-s">python</span>

<span class="pl-ent">eos_connection</span>:
  <span class="pl-ent">host</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ inventory_hostname }}<span class="pl-pds">"</span></span>
  <span class="pl-ent">transport</span>: <span class="pl-s">eapi</span>
  <span class="pl-ent">use_ssl</span>: <span class="pl-s">yes</span>
  <span class="pl-ent">validate_certs</span>: <span class="pl-s">no</span></pre></div>

<h5 dir="auto">EXPECTED RESULTS</h5>

<p dir="auto">No deprecated messages as using the provider argument</p>
<h5 dir="auto">ACTUAL RESULTS</h5>


<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [switches] ******************************************************************************************************************************************************************************************************************************

TASK [Get Version] ***************************************************************************************************************************************************************************************************************************
 [WARNING]: argument username has been deprecated and will be removed in a future version

 [WARNING]: argument password has been deprecated and will be removed in a future version

 [WARNING]: argument transport has been deprecated and will be removed in a future version

ok: [spine1]

TASK [Print report] **************************************************************************************************************************************************************************************************************************
ok: [spine1]

TASK [Configure vlans] ***********************************************************************************************************************************************************************************************************************
ok: [spine1]

TASK [Configure interfaces] ******************************************************************************************************************************************************************************************************************
ok: [spine1]

PLAY RECAP ***********************************************************************************************************************************************************************************************************************************
spine1                     : ok=4    changed=0    unreachable=0    failed=0"><pre class="notranslate"><code class="notranslate">PLAY [switches] ******************************************************************************************************************************************************************************************************************************

TASK [Get Version] ***************************************************************************************************************************************************************************************************************************
 [WARNING]: argument username has been deprecated and will be removed in a future version

 [WARNING]: argument password has been deprecated and will be removed in a future version

 [WARNING]: argument transport has been deprecated and will be removed in a future version

ok: [spine1]

TASK [Print report] **************************************************************************************************************************************************************************************************************************
ok: [spine1]

TASK [Configure vlans] ***********************************************************************************************************************************************************************************************************************
ok: [spine1]

TASK [Configure interfaces] ******************************************************************************************************************************************************************************************************************
ok: [spine1]

PLAY RECAP ***********************************************************************************************************************************************************************************************************************************
spine1                     : ok=4    changed=0    unreachable=0    failed=0
</code></pre></div>