예기치 않은 예외 오류 'NonType'

예기치 않은 예외 오류 'NonType'

실행하려고 할 때마다 ansible --version아래 오류가 표시됩니다.

여기에 이미지 설명을 입력하세요

그것은 다음과 같습니다이것, 그러나 이에 대한 해결책은 없습니다.

답변1

  1. 앤서블은잘 포장우분투에서:

패키지 앤서블

trusty (14.04LTS) (admin): Configuration management, deployment, and task execution system [universe]
1.5.4+dfsg-1: all
trusty-backports (admin): Configuration management, deployment, and task execution system [universe]
1.7.2+dfsg-1~ubuntu14.04.1: all
xenial (16.04LTS) (admin): Configuration management, deployment, and task execution system [universe]
2.0.0.2-2: all
xenial-updates (admin): Configuration management, deployment, and task execution system [universe]
2.0.0.2-2ubuntu1: all
xenial-backports (admin): Configuration management, deployment, and task execution system [universe]
2.1.1.0-1~ubuntu16.04.1: all
artful (admin): Configuration management, deployment, and task execution system [universe]
2.3.1.0+dfsg-2: all
bionic (admin): Configuration management, deployment, and task execution system [universe]
2.3.1.0+dfsg-2: all
  1. 최신 버전을 설치해야 한다면 다음을 실행해야 합니다.

    sudo apt-get install python-pip
    sudo pip install ansible
    sudo pip install paramiko
    

    이로 인해

    $ ansible --version
    ansible 2.4.3.0
      config file = None
      configured module search path = [u'/home/xenial/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
      ansible python module location = /usr/local/lib/python2.7/dist-packages/ansible
      executable location = /usr/local/bin/ansible
      python version = 2.7.12 (default, Dec  4 2017, 14:50:18) [GCC 5.4.0 20160609]
    

관련 정보