Files
ansible_role_package/tasks/pkgs/consul.yml
2025-02-09 18:24:38 -07:00

17 lines
499 B
YAML

# vim: set filetype=yaml.ansible :
# 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'