Files
ansible_role_package/tasks/pkgs/consul.yml
2025-02-09 15:50:59 -07:00

16 lines
464 B
YAML

# load hashicorp configuration
---
- name: ensure hashicorp repo is active
ansible.builtin.include_tasks:
file: "pkgs/hashicorp_repo.yml"
when: hashicorp is undefined
- name: append to syspkgs
ansible.builtin.set_fact:
syspkgs: "{{ syspkgs + [ pkgconfig.consul[ansible_system] ] }}"
when: ansible_system == 'Linux'
- ansible.builtin.set_fact:
tappkgs: "{{ tappkgs + [ pkgconfig.consul[ansible_system] ] }}"
when: ansible_system == 'Darwin'