Skip to content

Commit

Permalink
fix: include remote galaxy role installation capability
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkProminic committed May 15, 2024
1 parent 59a62ef commit 9fd7a62
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/Hosts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@ def Hosts.configure(config, settings)
ansible.compatibility_mode = localscript['compatibility_mode'].to_s
ansible.install_mode = "pip" if localscript['install_mode'] == "pip"
ansible.verbose = localscript['verbose']
ansible.galaxy_role_file = "requirements.yml" #localscript['remote_collections']
ansible.galaxy_roles_path = "/vagrant/ansible/ansible_collections"
ansible.config_file = "/vagrant/ansible/ansible.cfg"
ansible.extra_vars = {
settings: host['settings'],
Expand All @@ -271,6 +273,10 @@ def Hosts.configure(config, settings)
ansible_winrm_server_cert_validation: "ignore",
ansible_ssh_pipelining:localscript['ssh_pipelining'],
ansible_python_interpreter:localscript['ansible_python_interpreter']}
if localscript['remote_collections']
ansible.galaxy_role_file = "requirements.yml"
ansible.galaxy_roles_path = "/vagrant/ansible/ansible_collections"
end
end
end
end
Expand Down

0 comments on commit 9fd7a62

Please sign in to comment.