mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-16 13:56:03 +08:00
update ansible_distribution_major_version conditionals
Signed-off-by: Karsten Hopp <karsten@redhat.com>
This commit is contained in:
committed by
Pierre-Yves Chibon
parent
d982c06fde
commit
c9ed62ac32
@@ -6,7 +6,7 @@
|
||||
- ntp
|
||||
- libsemanage-python
|
||||
- libselinux-python
|
||||
when: ansible_distribution_major_version|int < 22
|
||||
when: ansible_distribution_major_version|int < 8 and ansible_distribution is 'RedHat'
|
||||
tags:
|
||||
- packages
|
||||
|
||||
@@ -15,7 +15,16 @@
|
||||
with_items:
|
||||
- ntpdate
|
||||
- libselinux-python
|
||||
when: ansible_distribution_major_version|int > 21 and ansible_cmdline.ostree is not defined
|
||||
when: ansible_distribution_major_version|int > 7 and ansible_distribution is 'RedHat' and ansible_cmdline.ostree is not defined
|
||||
tags:
|
||||
- packages
|
||||
|
||||
- name: Install desired extra packages (dnf)
|
||||
dnf: state=present pkg={{ item }}
|
||||
with_items:
|
||||
- ntpdate
|
||||
- libselinux-python
|
||||
when: ansible_distribution_major_version|int >=29 and ansible_distribution is 'Fedora' and ansible_cmdline.ostree is not defined
|
||||
tags:
|
||||
- packages
|
||||
|
||||
@@ -57,14 +66,21 @@
|
||||
- name: update all
|
||||
command: yum -y update creates=/etc/sysconfig/global-update-applied
|
||||
register: updated
|
||||
when: ansible_distribution_major_version|int < 22
|
||||
when: ansible_distribution_major_version|int < 8 and ansible_distribution is 'RedHat'
|
||||
tags:
|
||||
- packages
|
||||
|
||||
- name: update all
|
||||
command: dnf -y update creates=/etc/sysconfig/global-update-applied
|
||||
register: updated
|
||||
when: ansible_distribution_major_version|int > 21 and ansible_cmdline.ostree is not defined
|
||||
when: ansible_distribution_major_version|int > 7 and ansible_distribution is 'RedHat' and ansible_cmdline.ostree is not defined
|
||||
tags:
|
||||
- packages
|
||||
|
||||
- name: update all
|
||||
command: dnf -y update creates=/etc/sysconfig/global-update-applied
|
||||
register: updated
|
||||
when: ansible_distribution_major_version|int >= 29 and ansible_distribution is 'Fedora' and ansible_cmdline.ostree is not defined
|
||||
tags:
|
||||
- packages
|
||||
|
||||
|
||||
Reference in New Issue
Block a user