Files
ansible_role_package/tasks/pkgs/consul.yml
Matthew Stobbs aff4fddfb4 fix broken packages
- standardize naming of each pkg append
- move _configured vars to end of block
2025-03-09 21:48:11 -06:00

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