Fix: Fix molecule test errors for latest ansible 23/72623/1
authorEric Ball <eball@linuxfoundation.org>
Wed, 7 Feb 2024 00:13:47 +0000 (16:13 -0800)
committerEric Ball <eball@linuxfoundation.org>
Wed, 7 Feb 2024 00:13:47 +0000 (16:13 -0800)
commitea90828c92a82fc79eb3f0937fbf4e72aacfe7a6
tree8e86d23c77b87204cfbe8ccf81fc593e5c2cf009
parent806d5b2dbb7124652a537267a18a58d74a84892a
Fix: Fix molecule test errors for latest ansible

This include:
* Use MOLECULE_PLATFORM_NAME rather than MOLECULE_DISTRO to run tests
  per distro.
* Remove "warn" arg from command actions, as it is no longer
  supported.
* Replace generic "package" with "yum" and "apt".
* Specify ansible.builtin.command for action using a register. There
  was an error caused by a missing field from the registered output
  otherwise.
* Fix list concat formatting for package list in vars/.
* Add gpg to package list. Some docker images do not come with it
  included, which was causing failures.

Issue: RELENG-5129
Change-Id: I0a665f11f6f592ed2fe1ec2875a6db9e758e91cf
Signed-off-by: Eric Ball <eball@linuxfoundation.org>
.github/workflows/gerrit-verify.yaml
molecule/default/prepare.yml
tasks/main.yml
vars/main.yml