Explicit become=false to avoid issues with HTTAPI in certain scenarios #1199
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello, I had been on version 1.* of the collection for some time and today I decided to upgrade to version 2.*
Everything has gone pretty well in the transition, but due to the change in the way the Zabbix API is interacted with with this version change, I have lost some time to understand and diagnose a bug that I assume may be affecting many people.
The problem is finally so simple that in addition to explaining it, I send it as PR.
SUMMARY
When using httpapi to interact with the Zabbix Server, already indicating a user-password, no type of
become
is necessary for things to work.However, since in the tasks corresponding to the interaction with the API the
become: false
has not been explicitly indicated, as the role is today, it fails in every project where we do not connect to our Zabbix Server directly as the root user (this is because whateverbecome_method
is defined in the project/inventory will interfere with calls originating via HTTPAPI)ISSUE TYPE
COMPONENT NAME
zabbix_agent role
ADDITIONAL INFORMATION
For example, if for my Zabbix Server host I have these variables defined:
API tasks fail as follows: