Open seenickcode opened 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
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
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