--- /dev/null
+[defaults]
+roles_path = ./
+inject_facts_as_vars = False
strategy:
matrix:
distro:
- - ubuntu2004
+ - centos9
- ubuntu2204
+ - ubuntu2404
fail-fast: false
steps:
- name: Gerrit Checkout
gerrit-project: ${{ inputs.GERRIT_PROJECT }}
gerrit-url: ${{ vars.GERRIT_URL }}
delay: "0s"
- - name: Install test dependencies.
+ - uses: actions/setup-python@v5
+ with:
+ python-version: "3.11"
+ - name: Install test dependencies
run: |
python -m pip install --upgrade pip
- pip3 install ansible ansible-lint molecule-plugins[docker] docker
- - name: Run Molecule tests.
- run: molecule test
- working-directory: ${{env.working-directory}}
+ pip3 install -r requirements.txt
+ - name: Run Molecule tests
+ run: |
+ cat molecule/default/molecule.yml
+ molecule test
env:
PY_COLORS: "1"
ANSIBLE_FORCE_COLOR: "1"
MOLECULE_PLATFORM_NAME: ${{ matrix.distro }}
+ MOLECULE_PROJECT_DIRECTORY: ${{ github.workspace }}
vote:
if: ${{ always() }}
---
- name: Converge
hosts: all
+ gather_facts: true
roles:
- role: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"
dependency:
name: galaxy
driver:
- name: docker
+ name: podman
platforms:
- # - name: centos7
- # image: centos:7
- # - name: centos8
- # image: quay.io/centos/centos:stream8
- # - name: ubuntu1804
- # image: ubuntu:18.04
- - name: ubuntu2004
- image: ubuntu:20.04
+ - name: centos9
+ image: quay.io/centos/centos:stream9
- name: ubuntu2204
image: ubuntu:22.04
- name: ubuntu2404
image: ubuntu:24.04
provisioner:
name: ansible
- # Fix for role path finding in latest molecule versions (~25.4.0)
- env:
- ANSIBLE_ROLES_PATH: ../../../
+ config_options:
+ defaults:
+ callbacks_enabled: ansible.posix.profile_tasks
+ inject_facts_as_vars: false
+ inventory:
+ host_vars:
+ centos9:
+ ansible_python_interpreter: /usr/bin/python3
+ ubuntu2204:
+ ansible_python_interpreter: /usr/bin/python3
+ ubuntu2404:
+ ansible_python_interpreter: /usr/bin/python3
+verifier:
+ name: ansible
--- /dev/null
+ansible>=2.17,<2.19
+ansible-lint>=6.22,<25.0
+molecule>=6.0,<25.0
+molecule-plugins[podman]>=23.5,<25.0
https://rpm.nodesource.com/pub/el/NODESOURCE-GPG-SIGNING-KEY-EL
state: present
- - name: Add Nodesource repositories for Node.js (CentOS 7+).
+ - name: Add Nodesource repositories for Node.js (CentOS 7/8 only).
ansible.builtin.yum:
name:
"https://rpm.nodesource.com/{{ nodejs_rhel_rpm_dir }}/el/\
{{ ansible_architecture }}/nodesource-release-el\
{{ ansible_distribution_major_version }}-1.noarch.rpm"
state: present
- when: ansible_distribution_major_version | int >= 7
+ when:
+ - ansible_distribution_major_version | int >= 7
+ - ansible_distribution_major_version | int <= 8
register: node_repo
- name: Update package cache if repo was added.
--- /dev/null
+---
+# CentOS Stream 9 specific recommended tools (exclude legacy CentOS7 RPM URLs)
+lf_recommended_tools_packages_distro:
+ - bzip2
+ - fedora-packager
+ - findutils
+ - parallel
+ - nc
+ - perl-Digest-SHA
+ - perl-ExtUtils-MakeMaker
+ - perl-XML-XPath
+ - sqlite
+ - xz
--- /dev/null
+---
+lf_recommended_tools_packages_distro:
+ - bzip2
+ - fedora-packager
+ - findutils
+ - parallel
+ - nc
+ - perl-Digest-SHA
+ - perl-ExtUtils-MakeMaker
+ - perl-XML-XPath
+ - sqlite
+ - xz
- bzip2
- fedora-packager
- findutils
- - https://linuxsoft.cern.ch/cern/centos/7/cern/x86_64/Packages/parallel-20150522-1.el7.cern.noarch.rpm
+ - parallel
- nc
- perl-Digest-SHA
- perl-ExtUtils-MakeMaker