ansible-for-devops
ansible-for-devops copied to clipboard
Try to fix chapter 10 deployment example (#429)
I tried to fix the following issues:
- ~~Using
ubuntu-20.04instead ofubuntu-latest(which defaults to Ubuntu 22.04 since November last year) in the CI script. This temporarily fixes theFailed to connect to bus: No such file or directoryproblem, that the scheduled CI builds are facing too. It seems to be related to the Docker cgroups change you also blogged about. However I'm not smart enough to actually fix the underlying issue.~~ => Fixed by a4b7cfb5fb4e536496aad02161910238167e757d - Try to fix the chapter 10 "Deployment" example with these changes:
- Use the older Ruby version 2.6.0 to fix the
NoMethodError: undefined method 'new' for BigDecimal:Classerror. - Install the newer
bundlerversion 2.1.4 that is required by the application. - Set the Git config setting
safe.directoryto'*'and clone the application withoutbecome: trueto prevent some weird user related errors. (There is probably also a more correct version to this, but it works.) - Do not create the
app_directoryduring provisioning (not strictly necessary).
- Use the older Ruby version 2.6.0 to fix the
- Enable the
deployments.ymltest again in the CI configuration. - Set
fail-fasttofalse, mainly because thedrupal.ymltest is currently failing and I still want to see if everything else works. The alternative would be to temporarily disable thedrupal.ymltest in the CI config.
If you'd like to re-test again, I would take a closer look at this PR—would love to get that example up and running again (but I do want to make sure I run it on ubuntu-latest, as locking in a version means I'll be blindsided whenever the version of Ubuntu I'm locked into goes away.
I removed my first commit that changed from ubuntu-latest to ubuntu-20.04. It all seems to work just fine.