Note
This plugin is part of the community.general collection (version 2.0.1).
To install it use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.logentries
.
The below requirements are needed on the local controller node that executes this callback.
Parameter | Choices/Defaults | Configuration | Comments |
---|---|---|---|
api string | Default: "data.logentries.com" | ini entries: [callback_logentries] env:LOGENTRIES_API | URI to the Logentries API |
flatten boolean |
| ini entries: [callback_logentries] env:LOGENTRIES_FLATTEN | flatten complex data structures into a single dictionary with complex keys |
port string | Default: 80 | ini entries: [callback_logentries] env:LOGENTRIES_PORT | HTTP port to use when connecting to the API |
tls_port string | Default: 443 | ini entries: [callback_logentries] env:LOGENTRIES_TLS_PORT | Port to use when connecting to the API when TLS is enabled |
token string / required | ini entries: [callback_logentries] env:LOGENTRIES_ANSIBLE_TOKEN | The logentries "TCP token" | |
use_tls boolean |
| ini entries: [callback_logentries] env:LOGENTRIES_USE_TLS | Toggle to decide whether to use TLS to encrypt the communications with the API server |
examples: > To enable, add this to your ansible.cfg file in the defaults block [defaults] callback_whitelist = community.general.logentries Either set the environment variables export LOGENTRIES_API=data.logentries.com export LOGENTRIES_PORT=10000 export LOGENTRIES_ANSIBLE_TOKEN=dd21fc88-f00a-43ff-b977-e3a4233c53af Or in the main Ansible config file [callback_logentries] api = data.logentries.com port = 10000 tls_port = 20000 use_tls = no token = dd21fc88-f00a-43ff-b977-e3a4233c53af flatten = False
© 2012–2018 Michael DeHaan
© 2018–2021 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.11/collections/community/general/logentries_callback.html