Support new distributions scripts #7
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: Install system 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: Ensure pip is installed | |
run: | | |
python3 -m ensurepip --default-pip | |
python3 -m pip --version # Verifica que pip está instalado | |
- name: Install Ansible | |
run: | | |
python3 -m pip install --upgrade pip | |
python3 -m pip install ansible | |
- name: Install Python and Ansible | |
run: | | |
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 |