Compare commits

...

2 Commits

Author SHA1 Message Date
9c2a255e1c Trying Ansible actions 2023-11-17 23:11:08 +02:00
77016eefaa Trying Ansible actions 2023-11-17 23:10:48 +02:00

View File

@@ -2,6 +2,8 @@ name: Ansible Deploy
on:
push:
branches:
- main
jobs:
deploy:
@@ -11,11 +13,17 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install Ansible
run: |
python -m pip install --upgrade pip
pip install ansible
- name: Run Ansible Playbook
run: |
docker pull ubuntu
docker run \
-v ${{ gitea.workspace }}:/runner/project \
-w /runner/project \
ubuntu \
ansible-playbook -i inventory.yml ping.yml