--- # Runs on the repository's own runner (label kamino-molecule), in the molecule-ubuntu2404 image # (MOLECULE_IMAGE, the pin in .gitea/workflows/molecule.yml). Needs no network: the "binaries" # are stub shell scripts written by ../resources/prepare.yml, run by a stub systemd unit. The # test caller role lives in ../resources/roles, because the role refuses a call from a play. driver: name: docker platforms: - name: binary-update-check-instance image: ${MOLECULE_IMAGE} pre_build_image: true pull: true command: /sbin/init cgroupns_mode: host volumes: - /sys/fs/cgroup:/sys/fs/cgroup:rw tmpfs: - /run - /run/lock security_opts: - apparmor=unconfined provisioner: name: ansible env: ANSIBLE_ROLES_PATH: "${MOLECULE_SCENARIO_DIRECTORY}/../resources/roles" verifier: name: ansible scenario: # molecule's default sequence minus its first destroy: the workflow removes what a killed run # left before any scenario starts, so that destroy only waits out the # driver's 5 s poll on a container that is not there. After an aborted local run, run # `molecule destroy` yourself. test_sequence: - dependency - cleanup - syntax - create - prepare # converge only under --check: the scenario tests the preview, nothing is applied - check - verify - cleanup - destroy