Looks like you start the agent before the configuration step, which renders it a no-op.
You might want to move;
name: Start the AlertLogic Agent service
service: name=al-agent state=started enabled=yes
tags: install_al_agent
when: not al_agent_for_imaging
into the last step in configure_agent, this is what I needed to do to have agents respect the
--host configuration option, restarting the agent did not help.
Looks like you start the agent before the configuration step, which renders it a no-op. You might want to move;
into the last step in configure_agent, this is what I needed to do to have agents respect the --host configuration option, restarting the agent did not help.