use run_once for the task delegating service ossec-authd start to the server
FlorinAndrei opened this issue · 2 comments
FlorinAndrei commented
https://github.com/dj-wasabi/ansible-ossec-agent/blob/master/tasks/main.yml#L47
https://github.com/dj-wasabi/ansible-ossec-agent/blob/master/tasks/main.yml#L65
Use run_once on those tasks to prevent repeated runs if you have many clients to register.
See here:
http://docs.ansible.com/ansible/playbooks_delegation.html#run-once
FlorinAndrei commented
dj-wasabi commented
Task will only be executed once, like suggested. Hope to create a 0.1.0 release soon.
Thanks!