Skip to content

Dev Env User Update

Dev Env User Update #1

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
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 "@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 "@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 "@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 "@users/sa.yml"