From dff7e83f6a1e07c0bb34768a152d6a66e8774761 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 19 Jun 2025 11:30:12 +0000 Subject: [PATCH 1/2] chore(deps): update ansible/ansible-lint digest to 06f616d Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/ansible-lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ansible-lint.yml b/.github/workflows/ansible-lint.yml index 559f5c84..caf34f91 100644 --- a/.github/workflows/ansible-lint.yml +++ b/.github/workflows/ansible-lint.yml @@ -29,4 +29,4 @@ jobs: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - name: Lint Ansible Playbook - uses: ansible/ansible-lint@e98f9b38769d45cbe3c55a23b2eb25631babe7c4 # v25 + uses: ansible/ansible-lint@06f616d6e86e9ce4c74393318d1cbb2d016af413 # v25 From 96e7d7a5bdd3ecc5e8be831aad1eea27d8059e12 Mon Sep 17 00:00:00 2001 From: Martin Schurz Date: Thu, 24 Jul 2025 16:43:52 +0200 Subject: [PATCH 2/2] Use different names for test tasks Signed-off-by: Martin Schurz --- molecule/ssh_hardening/prepare.yml | 17 +++++++++++------ molecule/ssh_hardening_custom_tests/prepare.yml | 17 +++++++++++------ 2 files changed, 22 insertions(+), 12 deletions(-) diff --git a/molecule/ssh_hardening/prepare.yml b/molecule/ssh_hardening/prepare.yml index 7d3b8c65..59073695 100644 --- a/molecule/ssh_hardening/prepare.yml +++ b/molecule/ssh_hardening/prepare.yml @@ -12,27 +12,32 @@ ansible_python_interpreter: /usr/bin/python3 when: ansible_facts.distribution == 'Fedora' - - name: Install packages # noqa ignore-errors + - name: Install dnf packages # noqa ignore-errors ansible.builtin.dnf: name: - openssh-clients - openssh-server + state: present + update_cache: true + ignore_errors: true + + - name: Install libselinux-python # noqa ignore-errors + ansible.builtin.dnf: + name: - libselinux-python state: present update_cache: true ignore_errors: true - - name: Install packages # noqa ignore-errors + - name: Install procps-ng # noqa ignore-errors ansible.builtin.dnf: name: - - openssh-clients - - openssh-server - procps-ng state: present update_cache: true ignore_errors: true - - name: Install packages # noqa ignore-errors + - name: Install apt packages # noqa ignore-errors ansible.builtin.apt: name: - openssh-client @@ -47,7 +52,7 @@ changed_when: false when: ansible_facts.os_family == 'Suse' - - name: Install packages + - name: Install packages on SuSE community.general.zypper: name: - openssh diff --git a/molecule/ssh_hardening_custom_tests/prepare.yml b/molecule/ssh_hardening_custom_tests/prepare.yml index 83884dd4..b1dfd56b 100644 --- a/molecule/ssh_hardening_custom_tests/prepare.yml +++ b/molecule/ssh_hardening_custom_tests/prepare.yml @@ -12,27 +12,32 @@ ansible_python_interpreter: /usr/bin/python3 when: ansible_facts.distribution == 'Fedora' - - name: Install packages # noqa ignore-errors + - name: Install dnf packages # noqa ignore-errors ansible.builtin.dnf: name: - openssh-clients - openssh-server + state: present + update_cache: true + ignore_errors: true + + - name: Install libselinux-python # noqa ignore-errors + ansible.builtin.dnf: + name: - libselinux-python state: present update_cache: true ignore_errors: true - - name: Install packages # noqa ignore-errors + - name: Install procps-ng # noqa ignore-errors ansible.builtin.dnf: name: - - openssh-clients - - openssh-server - procps-ng state: present update_cache: true ignore_errors: true - - name: Install packages # noqa ignore-errors + - name: Install apt packages # noqa ignore-errors ansible.builtin.apt: name: - openssh-client @@ -47,7 +52,7 @@ changed_when: false when: ansible_facts.os_family == 'Suse' - - name: Install packages + - name: Install packages on SuSE community.general.zypper: name: - openssh