Skip to content

Ansible Molecule

Ansible Molecule #51

Workflow file for this run

#
# Ansible managed
#
name: Ansible Molecule
on:
push:
branches:
- main
pull_request:
schedule:
- cron: "0 22 * * *"
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout Codebase
uses: actions/checkout@v4
- name: Run Ansible Lint
uses: ansible-community/ansible-lint-action@main
test:
needs: lint
runs-on: ubuntu-latest
strategy:
matrix:
include:
- distro: debian11
- distro: debian12
steps:
- name: Checkout Codebase
uses: actions/checkout@v4
- name: Setup Python 3
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install Dependencies
run: pip3 install -r requirements.txt
- name: Run Molecule
run: molecule test
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
MOLECULE_DISTRO: ${{ matrix.distro }}