Skip to content

Ansible deployment test #278

Ansible deployment test

Ansible deployment test #278

Workflow file for this run

name: Ansible deployment test
on:
schedule:
- cron: "0 5 * * 1"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
podman:
name: Ansible (${{matrix.extra}})
runs-on: ubuntu-latest
container:
image: fedora:40
env:
RUN_BEFORE: 'dnf install -y git ansible'
GIT_URL: 'https://github.com/${{github.repository}}'
GIT_REF: '${{github.ref_name}}'
INVENTORY: 'selftests/deployment/inventory'
PLAYBOOK: 'selftests/deployment/deployment.yml'
strategy:
matrix:
extra: ["method=pip", "method=copr", "method=official", "method=pip avocado_vt=true avocado_vt_full_tests=false"]
fail-fast: false
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Install Ansible
run: dnf install -y git ansible
- name: Run Ansible playbook
run: ansible-pull -v -U "${GIT_URL}" -C "${GIT_REF}" -i "${INVENTORY}" -c local "${PLAYBOOK}" -e "${{matrix.extra}} avocado_git_url=${GIT_URL}.git avocado_git_branch=${GIT_REF}"