clean up, refactor, documentation
- reducing amount of splitting in configs - documenting configuration
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
# load hashicorp configuration
|
||||
---
|
||||
- ansible.builtin.include_vars:
|
||||
file: hashicorp_repo.yml
|
||||
name: _hashicorp
|
||||
|
||||
- name: ensure hashicorp repo is active
|
||||
ansible.builtin.include_tasks:
|
||||
file: "pkgs/hashicorp_repo.yml"
|
||||
|
||||
- name: append to pkgs
|
||||
- name: append to syspkgs
|
||||
set_fact:
|
||||
tappkgs: "{{ tappkgs + [ _hashicorp.consul[ansible_os_family] ] }}"
|
||||
syspkgs: "{{ syspkgs + [ pkgconfig.hashicorp.consul[ansible_system] ] }}"
|
||||
when: ansible_system == 'Linux'
|
||||
|
||||
- set_fact:
|
||||
tappkgs: "{{ tappkgs + [ pkgconfig.hashicorp.consul[ansible_system] ] }}"
|
||||
when: ansible_system == 'Darwin'
|
||||
|
||||
Reference in New Issue
Block a user