mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-ansible-private.git
synced 2025-10-27 08:43:05 +00:00
v0
This commit is contained in:
23
.gitea/workflows/deploy-k8s.yml
Normal file
23
.gitea/workflows/deploy-k8s.yml
Normal file
@ -0,0 +1,23 @@
|
||||
name: IAC
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
hello:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Cloning ansible repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: ansible/iac
|
||||
|
||||
- name: Install Ansible
|
||||
run: sudo apt-get install -y ansible
|
||||
|
||||
- name: Run Ansible Playbook
|
||||
working-directory: ansible/
|
||||
run: |
|
||||
ansible-playbook -i inventory.ini playbook.yml
|
||||
Reference in New Issue
Block a user