drone-plugins / drone-ansible

Drone plugin to provision via Ansible
http://plugins.drone.io/drone-plugins/drone-ansible
Apache License 2.0
30 stars 41 forks source link

Change Galaxy flag to -r to support both collections and roles #40

Closed Forsbakk closed 3 years ago

Forsbakk commented 3 years ago

Changed Galaxy flag from --role-file to -r so you may use it to install collections as well.

https://docs.ansible.com/ansible/latest/user_guide/collections_using.html

tboerger commented 3 years ago

AFAIK -r is just an alias, it's important to call install and not role install or collection install.

Forsbakk commented 3 years ago

I am sorry. It is different behavior based on ansible-galaxy version, not the flag.

Current version on docker hub

ansible-galaxy --version
ansible-galaxy 2.9.13

2.9.13 will not install this YML successfully

collections:
- name: netbox.netbox
ansible-galaxy --version
ansible-galaxy 2.10.2

2.10.2 install's it successfully

tboerger commented 3 years ago

Ok, than it's solved with the latest plugin version.