ansible-roles/roles/consul/tasks/facts.yml

15 lines
460 B
YAML
Raw Normal View History

2022-07-21 01:00:17 +02:00
---
2023-07-03 15:00:09 +02:00
- block:
2022-08-01 16:00:18 +02:00
- name: Detect installed version
shell: /usr/local/bin/consul version | head -1 | perl -pe 's/Consul v(\d+(\.\d+)*)/$1/'
changed_when: False
register: consul_current_version
- set_fact: consul_current_version={{ consul_current_version.stdout }}
2022-07-21 01:00:17 +02:00
tags: consul
2023-07-05 19:00:07 +02:00
- name: Check if the consul-template service still exists
2023-07-08 16:00:11 +02:00
stat: path=/etc/systemd/system/consul-template-consul
2023-07-05 19:00:07 +02:00
register: consul_ct_service
tags: consul