Skip to content

Commit

Permalink
gh-ations for prod user management automation.
Browse files Browse the repository at this point in the history
  • Loading branch information
srajasimman committed Jul 12, 2024
1 parent ef43d55 commit e3e5764
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Github workflow for execute ansible playbook
name: Prod Env User Update

on:
workflow_dispatch:
push:
branches: [main]
paths: users/*.yml

jobs:
checkout:
runs-on: kb-prod-jumphost-p1
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
update:
strategy:
matrix:
users:
- devops.yml
- noc.yml
- engg.yml
- sa.yml
runs-on: kb-prod-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/prod"

0 comments on commit e3e5764

Please sign in to comment.