Skip to content

Support new distributions scripts #10

Support new distributions scripts

Support new distributions scripts #10

Workflow file for this run

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: [noble, jammy, focal]
container:
image: ubuntu:${{ matrix.debian_version }}
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: |
apt-get update
apt-get install -y lsb-release sudo curl
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
cache: 'pip'
- name: Install pip and Ansible
run: |
python3 -m ensurepip --default-pip
python3 -m pip install --upgrade pip
python3 -m 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