Files
ansible_role_package/tasks/pkgs/consul.yml
2025-01-25 17:39:49 -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: pkgconfig_hashicorp is not defined
- name: append to syspkgs
set_fact:
syspkgs: "{{ syspkgs + [ pkgconfig_hashicorp.consul[ansible_system] ] }}"
when: ansible_system == 'Linux'
- set_fact:
tappkgs: "{{ tappkgs + [ pkgconfig_hashicorp.consul[ansible_system] ] }}"
when: ansible_system == 'Darwin'