Re: [ansible-project] error creating a directory

2021-06-24 Thread Rahul Puli
Can you try the one below? --- - hosts: all tasks: - name: Create Directory if not exist win_file: path: c:\temp state: directory On Tue, Jun 22, 2021 at 7:08 AM zil...@gmail.com wrote: > Try c:\\temp as path, like this > > --- > - name: testing win_get_url > hosts: all >

Re: [ansible-project] Ansible windows unzip module is failing, how to fix that?

2020-10-22 Thread Rahul Puli
Try to update the below one in your inventory file and try to execute ansible_winrm_server_cert_validation=ignore or Update the pywinrm and check again. On Sat, Oct 17, 2020 at 12:53 AM uday kiran wrote: > My task part of playbook. > - name: unzip maven > win_unzip: > src:

Re: [ansible-project] Conditionally input to a playbook based on vars_prompt

2020-10-22 Thread Rahul Puli
Yes, this can be achievable. You can use when condition. On Thu, Oct 22, 2020 at 11:59 AM Sobhan Anavarapu < sobhan.anavar...@gmail.com> wrote: > I have a question, with optional input of A or B in vars_prompt can the > command be executed in a playbook task. > > example > - name: checking the

Re: [ansible-project] Branching/conditional statements to install different editions and versions of MS SQL Server

2020-09-24 Thread Rahul Puli
l_2016_developer.yml when: sql_version == "2016" and sql_release == "dev" - include: download_mssql_2017_developer.yml when: sql_version == "2017" and sql_release == "dev" - include: download_mssql_2019_developer.yml when: sql_version == "2019"

[ansible-project] Re: Copy module error in windows

2020-09-16 Thread Rahul Puli
Hello Rubod, Please try to run the below code and check. --- - name: "Copy Files" hosts: all tasks: - name: Copy Files win_copy: src: C:\abc.txt dest: C:\ansible\abc.txt On Wednesday, September 16, 2020 at 6:17:13 PM UTC+5:30 rubod...@gmail.com wrote: > HI Team, > > please help

[ansible-project] Branching/conditional statements to install different editions and versions of MS SQL Server

2020-09-10 Thread Rahul puli
Hello, I have created a role to install MSSQL for different versions (2014,2016,2017,2019) and its working fine for all the versions. For installing MS SQL 2014 developer version I need to comment the others developer versions in main.yml file and need to change the product ID