Re: [ansible-project] Ansible cannot connect via SSH / broken pipe problem

2018-09-19 Thread Kai Stian Olstad
On Thursday, 20 September 2018 02.10.18 CEST Alexey Eromenko wrote: > opened bug: > Ansible cannot connect via SSH / broken pipe problem #45833 > https://github.com/ansible/ansible/issues/45833 You need to at least upgrade Ansible before filing a issue, version 2.2 isn't supported anymore.

Re: [ansible-project] Re: Source control of playbooks - how do you edit, test and perform version control....

2018-09-19 Thread Dan Linder
Hi Lee, sorry for taking so long to respond. To be honest our setup has grown quite organically in some cases, but we're trying to get some guard-rails around things (e.g. consistent groups defined in common tools we use, access to credentials control, inventory maintenance, etc). > We currently

Re: [ansible-project] Ansible cannot connect via SSH / broken pipe problem

2018-09-19 Thread Alexey Eromenko
opened bug: Ansible cannot connect via SSH / broken pipe problem #45833 https://github.com/ansible/ansible/issues/45833 -- 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

[ansible-project] How can i gather ec2 elb facts using AWX/Ansible Tower?

2018-09-19 Thread Ankit Vashistha
I have been following the ec2_elb_facts module and tried using the below example but in the debug logs i can see the aws values are completely getting ignored. How can i get this working? - hosts: localhost vars: aws_access_key: accesskey aws_secret_key: secretkey ec2_region:

Re: [ansible-project] catch return code

2018-09-19 Thread Brian Coca
when: executes 'before the command' but you can use failed_when/changed_when to check the code 'after' in the same task. -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop

Re: [ansible-project] catch return code

2018-09-19 Thread Kai Stian Olstad
On 19.09.2018 13:37, christian.tre...@itsv.at wrote: wowguess i need some sleep. sorry for this. No worries, good night and sleep tight :-) -- Kai Stian Olstad -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this

Re: [ansible-project] How to make my dynamic varaible more readable?

2018-09-19 Thread Julien
If someone looking for to eliminate whitespaces, here's the synthax: grp_name: > {% if (First == 'Hello 1') and (Second == 'Hello 3') *-*%} IM-A-Group1 {%*- *elif (First == 'Hello 3') and (Second == 'Hello 2')* -*%} IM-A-Group2 {%- elif (First == 'Hello 1') and (Second ==

Re: [ansible-project] How to make my dynamic varaible more readable?

2018-09-19 Thread Julien
Thanks you a lot for your help, Best Regards, Julien. -- 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

Re: [ansible-project] catch return code

2018-09-19 Thread christian . tremel
wowguess i need some sleep. sorry for this. On Wednesday, September 19, 2018 at 1:02:24 PM UTC+2, Kai Stian Olstad wrote: > > On 19.09.2018 12:16, christia...@itsv.at wrote: > > how to i check the return code of a shell command correctly? see error > > below. looks like a chicken/egg

Re: [ansible-project] How to make my dynamic varaible more readable?

2018-09-19 Thread Kai Stian Olstad
On 19.09.2018 10:58, Julien wrote: Hello everyone, Today i have this dynamic variable: grp_name: "{%if (environment_true == "someinfo") and (dialog_vm_role|lower) != ('someinfo')%}IM-A-Group{%elif (dialog_vm_role|lower) == ('bdd') and (environment_true != "someinfo")%}IM-A-Group{%elif

Re: [ansible-project] catch return code

2018-09-19 Thread Kai Stian Olstad
On 19.09.2018 12:16, christian.tre...@itsv.at wrote: how to i check the return code of a shell command correctly? see error below. looks like a chicken/egg situation to me...create_oml_users should be registerd if rc is 0...any ideas? - shell: lsuser -R files lsam 2>/dev/null register:

Re: [ansible-project] Ansible cannot connect via SSH / broken pipe problem

2018-09-19 Thread Alexey Eromenko
On Wed, Sep 19, 2018 at 1:02 PM Karl Auer wrote: > > Are they reachable *from the host where the ssh client is running*? > > Is the host "finland-7" definitely the host you think it is? > Is the name or IP address of that host definitely what you think it is? > Is the host you think ssh is

Re: [ansible-project] Ansible cannot connect via SSH / broken pipe problem

2018-09-19 Thread Karl Auer
Are they reachable *from the host where the ssh client is running*? Is the host "finland-7" definitely the host you think it is? Is the name or IP address of that host definitely what you think it is? Is the host you think ssh is running on definitely the host it is actually running on? Sherlock

Re: [ansible-project] Ansible cannot connect via SSH / broken pipe problem

2018-09-19 Thread Alexey Eromenko
All the hosts are reachable by IP address. And hosts list is part of my ansible script. On Wed, Sep 19, 2018 at 12:19 PM Karl Auer wrote: > > This usually means a network-level failure rather than a DNS or protocol > failure. > > Look at the addressing information for whatever the finland-7

Re: [ansible-project] Ansible cannot connect via SSH / broken pipe problem

2018-09-19 Thread Karl Auer
This usually means a network-level failure rather than a DNS or protocol failure. Look at the addressing information for whatever the finland-7 host is. - if it is a name, can you resolve it (on whatever host is doing the ssh)? - if it does resolve, is the IP address an address that should be

[ansible-project] Ansible cannot connect via SSH / broken pipe problem

2018-09-19 Thread Alexey Eromenko
fatal: [finland-07]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: mux_client_hello_exchange: write packet: Broken pipe\r\n", "unreachable": true} fatal: [finland-08]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh:

[ansible-project] How to make my dynamic varaible more readable?

2018-09-19 Thread Julien
Hello everyone, Today i have this dynamic variable: grp_name: "{%if (environment_true == "someinfo") and (dialog_vm_role|lower) != ('someinfo')%}IM-A-Group{%elif (dialog_vm_role|lower) == ('bdd') and (environment_true != "someinfo")%}IM-A-Group{%elif (dialog_vm_role|lower) == ('someinfo')

Re: [ansible-project] s3_ modules for DELL EMC ECS

2018-09-19 Thread Martyn Kempster
I've tried various uses of s3_url pointing to my ECS instance, it seems to be a bit temperamental. Sometimes I will get invalid endpoint and other times i get 'NoneType' object has no attribute 'endswith' fatal: [ECS_SERVER]: FAILED! => { "changed": false, "module_stderr": "Shared