Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- `- hosts: tag_consulid_agent
- become: yes
- gather_facts: yes
- .
- .
- .
- - name: put consul configuration in agent_mode
- template:
- src: "agent_mode.json"
- dest: "{{ consul_conf_dir }}/agent_mode.json"
- when: consul_agent`
- "start_join": [{% for host in groups['consul_server'] -%}
- "{{ hostvars[host].inventory_hostname }}"{% if not loop.last %},{%
- endif %}{%- endfor %}]
Add Comment
Please, Sign In to add comment