Support new distributions scripts #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Ansible Playbook Execution | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
permissions: | |
contents: read | |
jobs: | |
run-playbook-amd64: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
debian_version: [bookworm] | |
container: | |
image: debian:${{ matrix.debian_version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.13" | |
cache: "pip" | |
- name: Install Python and Ansible | |
run: | | |
apt-get update | |
apt-get install -y sudo curl | |
pip install -r requirements.txt | |
- name: Run Playbook | |
run: | | |
ANSIBLE_ROLES_PATH=../ ansible-playbook playbook.yml --ask-become-pass | |
# run-playbook-arm64: | |
# runs-on: ubuntu-22.04-arm | |
# strategy: | |
# matrix: | |
# debian_version: [buster, bullseye, bookworm] | |
# container: | |
# image: debian:${{ matrix.debian_version }} | |
# steps: | |
# - uses: actions/checkout@v3 | |
# - name: Install Python and Ansible | |
# run: | | |
# apt-get update | |
# apt-get install -y python3 python3-venv python3-pip ansible sudo curl | |
# python3 -m venv venv | |
# source venv/bin/activate | |
# pip install --upgrade pip | |
# - name: Install Ansible Requirements | |
# run: | | |
# source venv/bin/activate | |
# pip3 install -r requirements.txt | |
# - name: Run Playbook | |
# run: | | |
# source venv/bin/activate | |
# ANSIBLE_ROLES_PATH=../ ansible-playbook playbook.yml --ask-become-pass |