- include_role: name: tripleo_podman tasks_from: tripleo_podman_rsyslog_cleanup name: remove rsyslog configuration for podman healthcheck log - fail: msg: Use of the Modular Libvirt deployment on RHEL8 results in loss of workloads. Use NovaLibvirtLegacy in roles data. name: Fail if we are on RHEL8 as this is monolithic libvirt deployment when: - step|int == 0 - '''system_upgrade'' not in ansible_run_tags' - ansible_facts['distribution_major_version'] is version('8', '==') - block: - command: systemctl is-enabled --quiet snmpd failed_when: false name: Check if snmpd is enabled register: snmpd_enabled_result - name: Set fact snmpd_enabled set_fact: snmpd_enabled: '{{ snmpd_enabled_result.rc == 0 }}' when: step|int == 0 - name: Gather missing facts setup: gather_subset: - '!all' - '!min' - distribution tags: - always - name: Set leapp facts set_fact: upgrade_leapp_command_options: '' upgrade_leapp_debug: false upgrade_leapp_devel_skip: '' upgrade_leapp_enabled: "{{ _upgradeLeappEnabled | bool and\n ansible_facts['distribution']\ \ == 'RedHat' and\n ansible_facts['distribution_major_version'] is version('8',\ \ '==') }}" upgrade_leapp_post_reboot_delay: 120 upgrade_leapp_reboot_timeout: 3600 tags: - always vars: _upgradeLeappEnabled: false - block: - block: - name: Run UpgradeInitCommand shell: '#!/bin/bash if [[ -f /etc/resolv.conf.save ]] ; then rm /etc/resolv.conf.save; fi ' - name: Run UpgradeInitCommonCommand shell: '#!/bin/bash ' - dnf: name: '@{{ item.module }}:{{ item.stream }}/{{ item.profile|default(''common'') }}' state: present loop: '{{ dnf_module_list|list }}' name: Ensure DNF modules have the right stream vars: dnf_module_list: [] when: - dnf_module_list|length > 0 - item.distribution_version is defined - ansible_facts['distribution_major_version'] is version(item.distribution_version, '==') - name: Ensure TripleO prerequisite packages are installed package: name: - jq - lvm2 - openstack-selinux - os-net-config - puppet-tripleo - python3-heat-agent* - rsync state: present when: ansible_facts['distribution_major_version'] is version('8', '==') - name: Ensure TripleO prerequisite packages are installed and use role based heat variable to provide specific list of packages package: name: '{{ base_tripleo_packages }}' state: present vars: base_tripleo_packages: [] when: - ansible_facts['distribution_major_version'] is version('8', '==') - base_tripleo_packages|length > 0 - name: WA for 2240185 - If the image is schema 1 and lacks signatures than add empty signatures shell: "for manifest_file in `find /var/lib/containers/storage/overlay-images/\ \ -name 'manifest'`\ndo\n cat <<< $( jq 'if .schemaVersion == 1 then if\ \ has(\"signatures\") then . else .signatures=[] end else . end' $manifest_file\ \ ) > $manifest_file\ndone\n" when: ansible_facts['distribution_major_version'] is version('8', '==') name: Package and repo update tasks - check_mode: false command: /usr/bin/rpm -q libvirt-daemon failed_when: false name: check if libvirt is installed register: libvirt_installed - loop: - libvirtd.service - virtlogd.socket name: make sure libvirt services are disabled and masked service: daemon_reload: true enabled: false masked: true name: '{{ item }}' state: stopped when: - libvirt_installed.rc == 0 name: Host packages setup step0 tags: setup_packages when: step|int == 0