28 lines
485 B
YAML
28 lines
485 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 install python3
|
|
|
|
- name: Install Ansible
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install ansible
|
|
|
|
|
|
- name: Run Ansible Playbook
|
|
run: |
|
|
ansible-playbook -i inventory.yml ping.yml
|