Unerwarteter Ausnahmefehler ‚NonType‘

Unerwarteter Ausnahmefehler ‚NonType‘

Immer wenn ich versuche, es auszuführen ansible --version, wird mir der folgende Fehler angezeigt.

Bildbeschreibung hier eingeben

Es ist so etwas wieDas, aber dafür gibt es keine Lösung.

Antwort1

  1. Ansible istgut verpacktin Ubuntu:

Paket ansible

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. Wenn Sie wirklich eine neuere Version installieren müssen, führen Sie aus

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

    Das führt zu

    $ 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]
    

verwandte Informationen