ansible-hashistack/roles/consul/tasks/setup_consul_config.yml

16 lines
326 B
YAML
Raw Normal View History

2023-09-11 18:31:03 +02:00
---
- name: get the encrypt_key
ansible.builtin.command:
cmd: cat /etc/consul/gossip.key
register: gossip
become: true
changed_when: false
- name: set the consul.json config file
ansible.builtin.template:
src: consul.json.j2
dest: /etc/consul/consul.json
mode: 0600
owner: consul
become: true