Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Caching functionality does not work #23

@RobinR1

Description

@RobinR1

I have a job running each morning to check/(re-)register all managed hosts into Zabbix.
For this I set variables ansible_user and ansible_httpapi_pass using anatomicjc.passbolt.cached lookups before starting the role on all these hosts:

ansible_httpapi_pass: "{{ lookup('anatomicjc.passbolt.cached', 'anatomicjc.passbolt.passbolt', '<uuid>', per_uuid='true').password }}"

It seems that ansible, for each and every task it starts, tries to resolve these ansible_ variables by querying passbolt, even when they are not used in the task.
I already had my suspicion but this case made it very clear: the passwords are not cached.

Currently this play runs over 1100+ hosts, bombarding passbolt with 2000+ queries for the same user/password for each and every task that needs to be performed in this play.
Passbolt and it's database can hardly follow that much requests, memory usage peaks to 12G and CPU usage of 4 CPU's is 100% during the play, currently with a runtime of about 2 hours. And several queries give a timeout.

End result is that out of the 1100+ hosts about 700 hosts fail due to a passbolt lookup timeout sooner or later in the play.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions