This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# This Playbook bounces a consul cluster that is unable to elect a leader | |
# push peers.json to the consul/raft data directory, change single quotes to doubles, restart consul servers | |
- hosts: consulservers | |
become: yes | |
# update the peers.json file with the correct consul server ip addresses and port | |
tasks: | |
- include_vars: roles/consul/vars/main.yml |