cloudflare - add defaut var and syntax corrections
This commit is contained in:
parent
1ca399e4c0
commit
ac92dc9f6c
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
docker_compose_path: "/opt/docker-compose"
|
docker_compose_directory: "/opt/docker-compose"
|
||||||
|
|
||||||
prometheus_docker_network: prometheus
|
prometheus_docker_network: prometheus
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: '{{ exporter }} exporter | check if docker is installed'
|
- name: '{{ exporter }} exporter | check if docker is installed'
|
||||||
shell:
|
shell:
|
||||||
cmd: {{ item }} --help
|
cmd: "{{ item }} --help"
|
||||||
register: result
|
register: result
|
||||||
check_mode: false
|
check_mode: false
|
||||||
changed_when: false
|
changed_when: false
|
||||||
@ -21,7 +21,7 @@
|
|||||||
- name: '{{ exporter }} exporter | copy docker-compose file'
|
- name: '{{ exporter }} exporter | copy docker-compose file'
|
||||||
template:
|
template:
|
||||||
src: compose/{{ exporter }}.yml.j2
|
src: compose/{{ exporter }}.yml.j2
|
||||||
dest: /opt/docker-compose/{{ exporter }}/docker-compose.yml
|
dest: "/opt/docker-compose/{{ exporter }}/docker-compose.yml"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
@ -31,7 +31,7 @@
|
|||||||
- name: '{{ exporter }} exporter | systemd | install unit file'
|
- name: '{{ exporter }} exporter | systemd | install unit file'
|
||||||
template:
|
template:
|
||||||
src: systemd/docker-compose.service.j2
|
src: systemd/docker-compose.service.j2
|
||||||
dest: /etc/systemd/system/docker-compose@{{ exporter }}.service
|
dest: "/etc/systemd/system/docker-compose@{{ exporter }}.service"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0600
|
mode: 0600
|
||||||
@ -40,7 +40,7 @@
|
|||||||
- name: '{{ exporter }} exporter | systemd | enable service'
|
- name: '{{ exporter }} exporter | systemd | enable service'
|
||||||
systemd:
|
systemd:
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
name: docker-compose@{{ exporter }}
|
name: "docker-compose@{{ exporter }}"
|
||||||
enabled: true
|
enabled: true
|
||||||
ignore_errors: '{{ ansible_check_mode }}'
|
ignore_errors: '{{ ansible_check_mode }}'
|
||||||
tags: [ 'prometheus_{{ exporter }}' ]
|
tags: [ 'prometheus_{{ exporter }}' ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user