disable some errors in check_mode
This commit is contained in:
parent
174b541cd5
commit
88b16fae69
@ -46,6 +46,7 @@
|
|||||||
get_url:
|
get_url:
|
||||||
url: "https://github.com/{{ prometheus_repo }}/{{ exporter }}_exporter/releases/download/v{{ prometheus_exporter_latest_version.stdout }}/{{ exporter }}_exporter-{{ prometheus_exporter_latest_version.stdout }}.{{ prometheus_os }}-{{ prometheus_arch }}.tar.gz"
|
url: "https://github.com/{{ prometheus_repo }}/{{ exporter }}_exporter/releases/download/v{{ prometheus_exporter_latest_version.stdout }}/{{ exporter }}_exporter-{{ prometheus_exporter_latest_version.stdout }}.{{ prometheus_os }}-{{ prometheus_arch }}.tar.gz"
|
||||||
dest: /tmp/prometheus_exporter/{{ exporter }}/
|
dest: /tmp/prometheus_exporter/{{ exporter }}/
|
||||||
|
ignore_errors: '{{ ansible_check_mode }}'
|
||||||
when: not stat_result.stat.exists or exporter_upgrade == "yes"
|
when: not stat_result.stat.exists or exporter_upgrade == "yes"
|
||||||
tags: [ 'prometheus_{{ exporter }}' ]
|
tags: [ 'prometheus_{{ exporter }}' ]
|
||||||
|
|
||||||
@ -55,6 +56,7 @@
|
|||||||
src: /tmp/prometheus_exporter/{{ exporter }}/{{ exporter }}_exporter-{{ prometheus_exporter_latest_version.stdout }}.{{ prometheus_os }}-{{ prometheus_arch }}.tar.gz
|
src: /tmp/prometheus_exporter/{{ exporter }}/{{ exporter }}_exporter-{{ prometheus_exporter_latest_version.stdout }}.{{ prometheus_os }}-{{ prometheus_arch }}.tar.gz
|
||||||
dest: /tmp/prometheus_exporter/{{ exporter }}/
|
dest: /tmp/prometheus_exporter/{{ exporter }}/
|
||||||
when: not stat_result.stat.exists or exporter_upgrade == "yes"
|
when: not stat_result.stat.exists or exporter_upgrade == "yes"
|
||||||
|
ignore_errors: '{{ ansible_check_mode }}'
|
||||||
tags: [ 'prometheus_{{ exporter }}' ]
|
tags: [ 'prometheus_{{ exporter }}' ]
|
||||||
|
|
||||||
- name: '{{ exporter }} exporter | move to /usr/local/bin'
|
- name: '{{ exporter }} exporter | move to /usr/local/bin'
|
||||||
@ -69,6 +71,7 @@
|
|||||||
- '{{ exporter }}-exporter-restart'
|
- '{{ exporter }}-exporter-restart'
|
||||||
when: not stat_result.stat.exists or exporter_upgrade == "yes"
|
when: not stat_result.stat.exists or exporter_upgrade == "yes"
|
||||||
tags: [ 'prometheus_{{ exporter }}' ]
|
tags: [ 'prometheus_{{ exporter }}' ]
|
||||||
|
ignore_errors: '{{ ansible_check_mode }}'
|
||||||
|
|
||||||
- name: '{{ exporter }} exporter | cleanup temp path'
|
- name: '{{ exporter }} exporter | cleanup temp path'
|
||||||
file:
|
file:
|
||||||
@ -85,6 +88,7 @@
|
|||||||
notify:
|
notify:
|
||||||
- '{{ exporter }}-exporter-restart'
|
- '{{ exporter }}-exporter-restart'
|
||||||
when: not stat_result.stat.exists or exporter_upgrade == "yes"
|
when: not stat_result.stat.exists or exporter_upgrade == "yes"
|
||||||
|
ignore_errors: '{{ ansible_check_mode }}'
|
||||||
tags: [ 'prometheus_{{ exporter }}' ]
|
tags: [ 'prometheus_{{ exporter }}' ]
|
||||||
|
|
||||||
- name: '{{ exporter }} exporter | systemd | enable service'
|
- name: '{{ exporter }} exporter | systemd | enable service'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user