Trying Ansible actions

This commit is contained in:
2023-11-17 23:10:48 +02:00
parent db4006a820
commit 77016eefaa

View File

@@ -12,12 +12,18 @@ jobs:
steps:
- 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