arun removed #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Github workflow for execute ansible playbook | |
name: Dev Env User Update | |
on: | |
workflow_dispatch: | |
push: | |
branches: [main] | |
paths: users/*.yml | |
jobs: | |
build: | |
runs-on: kb-dev-jumphost-p1 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- 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" | |
- 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" | |
- 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" | |
- 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" |