Add remove repos
This commit is contained in:
@@ -5,3 +5,5 @@
|
|||||||
collections:
|
collections:
|
||||||
- name: ansible.posix
|
- name: ansible.posix
|
||||||
- name: community.general
|
- name: community.general
|
||||||
|
- name: containers.podman
|
||||||
|
- name: fedora.linux_system_roles
|
||||||
|
|||||||
@@ -17,6 +17,9 @@ dnf_add_repofiles:
|
|||||||
- name: Mullvad VPN
|
- name: Mullvad VPN
|
||||||
url: https://repository.mullvad.net/rpm/stable/mullvad.repo
|
url: https://repository.mullvad.net/rpm/stable/mullvad.repo
|
||||||
|
|
||||||
|
dnf_remove_repos:
|
||||||
|
- google-chrome
|
||||||
|
|
||||||
dnf_remove:
|
dnf_remove:
|
||||||
- abrt
|
- abrt
|
||||||
- anaconda-live
|
- anaconda-live
|
||||||
|
|||||||
@@ -28,10 +28,18 @@
|
|||||||
loop: "{{ (dnf_add_repofiles | default([])) + (dnf_add_repofiles_group | default([])) }}"
|
loop: "{{ (dnf_add_repofiles | default([])) + (dnf_add_repofiles_group | default([])) }}"
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
|
- name: Remove DNF repositories
|
||||||
|
ansible.builtin.yum_repository:
|
||||||
|
name: "{{ item }}"
|
||||||
|
state: absent
|
||||||
|
loop: "{{ (dnf_remove_repos | default([])) + (dnf_remove_repos_group | default([])) }}"
|
||||||
|
become: true
|
||||||
|
|
||||||
- name: Remove unwanted packages
|
- name: Remove unwanted packages
|
||||||
ansible.builtin.dnf:
|
ansible.builtin.dnf:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: absent
|
state: absent
|
||||||
|
autoremove: true
|
||||||
loop: "{{ (dnf_remove | default([])) + (dnf_remove_group | default([])) }}"
|
loop: "{{ (dnf_remove | default([])) + (dnf_remove_group | default([])) }}"
|
||||||
become: true
|
become: true
|
||||||
failed_when: false
|
failed_when: false
|
||||||
@@ -40,9 +48,17 @@
|
|||||||
ansible.builtin.dnf:
|
ansible.builtin.dnf:
|
||||||
name: "{{ (dnf_install | default([])) + (dnf_install_group | default([])) }}"
|
name: "{{ (dnf_install | default([])) + (dnf_install_group | default([])) }}"
|
||||||
state: present
|
state: present
|
||||||
|
skip_broken: true
|
||||||
become: true
|
become: true
|
||||||
when: ((dnf_install | default([])) + (dnf_install_group | default([]))) | length > 0
|
when: ((dnf_install | default([])) + (dnf_install_group | default([]))) | length > 0
|
||||||
|
|
||||||
|
- name: Update all DNF packages
|
||||||
|
ansible.builtin.dnf:
|
||||||
|
name: "*"
|
||||||
|
state: latest # noqa package-latest
|
||||||
|
skip_broken: true
|
||||||
|
become: true
|
||||||
|
|
||||||
- name: Install cargo packages
|
- name: Install cargo packages
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
cmd: "cargo install {{ item }}"
|
cmd: "cargo install {{ item }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user