Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tomwwright/e39a47f006e7aff95d83b9c3a7868b33 to your computer and use it in GitHub Desktop.
Save tomwwright/e39a47f006e7aff95d83b9c3a7868b33 to your computer and use it in GitHub Desktop.
ansibled : logentries : docker compose env example
- name: add each Logentries token to Docker Compose .env settings
lineinfile:
dest: "{{ docker_compose_directory }}/.env"
regexp: "^LOGENTRIES_{{ item.key | upper }}=.*"
line: "LOGENTRIES_{{ item.key | upper }}={{ item.value }}"
create: yes
with_dict : "{{ logentries_log_tokens }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment