mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-12 00:03:17 +02:00
16 lines
326 B
YAML
16 lines
326 B
YAML
---
|
|
|
|
- name: Start and enable consul service
|
|
service: name=consul state=started enabled=True
|
|
register: consul_service_started
|
|
tags: consul
|
|
|
|
- name: Stop consul-template-consul service
|
|
service:
|
|
name: consul-template-consul
|
|
state: stopped
|
|
enabled: False
|
|
when: consul_ct_service.stat.exists
|
|
tags: consul
|
|
|