Skip to content

Commit

Permalink
Support ansible collections installation
Browse files Browse the repository at this point in the history
Combine ability to install roles to root-owned path
https://www.vagrantup.com/docs/provisioning/ansible_local#install-galaxy-roles-in-a-path-owned-by-root
with support to also install collections
hashicorp/vagrant#10958 (comment)
  • Loading branch information
b00ga committed Jun 8, 2021
1 parent f7ea431 commit 0794d38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Vagrantfile
Expand Up @@ -18,7 +18,7 @@ Vagrant.configure("2") do |config|
ansible.playbook = "playbook.yml"
ansible.galaxy_role_file = "requirements.yml"
ansible.galaxy_roles_path = "/etc/ansible/roles"
ansible.galaxy_command = "sudo ansible-galaxy install --role-file=%{role_file} --roles-path=%{roles_path} --force"
ansible.galaxy_command = "sudo ansible-galaxy collection install -r %{role_file} --force && sudo ansible-galaxy role install -r %{role_file} --force"
ansible.provisioning_path = "/ansible"
ansible.compatibility_mode = "2.0"
#ansible.verbose = '-vvvv'
Expand Down

0 comments on commit 0794d38

Please sign in to comment.