This commit is contained in:
Diogenes Pelisson 2020-04-20 13:03:35 -03:00
parent edf06d6468
commit 653277b1d5
3 changed files with 9 additions and 11 deletions

View File

@ -15,8 +15,8 @@ loki_storage_dir: /var/lib/loki
loki_tags: []
loki_listen_address: '127.0.0.1'
loki_listen_port: '3100'
loki_listen_address: 127.0.0.1
loki_listen_port: 3100
loki_binary_local_dir: ''

View File

@ -70,13 +70,11 @@
- name: create systemd service unit
template:
src: loki.service.j2
dest: /etc/systemd/system/loki.service
src: "{{ item }}.service.j2"
dest: "/etc/systemd/system/{{ item }}.service"
owner: root
group: root
mode: 0644
notify:
- restart loki
notify: "restart {{ item }}"
loop: "{{ loki_bins }}"
when:
- item == 'loki'
when: item == 'loki' or item == 'promtail'

View File

@ -1,8 +1,8 @@
---
# - include: preflight.yml
- include: preflight.yml
# - include: install.yml
# become: true
- include: install.yml
become: true
- include: configure.yml
become: true