0

I was trying to get ansible for Junos router. While I execute the following code I get the following error:

"An exception occurred during task execution. To see the full traceback, use -vvv. The error was: UnicodeDecodeError: 'utf8' codec can't decode byte 0xff in position 0: invalid start by"

I tired to enable netconf on end device but still no luck. I couldn't use any galaxy modules as we have that...

Am i missing something?

Thanks

  hosts: 10.1.1.1
  gather_facts: true
  connection: local
  tasks:
    - name: show version
      junos_command:
        commands:
          - show version
        host: "{{ ansible_host }}"
      register: output
sks
  • 11
  • 3
  • 1
    which version of ansible you are using? Also, share debug logs when you run you playbook with debugging (-vvvv) – Nitin Kr Sep 26 '19 at 02:45

2 Answers2

0

UTF-8 bitstream cannot by specification contain 0xFE and 0xFF.

0

UTF-8 bitstream cannot by specification contain 0xFE and 0xFF and you can find them using this command :

grep -P '[\xe9\xFF]' * -r 
MUY Belgium
  • 2,330
  • 4
  • 30
  • 46