Skip to content

sudo no password for nandk #6

sudo no password for nandk

sudo no password for nandk #6

Workflow file for this run

# Github workflow for execute ansible playbook
name: UAT Env User Update
on:
workflow_dispatch:
push:
branches: [main]
paths: users/*.yml
jobs:
checkout:
runs-on: kb-uat-jumphost-p1
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
update:
runs-on: kb-uat-jumphost-p1
needs: checkout
steps:
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v44
with:
files: |
users/*.yml
- name: Execute Ansible Playbook
uses: dawidd6/action-ansible-playbook@v2.8.0
with:
playbook: users.yml
directory: ${{ github.workspace }}/ansible
options: |
--extra-vars "@${{ github.workspace }}/users/${{ steps.changed-files.outputs.all_changed_files[0] }}"
--inventory-file "${{ github.workspace }}/hosts/uat"