[ansible-project] Every SSH connection logs mux_client_read_packet: read header failed: Broken pipe

2020-02-24 Thread John Bateman
Each SSH connection throughout every playbook execution ends with Broken Pipe error message mux_client_read_packet: read header failed: Broken pipe, seen with verbose logging enabled. This doesn't cause the failure of a task and the connection can still be seen to return a 0 exit code and the

Re: [ansible-project] [ Ansible ] - Weird nested loop help

2020-02-24 Thread Jean-Yves LENHOF
Not so obvious to understand... Perhaps you should try progressive steps and not wanting to do everything in one unique step To look for specific file, perhaps you should use the find module with a register And after loop on these files using the variable registered before... Regards,

[ansible-project] Re: Win_ping Module | failed to run exec_wrapper | URGENT

2020-02-24 Thread Jordan Borean
We use C# code in our code for a lot of things, in this case it's the Ansible wrapper we use to abstract the communication to and from the controller. Part of that process is to compile the C# code to a dll and load that in PowerShell. This all happens in the background and is part of

[ansible-project] Re: Win_ping Module | failed to run exec_wrapper | URGENT

2020-02-24 Thread 'J Hawkesworth' via Ansible Project
I have not seen this error before, but what permissions are on c:\Users\Adm\AppData\Local\Temp\ directory? Do you get any more information if you run ansible with -vv option? On Monday, February 24, 2020 at 9:16:46 AM UTC, Piyush Bansal wrote: > > Hello, > > I am running win_ping for

Re: [ansible-project] Unable to load variable from include_vars into my playbook

2020-02-24 Thread Dick Visser
You can’t resolve variables with names that contain variables themselves. Instead, use a lookup: https://docs.ansible.com/ansible/latest/plugins/lookup/vars.html Also try to use the args: chdir option instead of doing &&, see https://docs.ansible.com/ansible/latest/modules/shell_module.html

Re: [ansible-project] Templating error with Ansible 2.9 or higher

2020-02-24 Thread harry devine
Here's the output: [root@test-server ~]#ansible-playbook test_manage_satellite_cv.yml -K BECOME password: PLAY [Automated Satellite6 content view publish and promote] **

[ansible-project] Unable to load variable from include_vars into my playbook

2020-02-24 Thread Shifa Shaikh
I have a playbook where I load a variable file cat vars/BASE.yaml EXCLUDE_front: value1 EXCLUDE_back: value2 I run my test.yml playbook using this command: ansible-playbook test.yml -e Layer="back" -e base_folder="/tmp" - name: Load a variable file" include_vars: file:

Re: [ansible-project] Create Key value pair

2020-02-24 Thread Vladimir Botka
On Mon, 24 Feb 2020 05:06:55 -0800 (PST) Sivaraman P wrote: >- name: get variable > shell: cat file #this file contain the list of items that I need to run > the command > register: out1 > >- name: export > shell: command {{item}} > register: out2 #This contains

Re: [ansible-project] Issue with openssl_csr authority_cert_issuer

2020-02-24 Thread Joshua Goldman
Amazing!! Thank you, I am looking at the code now. Let me see if I can test it. On Saturday, February 22, 2020 at 12:44:38 PM UTC-6, Felix Fontein wrote: > > Hi, > > > I am trying to specify O and CN > > > > authority_cert_issuer: 'dirName:O = Example Net, CN = > >

Re: [ansible-project] Create Key value pair

2020-02-24 Thread Stefan Hornburg (Racke)
On 2/24/20 3:31 PM, Karl Auer wrote: > Hi. We need to know *specifically* what you are trying to do. Not generally. > > Create a minimal playbook that implements (or at least tries to implement) > your goal. When you've got as far as you can, > run it and postthe playbook and the output in full

Re: [ansible-project] Create Key value pair

2020-02-24 Thread Karl Auer
Hi. We need to know *specifically* what you are trying to do. Not generally. Create a minimal playbook that implements (or at least tries to implement) your goal. When you've got as far as you can, run it and postthe playbook and the output in full here. In FULL. Anything else is wasting your

Re: [ansible-project] [ Ansible ] - Weird nested loop help

2020-02-24 Thread João Santos
Hey thanks for your comment regarding automation, it's very useful. Might not make sense to you and that's the reason why I explained with details - was to explain what I'm trying to achieve, what I'm trying but without success and with expectations that someone could share more than you had

Re: [ansible-project] Create Key value pair

2020-02-24 Thread Stefan Hornburg (Racke)
On 2/24/20 2:58 PM, Sivaraman P wrote: > Hi, I just want to  > > Ex: >  hosts: dev >  tasks: >    - name: get variable >      shell: some command  >      register: out1 # i want to use stdout_lines of these out1 in my next task > >    - name: export >      shell: command {{item}}  >      

Re: [ansible-project] [ Ansible ] - Weird nested loop help

2020-02-24 Thread Stefan Hornburg (Racke)
On 2/24/20 2:00 PM, João Santos wrote: > Hey community, need your help again... > > On my goal of automation I'm blocked on loops... dont know if I'm doing > wrong, need to change approach or if just stupid... > You don't show no evidence of what are you trying to automate :-(. At any rate it

Re: [ansible-project] Create Key value pair

2020-02-24 Thread Sivaraman P
Hi, I just want to Ex: hosts: dev tasks: - name: get variable shell: some command register: out1 # i want to use stdout_lines of these out1 in my next task - name: export shell: command {{item}} register: out2 # i want to use stdout kines of each item in my next task

Re: [ansible-project] Create Key value pair

2020-02-24 Thread Dick Visser
Hi Sivaraman Could you please state clearly: - What goal you are trying to achieve. - How you are doing this. - What problems you encounter. - Which command did you run, and what actual output did you get from that (copied as plain text - not as images, attachments, or screenshots) - What the

Re: [ansible-project] Create Key value pair

2020-02-24 Thread Sivaraman P
Thank you for your response. I just Showed it for example only... Actually I am getting those keys from register variable(out1) On Mon, 24 Feb 2020, 18:43 Stefan Hornburg (Racke), wrote: > On 2/24/20 2:06 PM, Sivaraman P wrote: > > I have list of items to be executed in the command and I have

Re: [ansible-project] Create Key value pair

2020-02-24 Thread Stefan Hornburg (Racke)
On 2/24/20 2:06 PM, Sivaraman P wrote: > I have list of items to be executed in the command and I have to save the > result in stdout for each item to the same item. > > Ex: > hosts: dev > tasks: >- name: get variable > shell: cat file #this file contain the list of items that I need

[ansible-project] Create Key value pair

2020-02-24 Thread Sivaraman P
I have list of items to be executed in the command and I have to save the result in stdout for each item to the same item. Ex: hosts: dev tasks: - name: get variable shell: cat file #this file contain the list of items that I need to run the command register: out1 - name:

[ansible-project] Win_ping Module | failed to run exec_wrapper | URGENT

2020-02-24 Thread Piyush Bansal
Hello, I am running win_ping for windows 2008R2 64bit server from ansible 2.8.2 & python version = 2.7.5. Below are connection parameters: winrm ssl 5986 ignore certificates Admin user Credentials are working fine and no issues. While running this task I am getting following error. Never have