- name: include threatstack role
include_role:
name: threatstack.threatstack-ansible
vars:
threatstack_deploy_key: "{{ threatstack_api_key }}"
And we're seeing intermittent failures where our Ansible run crashes when it gets to Get agent registration status. The error message is Unable to open agent database. Please stop any running tsagentd processes and try again. And I can reproduce the same thing manually when running tsagent info, which exits 1.
Something like service threatstack status shows that Threatstack is up and running.
Is there some better command which could be used (and which wouldn't exit 1 when the service is running) to check the agent registration status? Or would it make sense to use ignore_errors on this task?
We're running this Ansible role like this:
And we're seeing intermittent failures where our Ansible run crashes when it gets to Get agent registration status. The error message is
Unable to open agent database. Please stop any running tsagentd processes and try again
. And I can reproduce the same thing manually when runningtsagent info
, which exits 1.Something like
service threatstack status
shows that Threatstack is up and running.Is there some better command which could be used (and which wouldn't exit 1 when the service is running) to check the agent registration status? Or would it make sense to use
ignore_errors
on this task?Specifics here: