You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would be nice to have this feature in case the agent hostname changes.
What about something like this?
- name: Check current agent hostname
shell: "sudo le whoami | grep hostname"
register: result
ignore_errors: true
changed_when: false
when: logentries_hostname is defined
- name: Re-register hostname if it has changed
shell: "le register --force --hostname={{ logentries_hostname }}"
when: logentries_hostname is defined and result.stdout != "hostname = {{ logentries_hostname }}"
The text was updated successfully, but these errors were encountered:
Would be nice to have this feature in case the agent hostname changes.
What about something like this?
The text was updated successfully, but these errors were encountered: