From 4bd5040dd91e958df3a4dd492b1904f37a504880 Mon Sep 17 00:00:00 2001 From: devops-zuul <69584999+devops-zuul@users.noreply.github.com> Date: Mon, 23 Nov 2020 17:44:51 +0530 Subject: [PATCH] Update calculator_job1.yaml --- playbooks/calculator_job1.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/playbooks/calculator_job1.yaml b/playbooks/calculator_job1.yaml index 1b7c1b0..ff9b8de 100644 --- a/playbooks/calculator_job1.yaml +++ b/playbooks/calculator_job1.yaml @@ -1,6 +1,8 @@ -- hosts: all - become: true +- hosts: localhost 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 ./playbook/calculator.py