working through each file
This commit is contained in:
@@ -3,12 +3,9 @@
|
||||
- name: Linux based installation
|
||||
when: ansible_system == 'Linux'
|
||||
block:
|
||||
- name: Install rust and cargo
|
||||
ansible.builtin.include_tasks:
|
||||
file: "pkgs/rust.yml"
|
||||
when: pkgconfig_rust is undefined
|
||||
|
||||
- name: Append to pkgs
|
||||
notify:
|
||||
- Depend cargo
|
||||
ansible.builtin.set_fact:
|
||||
syspkgs: "{{ syspkgs + alacritty.deps }}"
|
||||
srcpkgs: "{{ cargopkgs + [alacritty] }}"
|
||||
|
||||
@@ -1,11 +1,5 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- ansible.builtin.include_vars:
|
||||
file: rust.yml
|
||||
name: _rust
|
||||
- ansible.builtin.set_fact:
|
||||
pkgconfig_rust: "{{ _rust | ansible.builtin.combine(pkgconfig.rust) }}"
|
||||
|
||||
- name: append to pkgs
|
||||
- name: Append to pkgs
|
||||
ansible.builtin.set_fact:
|
||||
syspkgs: "{{ syspkgs + pkgconfig_rust.pkgs[ansible_system] }}"
|
||||
syspkgs: "{{ syspkgs + pkgconfig.rust.pkgs }}"
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: enable terra repo for fedora
|
||||
when: ansible_distribution == 'Fedora'
|
||||
block:
|
||||
- name: enable terra repo for fedora >=41
|
||||
become: true
|
||||
when: ansible_distribution_major_version|int >= 41
|
||||
ansible.builtin.command:
|
||||
creates: /etc/yum.repos.d/terra.repo
|
||||
cmd: "dnf config-manager addrepo --from-repofile={{ pkgconfig.terrarepo.repo }}"
|
||||
|
||||
- name: enable terra repo for fedora < 41
|
||||
become: true
|
||||
when: ansible_distribution_major_version|int < 41
|
||||
ansible.builtin.command:
|
||||
creates: /etc/yum.repos.d/terra.repo
|
||||
cmd: "dnf config-manager --add-repo {{ pkgconfig.terrarepo.repo }}"
|
||||
|
||||
- ansible.builtin.dnf:
|
||||
name: terra-release
|
||||
state: present
|
||||
Reference in New Issue
Block a user