Skip to content

Merge pull request #27 from aaggarwal2805/patch-2 #21

Merge pull request #27 from aaggarwal2805/patch-2

Merge pull request #27 from aaggarwal2805/patch-2 #21

Workflow file for this run

# Github workflow for execute ansible playbook
name: QA Env User Update
on:
workflow_dispatch:
push:
branches: [main]
paths: users/*.yml
jobs:
checkout:
runs-on: kb-qa-jumphost-p1
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
update:
strategy:
matrix:
users:
- sa.yml
- super-admins.yml
- noc.yml
- devops.yml
- engg.yml
runs-on: kb-qa-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/qa"