title: ansible cisco ios_command module "unable to set terminal parameters"
body: <p>I am running ansible v 2.5 and trying to run a basic &quot;show clock&quot; command on my switch.</p>
  <p>How ever it errors out saying that it is unable to set terminal parameters,</p>
  <p>following is my yml File:</p>
  <pre><code>---
  - hosts: ios_devices
    gather_facts: no
    connection: local
  
    vars_prompt:
    - name: &quot;mgmt_username&quot;
      prompt: &quot;Username&quot;
      private: no
    - name: &quot;mgmt_password&quot;
      prompt: &quot;Password&quot;
  
    tasks:
  
    - name: SYS | Define provider
      set_fact:
        provider:
          host: &quot;{{ inventory_hostname }}&quot;
          username: &quot;{{ mgmt_username }}&quot;
          password: &quot;{{ mgmt_password }}&quot;
  
    - name: IOS | Show clock
      ios_command:
        provider: &quot;{{ provider }}&quot;
        commands:
          - show clock
      register: clock
  
    - debug: msg=&quot;{{ clock.stdout }}&quot;
  </code></pre>
  <p>and on running the playbook i receive the following error:</p>
  <pre><code>fatal: [x.x.x.x]: FAILED! =&gt; {&quot;msg&quot;: &quot;unable to set terminal parameters&quot;}
  </code></pre>