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