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

后端 未结 19 928
执念已碎
执念已碎 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:59

    You need python 2.7 to run Ansible. On Ubuntu 16.04, you can install it via this command:

    sudo apt-get install python-minimal

    After that, I could run

    ansible-playbook -i inventories/staging playbook.yml

    Please check more at Using ansible on Ubuntu 16.04

    0 讨论(0)
提交回复
热议问题