TASK [letsencrypt : Generate the certificates]: /usr/bin/env: ‘python’: No such file or directory

1.) Fresh Ubuntu 18.04:

  • python: NO
  • python3: YES

2.) After running ansible-playbook server.yml -e env=staging:

  • python: NO
  • python3: YES

3.) Trying ./bin/deploy.sh staging dev.ouun.io deploy breaks on “Gathering Facts”:

TASK [Gathering Facts] **************************************************************************************************************************************************************************
System info:
  Ansible 2.7.5; Darwin
  Trellis 1.0.0: December 27th, 2018
---------------------------------------------------
MODULE FAILURE
See stdout/stderr for the exact error
/bin/sh: 1: /usr/bin/python: not found

fatal: [xxx.xxx.xxx.xx]: FAILED! => {"changed": false, "module_stdout": "", "rc": 127}

4.) Manually installing python via apt install python

5.) Deploy via ./bin/deploy.sh staging dev.ouun.io : SUCCESS :rocket:

Regardless, certain parts of Trellis assume /usr/bin/python exists right now and if it is installed, it’s happening as a transitive dependency and not explicitly. I’m thinking we should just install python2 explicitly for the time being to prevent these issues.

Yes, I agree that this would help especially those who start with the latest Trellis version and come to the point to deploy.