Role - test_package_action

Role Documentation

Welcome to the “test_package_action” role documentation.

Role Variables: redhat.yml

# This is a random package which is likely to not be installed by default.
test_install_packages:
- bison

Molecule Scenarios

Molecule is being used to test the “test_package_action” role. The following section highlights the drivers in service and provides an example playbook showing how the role is leveraged.

Scenario: negative

Driver: podman
Molecule Inventory
hosts:
  all:
    hosts:
      ubi8:
        ansible_python_interpreter: /usr/bin/python3
Example negative playbook
- name: Converge
  hosts: all
  roles:
  - role: test_package_action
      # Role variable used to interact with the package module shim
    tripleo_enable_package_install: false

Scenario: positive

Driver: podman
Molecule Inventory
hosts:
  all:
    hosts:
      ubi8:
        ansible_python_interpreter: /usr/bin/python3
Example positive playbook
- name: Converge
  hosts: all
  roles:
  - role: test_package_action
      # Role variable used to interact with the package module shim
    tripleo_enable_package_install: true

Scenario: default

Driver: podman
Molecule Inventory
hosts:
  all:
    hosts:
      ubi8:
        ansible_python_interpreter: /usr/bin/python3
Example default playbook
- name: Converge
  hosts: all
  roles:
  - role: test_package_action