Add an Gitea Action for Deploying Ansible Playbooks #1
@ -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: |
|
||||
|
Loading…
Reference in New Issue
Block a user