Unexpected Exception: name 'basestring' is not defined when invoking ansible2

后端 未结 5 748
逝去的感伤
逝去的感伤 2020-12-28 11:37

I\'m trying to execute ansible2 commnads...

When I do:

ansible-playbook -vvv -i my/inventory my/playbook.yml

I get:

5条回答
  •  鱼传尺愫
    2020-12-28 12:05

    basestring is not available in Python 3.:

    This can be fixed for python 2.x and 3.x with the following:

    try:
      basestring
    except NameError:
      basestring = str
    

提交回复
热议问题