title: Unicode error while increment variable value
body: <p>When I work with static variables it works absolutely fine. But when I try to use dynamic it does not work.</p>
  <p>The playbook:</p>
  <pre class="lang-yaml prettyprint-override"><code>---
  - hosts: Swi1
    vars: 
      NewOne: 0
      provider:
        host: &quot;192.168.0.30&quot;
        transport: &quot;cli&quot;
        username: &quot;cisco&quot;
        password: &quot;cisco&quot;
      
    tasks:
      - name: gather facts
        register: iosfacts
        ios_facts:
          provider: &quot;{{ provider }}&quot;
          
      - name: Display the value of the counter
        debug:
          msg: &quot;NewOne={{ NewOne }} / Data type={{ NewOne | type_debug }}&quot;  
          
      - name: interface description
        set_fact: 
          NewOne: &quot; {{ NewOne + 1 }}&quot;
          parents: &quot;interface {{ item.key }}&quot;
        with_dict: &quot;{{ iosfacts.ansible_facts.ansible_net_interfaces }}&quot;
        when: item.value.operstatus == &quot;up&quot;
        
      - debug:
          msg: &quot; This is Debug {{ NewOne }}&quot;
  </code></pre>
  <p>Gives the error:</p>
  <blockquote>
  <p>fatal: [Swi1]: FAILED! =&gt; {&quot;msg&quot;: &quot;Unexpected templating type error
  occurred on ({{ NewOne + 1 }}): coercing to Unicode: need string or
  buffer, int found&quot;}</p>
  </blockquote>