configuring more packages
This commit is contained in:
26
tasks/pkgs/carapace.yml
Normal file
26
tasks/pkgs/carapace.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
- ansible.builtin.include_vars:
|
||||
file: carapace.yml
|
||||
name: _carapace
|
||||
|
||||
- name: install carapace RPM
|
||||
ansible.builtin.yum_repository:
|
||||
name: Gemfury Private Repo
|
||||
baseurl: https://yum.fury.io/rsteube/
|
||||
enabled: true
|
||||
gpgcheck: false
|
||||
state: present
|
||||
when: ansible_os_familiy == 'RedHat'
|
||||
become: true
|
||||
|
||||
- name: enable carapace repository
|
||||
become: true
|
||||
ansible.builtin.apt_repository:
|
||||
repo: "deb [trusted=yes] https://apt.fury.io/rsteube/ /"
|
||||
state: present
|
||||
update_cache: false
|
||||
when: ansible_os_family == 'Debian'
|
||||
|
||||
- name: add carapace to syspkgs
|
||||
ansible.builtin.set_fact:
|
||||
syspkgs: "{{ syspkgs + [ 'carapace-bin' ] }}"
|
||||
Reference in New Issue
Block a user