From baf3e83900b051d42ddf3f1e14c2ae0fff80737c Mon Sep 17 00:00:00 2001 From: devops-zuul <69584999+devops-zuul@users.noreply.github.com> Date: Mon, 23 Nov 2020 17:58:01 +0530 Subject: [PATCH] Update calculator_job1.yaml --- playbooks/calculator_job1.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/playbooks/calculator_job1.yaml b/playbooks/calculator_job1.yaml index 1b7c1b0..c89b5f8 100644 --- a/playbooks/calculator_job1.yaml +++ b/playbooks/calculator_job1.yaml @@ -1,6 +1,9 @@ -- hosts: all +- hosts: localhost become: true tasks: - - name: Copy and Execute the script - script: /playbooks/calculator1.py - + - name: Unit test + shell: | + cd src + ls + echo "Runing unit test for add.py which is dynamic code getting 2 argument in command line" + python ./testing/calculator.py