This commit is contained in:
24
.gitea/workflows/ansible-smoke.yml
Normal file
24
.gitea/workflows/ansible-smoke.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
name: ansible-smoke
|
||||
|
||||
on:
|
||||
workflow_dispatch: {}
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
|
||||
jobs:
|
||||
smoke:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install Ansible
|
||||
run: |
|
||||
python3 -m pip install --upgrade pip
|
||||
pip install ansible
|
||||
ansible --version
|
||||
|
||||
- name: Ping inventory (optional)
|
||||
run: |
|
||||
ansible -i inventory/lan.yml all -m ping
|
||||
env:
|
||||
ANSIBLE_HOST_KEY_CHECKING: "False"
|
||||
Reference in New Issue
Block a user