An Ansible playbook to get started with Flask, Apache and mod_wsgi.
- Installs Apache and mod_wsgi packages.
- Adds an Apache config file.
- Creates a pair of trivial Hello World apps using Flask and bare WSGI.
- Restarts Apache.
- CentOS / RHEL 6
- Ansible and the EPEL repository installed
Run: ansible-playbook -i 'localhost,' -c local main.yml
After completion, the files can be found under /var/www/flaskdemo and the apps can be accessed at: