Ansible fails with /bin/sh: 1: /usr/bin/python: not found

后端 未结 19 1111
执念已碎
执念已碎 2020-11-29 15:15

I\'m running into an error I\'ve never seen before. Here is the command and the error:

$ ansible-playbook create_api.yml

PLAY [straw] **********************         


        
19条回答
  •  一个人的身影
    2020-11-29 15:50

    You can indicate to Ubuntu 18.04 that you want to use python3 as the the first priority for /usr/bin/python.

    - hosts: all
      become: true
      pre_tasks:
        - raw: update-alternatives --install /usr/bin/python python /usr/bin/python3 1
    

提交回复
热议问题