packages are more generic
- if config is needed, it has a file in vars/ - all imported vars for pkgs are namespaced with _<pkgname>
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
file: carapace.yml
|
||||
name: _carapace
|
||||
|
||||
- name: install carapace RPM
|
||||
- name: enable carapace yum repository
|
||||
ansible.builtin.yum_repository:
|
||||
name: Gemfury Private Repo
|
||||
baseurl: https://yum.fury.io/rsteube/
|
||||
@@ -13,14 +13,15 @@
|
||||
when: ansible_os_familiy == 'RedHat'
|
||||
become: true
|
||||
|
||||
- name: enable carapace repository
|
||||
- name: enable carapace apt repository
|
||||
become: true
|
||||
ansible.builtin.apt_repository:
|
||||
repo: "deb [trusted=yes] https://apt.fury.io/rsteube/ /"
|
||||
state: present
|
||||
update_cache: false
|
||||
filename: carapace
|
||||
when: ansible_os_family == 'Debian'
|
||||
|
||||
- name: add carapace to syspkgs
|
||||
ansible.builtin.set_fact:
|
||||
syspkgs: "{{ syspkgs + [ 'carapace-bin' ] }}"
|
||||
syspkgs: "{{ syspkgs + _carapace[ansible_system].pkgs }}"
|
||||
|
||||
Reference in New Issue
Block a user