Dev Env User Update #3
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 | |
pull_request: | |
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 | |
inventory: ${{ github.workspace }}/hosts/dev | |
options: | | |
--extra-vars "@${{ github.workspace }}/users/noc.yml" | |
- name: Execute Ansible Playbook (DevOps) | |
uses: dawidd6/action-ansible-playbook@v2.8.0 | |
with: | |
playbook: users.yml | |
directory: ${{ github.workspace }}/ansible | |
inventory: ${{ github.workspace }}/hosts/dev | |
options: | | |
--extra-vars "@${{ github.workspace }}/users/devops.yml" | |
- name: Execute Ansible Playbook (Engeneering) | |
uses: dawidd6/action-ansible-playbook@v2.8.0 | |
with: | |
playbook: users.yml | |
directory: ${{ github.workspace }}/ansible | |
inventory: ${{ github.workspace }}/hosts/dev | |
options: | | |
--extra-vars "@${{ github.workspace }}/users/engg.yml" | |
- name: Execute Ansible Playbook (SA) | |
uses: dawidd6/action-ansible-playbook@v2.8.0 | |
with: | |
playbook: users.yml | |
directory: ${{ github.workspace }}/ansible | |
inventory: ${{ github.workspace }}/hosts/dev | |
options: | | |
--extra-vars "@${{ github.workspace }}/users/sa.yml" |