An Ansible playbook to install web2py on Ubuntu 20.04
- Install Ubuntu 20.04
- Create ssh key
- copy-ssh-id to your new server
- ssh to new server to ensure you can connect without any passwords or prompts
- Update the variables at the top of the yaml file for:
- ansible_user - this should be the user on your ubuntu server
- web2py_password - this is the password for the admin console to be used in web2py
- cd to ansible playbook directory
- PYTHON3 run
ansible-playbook -i hosts web2py-install.yaml -bK
- PYTHON2 run
ansible-playbook -i hosts web2py-install-2.yaml -bK
- PYTHON3 run
- Enter 'become' password
- Watch the server install
This playbook was based on the setup-web2py-nginx-uwsgi-ubuntu.sh install script included in web2py with help from a script posted by Clemens.
Please contact me with any changes, ommissions or suggestions.