Files
scripts/.gitea/workflows/pingflow.yaml
Matan Horovitz 707ebe3a62
Some checks failed
Ansible Deploy / deploy (push) Failing after 53s
Trying Ansible actions
2023-11-17 23:36:37 +02:00

33 lines
653 B
YAML

name: Ansible Deploy
on:
push:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up Python
#uses: actions/setup-python@v4
run: |
apt -y update
apt -y install python3 python3-pip
- name: Install Ansible
run: |
python3 -m pip install --upgrade pip
pip install ansible
- name: Set up SSH
uses: webfactory/ssh-agent@v0.5.0
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Run Ansible Playbook
run: |
ansible-playbook -i inventory.yml ping.yaml -vv