ricbra / ansible-logentries

Ansible role for installing logentries agent and daemon
17 stars 12 forks source link

Feature req: set logentries_hostname even if already setup #23

Open seenickcode opened 6 years ago

seenickcode commented 6 years ago

Useful if folks want to change the hostname config var if re-deploying, no? Right now it only sets this when: result|failed and logentries_set_key is not defined

i.e. https://github.com/ricbra/ansible-logentries/blob/6b72f788f9e60ffaed9a3867664330b999bfd30e/tasks/main.yml

- name: Register host shell: "le register --force --name={{ logentries_hostname | default(ansible_fqdn) }} --hostname={{ logentries_hostname | default(ansible_fqdn) }} --yes --account-key={{ logentries_account_key }}" when: result|failed and logentries_set_key is not defined