test: update for minimal raw new xz format
This commit is contained in:
parent
3bbcc8a7cc
commit
8ba6487b82
2 changed files with 92 additions and 12 deletions
|
|
@ -4,6 +4,7 @@
|
|||
vars:
|
||||
total_counter: "0"
|
||||
failed_counter: "0"
|
||||
download_node: ""
|
||||
|
||||
tasks:
|
||||
# current target host's IP address
|
||||
|
|
@ -57,6 +58,58 @@
|
|||
set_fact:
|
||||
failed_counter: "{{ failed_counter | int + 1 }}"
|
||||
|
||||
- name: enable persistent logging for the systemd journal
|
||||
file:
|
||||
path: /var/log/journal
|
||||
state: directory
|
||||
become: yes
|
||||
when: ansible_facts['distribution'] == 'RedHat' or ansible_facts['distribution'] == 'CentOS'
|
||||
|
||||
- name: enable persistent logging on RHEL 9 and CS9 only
|
||||
command: journalctl --flush
|
||||
become: yes
|
||||
when: ansible_facts['distribution_version'] == "9.3" or ansible_facts['distribution_version'] == "9"
|
||||
|
||||
- name: add RHEL 9.3 BaseOS repository
|
||||
yum_repository:
|
||||
name: baseos
|
||||
description: RHEL repository
|
||||
baseurl: "http://{{ download_node }}/rhel-9/nightly/RHEL-9/latest-RHEL-9.3.0/compose/BaseOS/{{ ansible_facts['architecture'] }}/os/"
|
||||
gpgcheck: no
|
||||
file: rhel_repo
|
||||
become: yes
|
||||
when: ansible_facts['distribution'] == 'RedHat' and ansible_facts ['distribution_version'] is version('9.3', '==')
|
||||
|
||||
- name: add RHEL 9.3 AppStream repository
|
||||
yum_repository:
|
||||
name: appstream
|
||||
description: RHEL repository
|
||||
baseurl: "http://{{ download_node }}/rhel-9/nightly/RHEL-9/latest-RHEL-9.3.0/compose/AppStream/{{ ansible_facts['architecture'] }}/os/"
|
||||
gpgcheck: no
|
||||
file: rhel_repo
|
||||
become: yes
|
||||
when: ansible_facts['distribution'] == 'RedHat' and ansible_facts ['distribution_version'] is version('9.3', '==')
|
||||
|
||||
- name: add RHEL 8.9 BaseOS repository
|
||||
yum_repository:
|
||||
name: baseos
|
||||
description: RHEL repository
|
||||
baseurl: "http://{{ download_node }}/rhel-8/nightly/RHEL-8/latest-RHEL-8.9.0/compose/BaseOS/{{ ansible_facts['architecture'] }}/os/"
|
||||
gpgcheck: no
|
||||
file: rhel_repo
|
||||
become: yes
|
||||
when: ansible_facts['distribution'] == 'RedHat' and ansible_facts ['distribution_version'] is version('8.9', '==')
|
||||
|
||||
- name: add RHEL 8.9 AppStream repository
|
||||
yum_repository:
|
||||
name: appstream
|
||||
description: RHEL repository
|
||||
baseurl: "http://{{ download_node }}/rhel-8/nightly/RHEL-8/latest-RHEL-8.9.0/compose/AppStream/{{ ansible_facts['architecture'] }}/os/"
|
||||
gpgcheck: no
|
||||
file: rhel_repo
|
||||
become: yes
|
||||
when: ansible_facts['distribution'] == 'RedHat' and ansible_facts ['distribution_version'] is version('8.9', '==')
|
||||
|
||||
- name: install podman
|
||||
dnf:
|
||||
name:
|
||||
|
|
@ -157,7 +210,7 @@
|
|||
- name: check journald has persistent logging
|
||||
block:
|
||||
- name: list boots
|
||||
shell: journalctl --list-boots
|
||||
shell: journalctl --list-boots -q
|
||||
register: result_list_boots
|
||||
|
||||
- assert:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue