Skip to content

feat: Add ansible role [fixes FLU-555, FLU-557, FLU-558, FLU-559, FLU-564, FLU-571] #14

feat: Add ansible role [fixes FLU-555, FLU-557, FLU-558, FLU-559, FLU-564, FLU-571]

feat: Add ansible role [fixes FLU-555, FLU-557, FLU-558, FLU-559, FLU-564, FLU-571] #14

Workflow file for this run

name: ansible
on:
pull_request:
paths:
- "ansible/**"
- ".github/workflows/ansible.yml"
- "!.github/**"
- "!ansible/**.md"
concurrency:
group: "molecule-${{ github.ref }}"
cancel-in-progress: true
env:
PY_COLORS: 1
ANSIBLE_FORCE_COLOR: 1
FORCE_COLOR: 1
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run yamllint
uses: frenck/action-yamllint@v1
with:
config: "ansible/.yamllint"
path: "ansible"
# - name: Run ansible-later
# uses: patrickjahns/[email protected]
# with:
# path: ansible/**
molecule:
runs-on: ubuntu-latest
needs: lint
strategy:
fail-fast: false
matrix:
scenario:
- ubuntu2204
defaults:
run:
working-directory: ansible
steps:
- uses: actions/checkout@v4
- name: Prepare for KVM usage
run: |
sudo apt-get install -y mkisofs qemu-system-x86 qemu-utils
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
sudo usermod -a -G kvm $USER
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: "3.x"
cache: 'pip'
- name: Install python dependencies
run: python -m pip install -r requirements.txt
- name: Run ${{ matrix.scenario }} scenario
run: molecule test --scenario-name "${{ matrix.scenario }}"