Closed aivarsV closed 1 week ago
Were you able to get this working?
According to docs it probably applies to SSH connections
reset_connection (added in Ansible 2.3) interrupts a persistent connection (i.e. ssh + control persist)
Have you played with disabling persistent connection?
No response heard....closing ticket
SUMMARY
I'm working on Zabbix server bootstrap script, which, among other things, creates new Super admin user and disables default Admin user. Issue, that I'm facing is that zabbix httpapi is unable to drop current connection and reconnect with different credentials.
ISSUE TYPE
COMPONENT NAME
community.zabbix.zabbix httpapi – HttpApi Plugin for Zabbix
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT / Zabbix Version
STEPS TO REPRODUCE
My approach is to try to connect with new credentials
super
verysecretpass
and check status of defaultAdmin
user. IfAdmin
is not disabled, I expect usersuper
to not exist, so connect with default credentials and create usersuper
. After thatAdmin
can be disabled, so I drop current connection and reconnect assuper
user and disableAdmin
.EXPECTED RESULTS
I expect this play to fail on
Ensure default admin is deactivated
and be rescued by subsequent tasks. After this play I expect super usersAdmin
(disabled) andsuper
(enabled). Subsequent runs of this play shold make no changes to user accounts.ACTUAL RESULTS
On first run play proceeds as expected until task
Disable default admin user
, at which point play fails with following output. Play outputAfter first run I'm left with two working super admin accounts -
Admin
andsuper
. Second run proceeds till the end andAdmin
get's disabled.My assumption is that
Reset connection
task has no actual effect on zabbix httpapi module.