Skip to content

Commit

Permalink
fix: no prometheus user for docker install
Browse files Browse the repository at this point in the history
  • Loading branch information
tboerger committed Jul 5, 2023
1 parent 4dde4dd commit c9473d2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@
get_url:
url: "{{ item.url }}"
dest: "{{ item.path | default('/etc/prometheus/rules') }}/{{ item.name }}.yml"
owner: prometheus
group: prometheus
owner: "{{ 'prometheus' if prometheus_installation == 'native' else 'nobody' }}"
group: "{{ 'prometheus' if prometheus_installation == 'native' else 'nogroup' }}"
mode: o=rw,g=r,o=r
tags:
- prometheus
Expand All @@ -210,8 +210,8 @@
copy:
content: "{{ item.content }}"
dest: "{{ item.path | default('/etc/prometheus/rules') }}/{{ item.name }}.yml"
owner: prometheus
group: prometheus
owner: "{{ 'prometheus' if prometheus_installation == 'native' else 'nobody' }}"
group: "{{ 'prometheus' if prometheus_installation == 'native' else 'nogroup' }}"
mode: o=rw,g=r,o=r
tags:
- prometheus
Expand All @@ -226,8 +226,8 @@
copy:
src: "{{ item.src }}"
dest: "{{ item.path | default('/etc/prometheus/rules') }}/{{ item.name }}.yml"
owner: prometheus
group: prometheus
owner: "{{ 'prometheus' if prometheus_installation == 'native' else 'nobody' }}"
group: "{{ 'prometheus' if prometheus_installation == 'native' else 'nogroup' }}"
mode: o=rw,g=r,o=r
tags:
- prometheus
Expand Down

0 comments on commit c9473d2

Please sign in to comment.