16 lines
326 B
YAML
Raw Normal View History

2022-07-21 01:00:17 +02:00
---
- name: Start and enable consul service
service: name=consul state=started enabled=True
register: consul_service_started
tags: consul
2022-09-04 14:00:17 +02:00
2023-07-05 19:00:07 +02:00
- name: Stop consul-template-consul service
2022-09-06 18:00:22 +02:00
service:
name: consul-template-consul
2023-07-05 19:00:07 +02:00
state: stopped
enabled: False
when: consul_ct_service.stat.exists
tags: consul