Skip to content

Dev Env User Update #10

Dev Env User Update

Dev Env User Update #10

Workflow file for this run

# 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
noc:
runs-on: kb-dev-jumphost-p1
concurrency:
group: ansible-playbook
needs: checkout
steps:
- name: Execute Ansible Playbook (NOC)
uses: dawidd6/action-ansible-playbook@v2.8.0
with:
playbook: users.yml
directory: ${{ github.workspace }}/ansible
options: |
--extra-vars "@${{ github.workspace }}/users/noc.yml"
--inventory-file "${{ github.workspace }}/hosts/dev"
devops:
runs-on: kb-dev-jumphost-p1
concurrency:
group: ansible-playbook
needs: checkout
steps:
- name: Execute Ansible Playbook (DevOps)
uses: dawidd6/action-ansible-playbook@v2.8.0
with:
playbook: users.yml
directory: ${{ github.workspace }}/ansible
options: |
--extra-vars "@${{ github.workspace }}/users/devops.yml"
--inventory-file "${{ github.workspace }}/hosts/dev"
engg:
runs-on: kb-dev-jumphost-p1
concurrency:
group: ansible-playbook
needs: checkout
steps:
- name: Execute Ansible Playbook (Engeneering)
uses: dawidd6/action-ansible-playbook@v2.8.0
with:
playbook: users.yml
directory: ${{ github.workspace }}/ansible
options: |
--extra-vars "@${{ github.workspace }}/users/engg.yml"
--inventory-file "${{ github.workspace }}/hosts/dev"
sa:
runs-on: kb-dev-jumphost-p1
concurrency:
group: ansible-playbook
needs: checkout
steps:
- name: Execute Ansible Playbook (SA)
uses: dawidd6/action-ansible-playbook@v2.8.0
with:
playbook: users.yml
directory: ${{ github.workspace }}/ansible
options: |
--extra-vars "@${{ github.workspace }}/users/sa.yml"
--inventory-file "${{ github.workspace }}/hosts/dev"