Deprecate fedora

This commit is contained in:
2021-02-09 21:00:57 +01:00
parent 236954d557
commit c6a056b77c
4 changed files with 3 additions and 194 deletions

View File

@@ -17,7 +17,7 @@
- name: Check for valid distro
assert:
that: distro in ('fedora', 'ubuntu', 'archlinux')
that: distro in ('ubuntu', 'archlinux')
- block:
- block:
@@ -43,26 +43,6 @@
become: true
when: distro == 'ubuntu'
- block:
- name: Update dnf cache
dnf:
update_cache: true
become: true
- name: Upgrade system
dnf:
name: '*'
state: latest
update_cache: false
become: true
- name: Remove unused packages
dnf:
autoremove: true
update_cache: false
become: true
when: distro == 'fedora'
- block:
- name: enable multilib repository
blockinfile:
@@ -93,15 +73,6 @@
when: distro == 'archlinux'
tags: [update_system]
- name: install selinux specials on fedora
dnf:
state: installed
name:
- python3-libselinux
- policycoreutils-python-utils
become: true
when: distro == 'fedora'
- block:
- name: install sudo
package:
@@ -259,11 +230,6 @@
- rebuild initrd
when: distro == 'archlinux'
- set_fact:
disable_services:
- sshd
when: distro == 'fedora'
- set_fact:
disable_services:
- ssh
@@ -283,16 +249,6 @@
become: true
when: manage_services|default(true)|bool
- set_fact:
enable_services:
- NetworkManager
# does not work with fedora 31 due to the switch to cgroups v2:
# https://github.com/docker/cli/issues/2104
# https://bugzilla.redhat.com/show_bug.cgi?id=1746355#c1
# - docker
- libvirtd
when: distro == 'fedora'
- set_fact:
enable_services:
- NetworkManager