Add an Gitea Action for Deploying Ansible Playbooks #1

Merged
BenHays42 merged 12 commits from ansible-deploy-action into main 2024-10-13 01:42:00 +00:00
Showing only changes of commit 43d2e66b6a - Show all commits

View File

@ -5,6 +5,7 @@ jobs:
runs-on: ubuntu-latest
env:
RUNNER_TOOL_CACHE: /toolcache
ANSIBLE_VERSION: 10.5.0
strategy:
matrix:
playbook:
@ -25,11 +26,17 @@ jobs:
with:
submodules: recursive
- name: "Cache python packages"
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-${{ env.ANSIBLE_VERSION }}
- name: Install Ansible
run: |
apt update -y
apt install python3-pip -y
python3 -m pip install ansible
python3 -m pip install ansible==${{ env.ANSIBLE_VERSION }}
#- name: Install Ansible Galaxy requirements
# run: |