-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a required version plugin #148
Conversation
Also @ruebot could test this. |
|
This is great. I'd also be interested in the version information for Ansible being on the README.md page as well, so users coming in can start by grabbing the right version and not finding out that they have the wrong one when they "vagrant up". |
Based on the statement in the latest listserv post.
https://groups.google.com/forum/#!msg/islandora/BlWgiu68zX8/SPVas7qFAAAJ Maybe we can merge? |
fwiw, I've used Ansible 2.8.7 (on a mac) successfully a number of times. Just a data point, not any sort of comment on whether or not to merge. |
So after sinking a nontrivial amount of time to get islandora-playbook to spin up with Vagrant, I can confirm that ansible v2.5.1 (the default version that you get with Having Vagrant error out due to my having the wrong version of ansible early on in the process and tell me what version of ansible to install would have saved me a lot of time by leading me down the proper path, so I'm adding my $0.02 that including this plugin to specify a minimum/maximum version is 100% A Good Thing For Users. |
GitHub Issue: Islandora/documentation#1343
What does this Pull Request do?
Adds a plugin that enforces a minimum and maximum ansible version. The versions are loaded from a file
ansible-version.yml
in the root directory of the playbook.How should this be tested?
I adjusted the ansible-version.yml to have either a minimum version greater than or a maximum version less than my current version and tried to run either
vagrant up
ansible-playbook -i inventory/vagrant -uvagrant -e'islandora_distro=ubuntu/bionic64' playbook.yml
If you run the vagrant up and the machine has already been built it will not fail and just start the machine, if the machine is not built then it will build the box and then fail.
For example, with ansible version 2.8.1
I changed
ansible-version.yml
toThen
or
Interested parties
@Islandora-Devops/committers @g7morris