-
Notifications
You must be signed in to change notification settings - Fork 28
38 lines (36 loc) · 915 Bytes
/
dev.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
# Github workflow for execute ansible playbook
name: Dev Env User Update
on:
workflow_dispatch:
push:
branches: [main]
paths: users/*.yml
jobs:
checkout:
runs-on: kb-dev-jumphost-p1
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
update:
strategy:
matrix:
users:
- dev.yml
- sa.yml
- super-admins.yml
- noc.yml
- devops.yml
- engg.yml
runs-on: kb-dev-jumphost-p1
needs: checkout
steps:
- name: Execute Ansible Playbook
uses: dawidd6/[email protected]
with:
playbook: users.yml
directory: ${{ github.workspace }}/ansible
options: |
--extra-vars "@${{ github.workspace }}/users/${{ matrix.users }}"
--inventory-file "${{ github.workspace }}/hosts/dev"