[ansible-project] Re: The setup task to windows machine hangs

2017-01-12 Thread Deepa Yr
error state is 1203. Thanks Deepa On Friday, January 6, 2017 at 2:06:46 PM UTC+5:30, Deepa Yr wrote: > > Hi > > At some point of time in the execution of playbooks, it hangs at > the setup task with windows machine. It does not send the response back to > ansible

[ansible-project] The setup task to windows machine hangs

2017-01-06 Thread Deepa Yr
Hi At some point of time in the execution of playbooks, it hangs at the setup task with windows machine. It does not send the response back to ansible controller I guess, and playbook hangs. in windows machine, i see powershell command running as back ground process and in temp

[ansible-project] Re: Tasks are not executed in the order defined in With_dict

2016-12-12 Thread Deepa Yr
ections. You should never rely on items > in a dictionary to be returned in order. You'd be better off using a list. > > patches: > - patchdata1 > - patchdata2 > > A list preserves order. > > On Monday, 12 December 2016 15:37:22 UTC+1, Deepa Yr wrote: >> >

[ansible-project] Tasks are not executed in the order defined in With_dict

2016-12-12 Thread Deepa Yr
Hi I have a dict where I need to install patches in the order patches: patch1: patch_name: patch2: patch_name: patch3: patch_name: and so on patch8: patch_name: - name: install patches include: install_patch.yml with_dict:

[ansible-project] with_dict and with_items together in ansible task

2016-12-05 Thread Deepa Yr
Hi My requirement is to install multiple patches on different machines based on which all tiers the patch is supported for install. Say patch1 should be installed on client group and service group, patch2 should be installed on client group and database group machines. - name:

[ansible-project] SSH failure connection

2016-12-01 Thread Deepa Yr
Hi The playbook is failing with this error; FAILED! => {"changed": false, "failed": true, "invocation": {"module_name": "command"}, "module_stderr": "OpenSSH_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config

[ansible-project] Until is giving issues with ansible 2.1

2016-09-08 Thread Deepa Yr
Hi Earlier we were using Ansible 2.0.1 where playbooks were running fine. Now upgraded to Ansible 2.1.1. Seeing issues with until module. - name: Copy the file get_url: headers: "{{ headers }}" url: "{{ asset_repo_url }}/{{ file_path }}" dest: "{{ file_dest }}"

[ansible-project] Re: Execution of shell module is giving "msg": "MODULE FAILURE", "parsed": false

2016-05-13 Thread Deepa Yr
Any help ? The command which we are running through shell is getting completed(I could see install of our product is happening), but ansible is not getting any response that it is completed. After sometime, it is failing with module failure error. Sometimes same playbook works fine. -- You

[ansible-project] Re: Getting WinRM connection refused error randomly

2016-05-12 Thread Deepa Yr
Thanks for the inputs. With new script, I see connection failure reduced significantly -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[ansible-project] Execution of shell module is giving "msg": "MODULE FAILURE", "parsed": false

2016-05-11 Thread Deepa Yr
Hi I am trying to run a setup file on linux machine from shell command and also by creating a custom python module to run the setup file. When it is run, it is failing with this error: {"changed": false, "failed": true, "module_stderr": "", "module_stdout": "", "msg": "MODULE FAILURE",

[ansible-project] Re: Getting WinRM connection refused error randomly

2016-04-29 Thread Deepa Yr
Thanks for the inputs. I noticed Event viewer.The WinRM service is not listening for WS-Management requests. User Action If you did not intentionally stop the service, use the following command to see the WinRM configuration: winrm enumerate winrm/config/listener Let me explain the

[ansible-project] Re: Getting WinRM connection refused error randomly

2016-04-26 Thread Deepa Yr
Any help on this ? Thanks > Deepa -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To post to this group, send

[ansible-project] Getting WinRM connection refused error randomly

2016-04-20 Thread Deepa Yr
Hi I have a playbook which does few actions on windows machine. Few actions will get completed and then playbook exits with An exception occurred during task execution. To see the full traceback, use -vvv. The error was: WinRMTransportError: 500 WinRMTransport. [Errno 111] Connection

[ansible-project] Fetch equivalent command in windows?

2016-04-12 Thread Deepa Yr
Hi I want to copy a file from windows client to Ansible controller machine (linux). I see fetch command which does that .What is the equivalent one for windows. I could not find it in the documentation Thanks -- You received this message because you are subscribed to the Google

[ansible-project] Re: Facing issues with WinRM connection

2016-04-10 Thread Deepa Yr
ntent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1 > > please? > > Which version of Windows are you running against? > > On Thursday, April 7, 2016 at 12:10:56 PM UTC+1, Deepa Yr wrote: >> >> WinRM is already set up to receive requests on t

[ansible-project] Facing issues with WinRM connection

2016-04-07 Thread Deepa Yr
WinRM is already set up to receive requests on this computer. WinRM has been updated for remote management. Created a WinRM listener on HTTP://* to accept WS-Man requests to any IP on this machine. WinRM firewall exception enabled. Configured LocalAccountTokenFilterPolicy to grant administrative

[ansible-project] Re: Is there a way to find out network speed and bandwidth using ansible

2016-04-06 Thread Deepa Yr
Phillips wrote: > > Not what you're after, I suspect, but... > > shell: "ethtool {{ ansible_default_ipv4.interface }} | awk > '/Duplex|Speed/ { print $1, $2 }'" > > On Wednesday, 6 April 2016 08:13:59 UTC+1, Deepa Yr wrote: >> >> Hi >> >>

[ansible-project] Is there a way to find out network speed and bandwidth using ansible

2016-04-06 Thread Deepa Yr
Hi I want to check machine is provisioned with proper specifications or not. As part of that I need to check the speed and bandwidth. Setup does not give any info on this., ethtool eth0 Settings for eth0: Link detected: yes The ethtool command gives only this much info. Other

[ansible-project] Re: How to have windows configured with ansible automatically

2016-04-04 Thread Deepa Yr
you can also create an autorun xml file and add it to the root > of the windows ISO which allows for a fully automated installation of > windows from ISO but I have not tried this myself. > > Hope this helps, > > Jon > > > > On Friday, 1 April 2016 05:45:18 UTC+1, Dee

[ansible-project] How to have windows configured with ansible automatically

2016-03-31 Thread Deepa Yr
Hi My requirement is Provision a windows machine and run the playbooks without manual intervention. In this case, we cannot run the playbooks as windows is not configured for ansible. ie ConfigureRemotingForAnsible.ps1 is not executed on windows machine. Is there a way to

[ansible-project] Running exe file on windows from linux control machine

2016-03-09 Thread Deepa Yr
Hi I am trying to install our product on windows machine. I tried "raw" command. It kicks off the install on windows but the install fails in the middle of the execution with "out of memory error" though there is free memory in the system. When same install I tried without ansible,

[ansible-project] Re: playbook to install software on windows clients from linux control machine

2016-03-07 Thread Deepa Yr
Were you able to resolve installation of exe files on windows ? On Wednesday, June 17, 2015 at 10:51:12 PM UTC+5:30, priya.n...@gmail.com wrote: > > Hi, > > I am trying to write a playbook which will install windows software(exe > files) on windows client machine from the control machine

[ansible-project] Re: Unzip on windows is giving You cannot call a method on a null-valued expression

2016-03-07 Thread Deepa Yr
Its resolved now. There are four slash () after C: . Once that is changed it ran fine. Thanks On Monday, March 7, 2016 at 7:31:28 PM UTC+5:30, Deepa Yr wrote: > > - > name: "Unpack license into Client install" > win_unzip: > dest: "{

[ansible-project] Re: Unzip on windows is giving You cannot call a method on a null-valued expression

2016-03-07 Thread Deepa Yr
Yes install_base_path exists and I can see it is getting replaced with correct value C:Bundles.zip On Monday, March 7, 2016 at 7:59:30 PM UTC+5:30, J Hawkesworth wrote: > > Does install_base_path exist? > > On Monday, 7 March 2016 14:01:28 UTC, Deepa Yr wrote: >> >&g

[ansible-project] Unzip on windows is giving You cannot call a method on a null-valued expression

2016-03-07 Thread Deepa Yr
- name: "Unpack license into Client install" win_unzip: dest: "{{ install_path }}\\" src: "{{ install_base_path }}\\Bundles.zip" Path {{ install_path }}\\ already exists. When above code is executed, getting this error fatal: []: FAILED! => {"changed": false, "failed": true,

[ansible-project] Re: How to copy a file from control machine to the host where task is running

2016-03-06 Thread Deepa Yr
Any help on this ? On Thursday, March 3, 2016 at 3:04:12 PM UTC+5:30, Deepa Yr wrote: > > I have few files in control machine ie host1. > My playbook/tasks are running on host2. > I need to copy the files from host1 to host2. > > Please let me know how it can be done &

[ansible-project] How to copy a file from control machine to the host where task is running

2016-03-03 Thread Deepa Yr
I have few files in control machine ie host1. My playbook/tasks are running on host2. I need to copy the files from host1 to host2. Please let me know how it can be done -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from

Re: [ansible-project] Generating password randomly when user is created

2016-03-02 Thread Deepa Yr
Thanks. Understood what you suggested. It works now. On Tuesday, March 1, 2016 at 6:35:57 PM UTC+5:30, Matt Martz wrote: > > The user module expects the password to already be encrypted. You will > also need to pass encrypt=True to the lookup as well. > > On Tuesday, March 1,

Re: [ansible-project] Generating password randomly when user is created

2016-03-01 Thread Deepa Yr
PM UTC+5:30, Matt Martz wrote: > > The user module expects the password to already be encrypted. You will > also need to pass encrypt=True to the lookup as well. > > On Tuesday, March 1, 2016, Deepa Yr <yr.d...@gmail.com > > wrote: > >> >> I am runni

[ansible-project] How to set ulimit -n 10240 for the current session in ansible

2016-02-25 Thread Deepa Yr
Hi Before installing my product using command module, I need to set ulimit -n 10240. I tried running - name: Install product command: "{{ item }}" with_items: - "ulimit -n 10240" - "setup -r responsefile" When I run this way, I get "module_name": "command"}, "item":

[ansible-project] Getting this error while splitting arguments, either an unbalanced jinja2 block or quotes

2016-02-24 Thread Deepa Yr
I am a newbie to ansible. I have a playbook(playbook1) with a role and defined variables - hosts: all roles: - role1 vars: buildDetails: destination: /tmp location: /tmp url: http://example.com/test I have a task In task, main.yml I have