Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Help - Getting an error, running every module #67

Closed
alexandregoncalves17 opened this issue Aug 5, 2021 · 11 comments
Closed

Help - Getting an error, running every module #67

alexandregoncalves17 opened this issue Aug 5, 2021 · 11 comments

Comments

@alexandregoncalves17
Copy link

alexandregoncalves17 commented Aug 5, 2021

Versions:
nios = 8.5
ansible = ansible [core 2.11.3]
Python = 3.9.2
pip Infoblox-client = 0.5.0

I am running a simple playbook:

Screenshot 2021-08-05 at 15 25 11

And I get this error:

Screenshot 2021-08-05 at 15 20 05

Can you help me, please?

@badnetmask
Copy link
Contributor

Looks like you might be running an older version of the NIOS Ansible module, because this has already been fixed a while ago.

@alexandregoncalves17
Copy link
Author

Looks like you might be running an older version of the NIOS Ansible module, because this has already been fixed a while ago.

I created this code today, installed everything today, but I really don't know how to check the version of NIOS ansible module.

@alexandregoncalves17
Copy link
Author

Looks like you might be running an older version of the NIOS Ansible module, because this has already been fixed a while ago.

Screenshot 2021-08-05 at 15 53 46

@badnetmask
Copy link
Contributor

Interesting... The code in galaxy.ansible.com does not match the code here in this repo, there might be something wrong there.
I'm not part of the maintainers team, just a contributor, so I'll tag @anagha-infoblox here to take a look.
Sorry I can't help further.

In the meantime, you might want to do a direct git pull from GitHub, or downgrade your Ansible to 2.10, whatever is more convenient to you.

@alexandregoncalves17
Copy link
Author

alexandregoncalves17 commented Aug 5, 2021

Interesting... The code in galaxy.ansible.com does not match the code here in this repo, there might be something wrong there.
I'm not part of the maintainers team, just a contributor, so I'll tag @anagha-infoblox here to take a look.
Sorry I can't help further.

In the meantime, you might want to do a direct git pull from GitHub, or downgrade your Ansible to 2.10, whatever is more convenient to you.

Very thanks for your help! I will pull from GitHub and wait for Anagha.

@anagha-infoblox
Copy link
Contributor

The problem has been fixed in the GitHub repo, and it has not been published to galaxy.ansible.com yet. In galaxy.ansible.com support is provided only for Python 2.x. We will be publishing this in our next release(last week of August). As of now, please pull the code from the GitHub repository. Sorry for the confusion.

@alexandregoncalves17
Copy link
Author

The problem has been fixed in the GitHub repo, and it has not been published to galaxy.ansible.com yet. In galaxy.ansible.com support is provided only for Python 2.x. We will be publishing this in our next release(last week of August). As of now, please pull the code from the GitHub repository. Sorry for the confusion.

Thanks for your answer!

I was trying to install it with this command:

Tried to do via requirements file too, but not working. I'm new to ansible, do you know a way to help me ?

@anagha-infoblox
Copy link
Contributor

The problem has been fixed in the GitHub repo, and it has not been published to galaxy.ansible.com yet. In galaxy.ansible.com support is provided only for Python 2.x. We will be publishing this in our next release(last week of August). As of now, please pull the code from the GitHub repository. Sorry for the confusion.

Thanks for your answer!

I was trying to install it with this command:

Tried to do via requirements file too, but not working. I'm new to ansible, do you know a way to help me ?

Following are the steps:
1. git clone https://github.com/infobloxopen/infoblox-ansible.git
2. cd infoblox-ansible(or the path where repository is cloned).
3. cd infoblox-ansible/ansible_collections/infoblox/nios_modules/ (or the path where the repository is cloned
4. After getting into the appropriate folder, the following command has to be executed: ansible-galaxy collection build. This generates a .tar file - “infoblox-nios_modules-1.1.0.tar.gz”.
5. cd – change directory to the home, followed by the command cd .ansible
6. The following command has to be executed in order to install the collection ansible-galaxy collection install .tar.gz -p ./collections
Note: Provide the full path of the collection name(like /home/user/infoblox-ansible/ansible_collections/infoblox/nios_modules/infoblox-nios_modules-1.1.0.tar.gz)

Hope this helps you.

@badnetmask
Copy link
Contributor

Easy way:

ansible-galaxy collection install git+https://github.com/infobloxopen/infoblox-ansible.git#ansible_collections/infoblox/nios_modules

@alexandregoncalves17
Copy link
Author

alexandregoncalves17 commented Aug 5, 2021

Very thank you @badnetmask and @anagha-infoblox !

@anagha-infoblox
Copy link
Contributor

Hi @alexandregoncalves17,
A new release is made on the Ansible Galaxy which fixes this issue. Please install the latest version.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants