-
Notifications
You must be signed in to change notification settings - Fork 47
45 lines (42 loc) · 1.09 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Ansible Playbook Execution
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
jobs:
run-playbook-amd64:
runs-on: ubuntu-latest
strategy:
matrix:
debian_version: [buster, bullseye, bookworm]
container:
image: debian:${{ matrix.debian_version }}
steps:
- uses: actions/checkout@v3
- name: Install Packages
run: |
apt-get update
apt-get install -y ansible sudo curl
- name: Run Playbook
run: |
ANSIBLE_ROLES_PATH=../ ansible-playbook playbook.yml --ask-become-pass
run-playbook-arm64:
runs-on: ubuntu-22.04-arm
strategy:
matrix:
debian_version: [buster, bullseye, bookworm]
container:
image: debian:${{ matrix.debian_version }}
steps:
- uses: actions/checkout@v3
- name: Install Packages
run: |
apt-get update
apt-get install -y ansible sudo curl
- name: Run Playbook
run: |
ANSIBLE_ROLES_PATH=../ ansible-playbook playbook.yml --ask-become-pass