32 lines
784 B
YAML
32 lines
784 B
YAML
# vim: set filetype=yaml.ansible :
|
|
---
|
|
- name: Add consul
|
|
when:
|
|
- consul_configured is undefined
|
|
block:
|
|
- name: Load consul config
|
|
ansible.builtin.include_tasks:
|
|
file: config/consul.yml
|
|
|
|
- name: Append consul to pkg_sys
|
|
when:
|
|
- ansible_system == 'Linux'
|
|
notify:
|
|
- Depend hashicorp repo
|
|
changed_when: true
|
|
ansible.builtin.set_fact:
|
|
pkg_sys: "{{ pkg_sys + consul.pkgs }}"
|
|
|
|
- name: Append consul to pkg_tap
|
|
when:
|
|
- ansible_system == 'Darwin'
|
|
notify:
|
|
- Depend hashicorp repo
|
|
changed_when: true
|
|
ansible.builtin.set_fact:
|
|
pkg_tap: "{{ pkg_tap + consul.pkgs }}"
|
|
|
|
- name: Set consul_configured
|
|
ansible.builtin.set_fact:
|
|
consul_configured: true
|