distro:
- ubuntu2204
- ubuntu2404
- - centos-stream9
fail-fast: false
steps:
- name: Gerrit Checkout
Installs haveged to help systems with low entropy.
+**Note:** CentOS Stream 9 and RHEL 9+ are not supported as the haveged package is not available in their repositories. Modern systems typically have sufficient entropy sources.
+
Requirements
------------
--- /dev/null
+[defaults]
+roles_path = ../
+callbacks_enabled = profile_tasks
+deprecation_warnings = False
+inject_facts_as_vars = False
+
+[privilege_escalation]
+become = True
# min_ansible_container_version:
platforms:
- - name: EL
- versions:
- - 7
- - 8
-
- name: Ubuntu
versions:
- - bionic
- - focal
- jammy
+ - noble
galaxy_tags:
- system
image: ubuntu:22.04
- name: ubuntu2404
image: ubuntu:24.04
- - name: centos-stream9
- image: quay.io/centos/centos:stream9
provisioner:
name: ansible
+ config_options:
+ defaults:
+ callbacks_enabled: profile_tasks
+ inject_facts_as_vars: false
+ inventory:
+ host_vars:
+ ubuntu2204:
+ ansible_python_interpreter: /usr/bin/python3
+ ubuntu2404:
+ ansible_python_interpreter: /usr/bin/python3
scenario:
name: default
test_sequence:
- - dependency
- - cleanup
- destroy
+ - dependency
- syntax
- create
- prepare
- converge
- - idempotence
- side_effect
- verify
- - cleanup
- destroy
verifier:
- name: testinfra
+ name: ansible
- name: Update APT cache
ansible.builtin.package:
update_cache: yes
- when: ansible_distribution == 'Ubuntu'
- become: true
-
- - name: Install EPEL for CentOS 9
- ansible.builtin.dnf:
- name: epel-release
- state: present
- when: ansible_os_family == 'RedHat' and ansible_distribution_major_version == '9'
- become: true
-
- - name: Install EPEL for CentOS 7/8
- ansible.builtin.yum:
- name: https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{ ansible_distribution_major_version }}.noarch.rpm
- state: present
- disable_gpg_check: True
- when: ansible_os_family == 'RedHat' and ansible_distribution_major_version | int < 9
+ when: ansible_facts['distribution'] == 'Ubuntu'
become: true
---
-- name: Install Epel Repo
- ansible.builtin.package:
- name: epel-release
- state: present
- when: ansible_os_family == "RedHat"
- become: true
-
- name: Install haveged package
ansible.builtin.package:
name: haveged
state: present
become: true
-- name: Enable haveged service (Ubuntu)
+- name: Enable haveged service
ansible.builtin.service:
name: haveged
enabled: yes
become: true
- when: ansible_distribution == 'Ubuntu'
-
-- name: Enable haveged service (RedHat)
- ansible.builtin.systemd:
- name: haveged
- enabled: yes
- become: true
- when: ansible_os_family == "RedHat"