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_tags: []
loki_listen_address: '127.0.0.1' loki_listen_address: 127.0.0.1
loki_listen_port: '3100' loki_listen_port: 3100
loki_binary_local_dir: '' loki_binary_local_dir: ''

View File

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

View File

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