UpCloudLtd / upcloud-ansible-collection

Ansible UpCloud Collection module
MIT License
4 stars 2 forks source link

Using collection stops ansible from using IP address with the -i argument #8

Closed esommars closed 3 years ago

esommars commented 3 years ago

Calling the command below works without the collection, ansible-playbook -u root -i '94.237.xxx.xx,' app.yml Adding it produces this:

[WARNING]: Unable to parse 94.237.xxx.xx, as an inventory source [WARNING]: No inventory was parsed, only implicit localhost is available [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'

esommars commented 3 years ago

Seems like this is not a bug, the ansible.cfg should have

[inventory]
enable_plugins = community.upcloud.upcloud, host_list, yaml

instead of only this:

[inventory]
enable_plugins = community.upcloud.upcloud
Darep commented 3 years ago

Good to hear that you figured it out! :) Yeah, on my machine I don't even need the ansible.cfg file at all – works fine without it. Maybe the README should be changed to mention that you only need to change the ansible.cfg like that in certain cases 🤔

Darep commented 3 years ago

README has now been updated ^