Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/test/variables.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
group_data:
ansible:
sudo:
type: nopasswd
commands: all

user_data:
deadswitch:
ssh_key: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINBpU3ZoAwSXwSZoAae4ca1BPVwcNaxIYXkYwzCbX5+4"
full_name: "DeadSwitch"
password: "*"
groups:
- ansible
sudo:
type: nopasswd
commands: all

firewall_allowed_ports:
- { port: "{{ sshd_port | default('22') }}", proto: tcp }
- { port: "53", proto: udp }
- { port: "443", proto: tcp }
21 changes: 21 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: Ansible Test Run
on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
ansible-run-test:
runs-on: ubuntu-latest
container:
image: debian:13

steps:
- name: Check out the repository
uses: actions/checkout@v4
- name: Install the dependencies
run: apt-get update && apt-get install -y ansible
- name: Run Ansible
run: ansible-playbook playbooks/play-operation-zero.yml -e @.github/test/variables.yaml -i localhost, -c local
Loading