Closed mgedmin closed 3 years ago
I tested the playbook on vaiduoklis with ansible-playbook deploy.yml -u root -CD
, but it fails early on because the PostgreSQL database does not exist. So it's hard to test without actually running everything...
I did not test Vagrant because sigh the official ubuntu/ boxes require VirtualBox, and I don't want to install it. I use vagrant-libvirt for my own Vagrant tests, but those require non-standard boxes.
Also,
Modern versions of ansible don't understand the 'version_compare()' filter, which was renamed to 'version()' in 2.5, and is a test, not a filter besides
Modern versions of ansible emit warnings when you use 'apt' with a loop instead of passing a list to 'name'
I set the minimum Ansible version to 2.5 although maybe it should be 2.8, which IIRC introduced the interpreter_python = auto setting, which I want to have Ansible use Python 3 by default, for reasons (e.g. python3-apt is installed on vaiduoklis, but python-apt isn't)
ubuntu/trusty64 is very outdated thanks
the letsencrypt client was renamed to certbot ages ago
the 'restart apache' handler was missing
Apache config files should live in sites-available; sites-enabled should contain symlinks only