Drop support for Fedora and CentOS/RHEL<8
... because these are no longer supported. Change-Id: Ic7a538851801ad7b8851a9b83f01441c6fcf481b
This commit is contained in:
parent
50c2dab063
commit
3358d3cd95
@ -6,54 +6,7 @@
|
|||||||
state: directory
|
state: directory
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: Install python2-dnf(Fedora)
|
- name: Clean-up system state (CentOS/RHEL)
|
||||||
command: "dnf -y install python2-dnf python3-dnf yum"
|
|
||||||
become: true
|
|
||||||
|
|
||||||
- name: Remove excludes from /etc/dnf/dnf.conf (Fedora)
|
|
||||||
lineinfile:
|
|
||||||
path: /etc/dnf/dnf.conf
|
|
||||||
state: absent
|
|
||||||
regexp: '^exclude='
|
|
||||||
become: true
|
|
||||||
|
|
||||||
- name: Reinstall python3-setuptools (Fedora)
|
|
||||||
command: "dnf -y reinstall python3-setuptools"
|
|
||||||
become: true
|
|
||||||
|
|
||||||
when:
|
|
||||||
- ansible_os_family == 'RedHat'
|
|
||||||
- ansible_distribution == "Fedora"
|
|
||||||
|
|
||||||
- block:
|
|
||||||
- name: Clean-up system state (CentOS/RHEL<=7)
|
|
||||||
yum:
|
|
||||||
name: "{{ item }}"
|
|
||||||
state: absent
|
|
||||||
become: true
|
|
||||||
with_items:
|
|
||||||
- rdo-release
|
|
||||||
- centos-release-openstack-*
|
|
||||||
- centos-release-ceph-*
|
|
||||||
|
|
||||||
- name: Install Ruby dependencies (CentOS/RHEL<=7)
|
|
||||||
yum:
|
|
||||||
name: "{{ item }}"
|
|
||||||
become: true
|
|
||||||
with_items:
|
|
||||||
- "@Development tools"
|
|
||||||
- libxml2-devel
|
|
||||||
- libxslt-devel
|
|
||||||
- ruby-devel
|
|
||||||
- zlib-devel
|
|
||||||
|
|
||||||
when:
|
|
||||||
- ansible_os_family == 'RedHat'
|
|
||||||
- ansible_distribution != "Fedora"
|
|
||||||
- ansible_distribution_major_version <= "7"
|
|
||||||
|
|
||||||
- block:
|
|
||||||
- name: Clean-up system state (Fedora or CentOS/RHEL>=8)
|
|
||||||
dnf:
|
dnf:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: absent
|
state: absent
|
||||||
@ -64,7 +17,7 @@
|
|||||||
- centos-release-openstack-*
|
- centos-release-openstack-*
|
||||||
- centos-release-ceph-*
|
- centos-release-ceph-*
|
||||||
|
|
||||||
- name: Install Ruby dependencies (Fedora or CentOS/RHEL>=8)
|
- name: Install Ruby dependencies (CentOS/RHEL)
|
||||||
dnf:
|
dnf:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
become: true
|
become: true
|
||||||
@ -75,17 +28,16 @@
|
|||||||
- ruby-devel
|
- ruby-devel
|
||||||
- zlib-devel
|
- zlib-devel
|
||||||
|
|
||||||
- name: Install yum (Fedora or CentOS/RHEL>=8)
|
- name: Install yum (CentOS/RHEL)
|
||||||
dnf:
|
dnf:
|
||||||
name: yum
|
name: yum
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
when:
|
when:
|
||||||
- ansible_os_family == 'RedHat'
|
- ansible_os_family == 'RedHat'
|
||||||
- ansible_distribution == "Fedora" or ansible_distribution_major_version >= "8"
|
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: install required packages for CentOS 9
|
- name: install required packages (CentOS/RHEL>=9)
|
||||||
dnf:
|
dnf:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: present
|
state: present
|
||||||
@ -95,7 +47,7 @@
|
|||||||
- rubygem-rexml
|
- rubygem-rexml
|
||||||
when:
|
when:
|
||||||
- ansible_os_family == 'RedHat'
|
- ansible_os_family == 'RedHat'
|
||||||
- ansible_distribution == "Fedora" or ansible_distribution_major_version >= "9"
|
- ansible_distribution_major_version >= "9"
|
||||||
|
|
||||||
- name: Install Ruby dependencies (Ubuntu)
|
- name: Install Ruby dependencies (Ubuntu)
|
||||||
apt:
|
apt:
|
||||||
@ -126,23 +78,6 @@
|
|||||||
- zlib1g-dev
|
- zlib1g-dev
|
||||||
- python3-pip
|
- python3-pip
|
||||||
|
|
||||||
- block:
|
|
||||||
- name: Set up puppetlabs repo (Fedora)
|
|
||||||
dnf:
|
|
||||||
name: "https://yum.puppetlabs.com/puppet{{ puppet }}-release-fedora-{{ ansible_distribution_major_version }}.noarch.rpm"
|
|
||||||
become: true
|
|
||||||
|
|
||||||
- name: Install puppetlabs puppet-agent (Fedora)
|
|
||||||
dnf:
|
|
||||||
name: puppet-agent
|
|
||||||
become: true
|
|
||||||
|
|
||||||
when:
|
|
||||||
- use_puppetlabs is defined
|
|
||||||
- use_puppetlabs|bool
|
|
||||||
- ansible_os_family == 'RedHat'
|
|
||||||
- ansible_distribution == "Fedora"
|
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: Set up puppetlabs repo (CentOS/RHEL)
|
- name: Set up puppetlabs repo (CentOS/RHEL)
|
||||||
yum:
|
yum:
|
||||||
@ -158,7 +93,6 @@
|
|||||||
- use_puppetlabs is defined
|
- use_puppetlabs is defined
|
||||||
- use_puppetlabs|bool
|
- use_puppetlabs|bool
|
||||||
- ansible_os_family == 'RedHat'
|
- ansible_os_family == 'RedHat'
|
||||||
- ansible_distribution != "Fedora"
|
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: Set up puppetlabs repo (Ubuntu and Debian)
|
- name: Set up puppetlabs repo (Ubuntu and Debian)
|
||||||
|
Loading…
Reference in New Issue
Block a user