Re: [ansible-project] how to run specific task locally on ansible ?

2020-05-21 Thread Vivek Kothawale
Hi Use tags to achieve this. Thanks, Vivek On Thu, May 21, 2020, 8:30 PM vinod devops wrote: > there are no of tasks in play book, > > all tasks are running remotely on host. I want to run only one task > locally. > > > How do I do that ? Thanks > > > -- > You received this message because

Re: [ansible-project] Running Ansible playbook with Jenkins plugin ... now need to add git

2020-05-03 Thread Vivek Kothawale
Hi To achieve the above mentioned objective you can wirte Jenkins file and package all the files using fpm and deploy that package in jenkins server and then you can run playbooks using ansible jenkins by providing path to playbook. Thanks and Regards, Vivek On Sun, May 3, 2020, 12:18 PM Dick

Re: [ansible-project] How to run 2 playbooks in parallel using a master playbook and monitor for any error

2020-04-23 Thread Vivek Kothawale
Hi You can use strategy as free inside play and call multiple playbooks by using include option in ansible Thanks, Vivek On Wed, Apr 22, 2020, 7:38 PM Happy Souls wrote: > Hi, > > I would appreciate if someone could share a simple example of running 2 > playbooks running in parallel, called

Re: [ansible-project] Yum update on multiple hosts but using a cusom repo file

2020-04-21 Thread Vivek Kothawale
t; Thank you sir. >> >> On Wednesday, April 22, 2020 at 2:50:52 PM UTC+10, Vivek Kothawale wrote: >>> >>> Hi >>> >>> You could use variable and reference that variable inside playbook. >>> I this way you don't have to repeat on call same path

Re: [ansible-project] Yum update on multiple hosts but using a cusom repo file

2020-04-21 Thread Vivek Kothawale
Hi You could use variable and reference that variable inside playbook. I this way you don't have to repeat on call same path mutiple time instead you can call that variable. Thanks, Vivek On Wed, Apr 22, 2020, 10:14 AM Quad Zero wrote: > G'day all Ansible gurus, > > I am very new to Ansible

Re: [ansible-project] Optimize Powershell in playbook

2020-04-02 Thread Vivek Kothawale
Hi Can you please provide error msg which you have encountered while running the Playbook ? Thanks, Vivek On Thu, Apr 2, 2020, 9:17 AM UnknownGnome wrote: > Hello, > > I'm trying to get a playbook working that will run the Optimize Powershell > script that is here: >

Re: [ansible-project] unable to create directory using ansible file module

2020-03-16 Thread Vivek Kothawale
Hi shifa, Can you please check whether dashboard dir is present on remote server? Thanks, Vivek On Mon, Mar 16, 2020, 1:11 PM Shifa Shaikh wrote: > Dick Hi, The issue is not with the loop as I can see the correct value > populated using debug. > > Aslo, the correct value shows up in the error

Re: [ansible-project] ansible playbook error

2020-01-22 Thread Vivek Kothawale
Hi Sandy, The issue is with indentation Under tasks you have to give two white space to make it indent Try following tasks: - name: something Let me know if you have any issue. Thanks, Vivek On Wed, Jan 22, 2020, 2:31 PM Sandy Hung wrote: > ERROR! unexpected parameter type in

Re: [ansible-project] Getting Terminated Message if playbook is executed in Docker

2020-01-07 Thread Vivek Kothawale
Hi Abhishek, Can you please post error and can you please attach playbook here? Best regards, Vivek On Tue, Jan 7, 2020, 1:10 PM Abhishek Inani wrote: > Hi, > > I am running a playbook with few tasks in Docker > After some tasks the playbook is stopped with message as [Terminated] > > While

Re: [ansible-project] API Call output via Ansible URI Module Not Getting the Complete Output

2020-01-06 Thread Vivek Kothawale
Hi pardeep, You can use filter module of ansible to get ouput in from of yaml or json Best regards, Vivek On Mon, Jan 6, 2020, 4:10 PM Pradeep Antil wrote: > Thank You Very Much, it resolves my output capture issue. > > Now content is saved in log file with the following format, is there any

Re: [ansible-project] Ansible fetch only fetch specific file from directory not entire directory contents

2020-01-06 Thread Vivek Kothawale
ry. > Recursive fetching may be supported in a later release. > > > > > On Mon, 6 Jan 2020 at 08:57, Vivek Kothawale > wrote: > > > > Hi Team > > > > > > While working with ansible fetch feature which is one of the best > feature I found in ansible

[ansible-project] Ansible fetch only fetch specific file from directory not entire directory contents

2020-01-05 Thread Vivek Kothawale
Hi Team While working with ansible fetch feature which is one of the best feature I found in ansible, I found that ansible fetch will only pull in the single file form remote machine it can not fetch (pull) entire directory contents form remote machine which I found while running playbook