首页 > 解决方案 > Ansible playbook 返回“pickle 数据被截断,不安全的字符串 pickle”

问题描述

- hosts: Router

  tasks:

  - name: show int fa4 ip address
    ios_command:
      commands: show run int fa4
    become: yes
    become_method: enable


    register: Teste
  - debug: var=Teste.stdout_lines

我收到以下错误:

fatal: [Router]: FAILED! => {"msg": "pickle data was truncated"}

使用 Ansible 版本:2.6.1

在剧本中添加了以下内容: gather_facts: no

错误更改为:

fatal: [Router]: FAILED! => {"msg": "insecure string pickle"}

有没有人看到这个/有解决方案?

标签: pythonansible

解决方案


推荐阅读