You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> HCLOUD_TOKEN=$HCLOUD_TOKEN ansible-inventory --list
[WARNING]: * Failed to parse .../hcloud.yml with ansible_collections.hetzner.hcloud.plugins.inventory.hcloud plugin: 'NoneType' object has no attribute 'ip'
[WARNING]: Unable to parse /home/haase/work/bytecookie/bytecookie-ansible/hcloud.yml as an inventory source
[WARNING]: No inventory was parsed, only implicit localhost is available
Hi @mzhaase,
I reproduced your error by using the older version of the hetzner.hcloud collection bundled within the ansible package.
Please make sure that you installed the newer version of the hetzner.hcloud collection from ansible-galaxy, the command you wrote in the reproduction steps was invalid:
ansible-galaxe install hetzner.hcloud
You can use the following instead:
ansible-galaxy collection install hetzner.hcloud
To reproduce:
# We have a server without ipv4
hcloud server create --name tmp --type cx11 --image debian-12 --without-ipv4
docker run -it --rm -v $(pwd):/src ubuntu:20.04 bash
cd /src
apt update
apt install software-properties-common
add-apt-repository ppa:ansible/ansible
apt install ansible python3-pip
pip3 install hcloud
ansible --version
export HCLOUD_TOKEN=$HCLOUD_TOKEN## This is not working
ansible-inventory --list -vvv
## This is working
ansible-galaxy collection install hetzner.hcloud
ansible-inventory --list -vvv
SUMMARY
ISSUE TYPE
COMPONENT NAME
ansible_collections.hetzner.hcloud.plugins.inventory.hcloud
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Ubuntu 20.04.6 LTS
STEPS TO REPRODUCE
EXPECTED RESULTS
List the hosts.
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: