Updates Ansible to 3.3.0

This commit is contained in:
Jan Beilicke 2021-04-21 22:44:52 +02:00
parent a0717868ae
commit a1a8ccbd4b
3 changed files with 18 additions and 7 deletions

13
Vagrantfile vendored
View file

@ -76,7 +76,18 @@ Vagrant.configure(2) do |config|
ansible.compatibility_mode = "2.0"
ansible.install_mode = "pip"
ansible.pip_install_cmd = "sudo apt install -y python3-distutils && curl https://bootstrap.pypa.io/get-pip.py | sudo python3"
ansible.version = "2.10.8"
# The following will not work properly since the split of Ansible into ansible-base (soon ansible-core)
# and the Ansible collections and modules both together resembling Ansible.
# `ansible --version` will yield the ansible-base version and this command is used by ansible_local.
# It is not suitable to figure out which Ansible distribution/bundle was installed.
# To workaround the wrongful mismatch result when installing Ansible through Vagrant,
# we have to leave ansible.version empty/unset and use ansible.pip_args to provide the desired version.
#
# See also:
# - https://www.ansible.com/blog/ansible-3.0.0-qa
# - https://github.com/hashicorp/vagrant/issues/12204
#ansible.version = "3.3.0"
ansible.pip_args = "ansible==3.3.0" # Will install ansible-base==2.10.8, ansible --version will yield 2.10.8
ansible.playbook = "provisioning/playbook.yml"
#ansible.inventory_path = "provisioning/inventory"
ansible.galaxy_role_file = "provisioning/requirements.yml"