Skip to content

Commit

Permalink
Merge pull request #3 from danielvijge/feature/github-actions
Browse files Browse the repository at this point in the history
GitHub actions to test configuration
  • Loading branch information
danielvijge authored Aug 18, 2023
2 parents 8e05c00 + d2c8439 commit 127927b
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 4 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/test-configuration.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Test sample configuration

on:
push

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
fetch-depth: 0
- name: Run Ansible Playbook
uses: arillso/action.playbook@master
with:
playbook: test_config_local.yaml
inventory: inventory-sample.yaml
galaxy_file: ansible-requirements.yaml
4 changes: 4 additions & 0 deletions ansible-requirements.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
roles:
- name: gekmihesg.openwrt
collections:
- name: ansible.utils
6 changes: 3 additions & 3 deletions inventory-sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ openwrt:
routers:
hosts:
# The name or IP address can is used to reach this device
router.mylan:
router:
# ID of this device, will get the IP address ending in .1
id: 1
# Unique name for this device
Expand Down Expand Up @@ -45,7 +45,7 @@ openwrt:
aps:
hosts:
# The name or IP address can is used to reach this device
ap1.mylan:
ap1:
# ID of this device, will get the IP address ending in .2
id: 2
# Unique name for this device
Expand All @@ -56,7 +56,7 @@ openwrt:
# DUID of the device, used for static leases in DHCP
duid: 00030001e05aeb0a731c
# Configuration of additional devices
ap2.mylan:
ap2:
id: 3
name: ap2
model: wdr4300
Expand Down
2 changes: 1 addition & 1 deletion test_config_local.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
- hosts: routers
- hosts: openwrt
connection: local
user: root
become: no
Expand Down

0 comments on commit 127927b

Please sign in to comment.