Re: [ansible-project] If get_url is cancelled on a large file following executions fail

2017-08-14 Thread 'Brian Williams' via Ansible Project
Thanks! I've never set that before. This was on a build machine which had this in ansible.cfg: remote_tmp = $HOME/.ansible/tmp local_tmp = $HOME/.ansible/tmp On Monday, August 14, 2017 at 3:52:44 PM UTC-4, Uwe Sauter wrote: > > Did you look into "local_tmp" and "remote_tmp" configured in your

Re: [ansible-project] Add conditionals to debug msg

2017-08-14 Thread Kai Stian Olstad
On 14. aug. 2017 23:58, Ryan wrote: Thanks for the detailed reply. - name: Check for ECC's shell: ipmitool sel list | grep -i ecc register: sel_out failed_when: sel_out.rc > 1 async: 3 poll: 2 TASK [Check for ECC's]

Re: [ansible-project] Re: Skipping: no hosts matched

2017-08-14 Thread Kai Stian Olstad
On 14. aug. 2017 08:28, eclipxsyd...@gmail.com wrote: Hi Ansible community, Is anybody able to help out? To me your post looks wired. If you are using Tower the support is here https://access.redhat.com/products/ansible-tower-red-hat#support If you are not using Tower you should probably not

Re: [ansible-project] Add conditionals to debug msg

2017-08-14 Thread Ryan
Thanks for the detailed reply. - name: Check for ECC's shell: ipmitool sel list | grep -i ecc register: sel_out failed_when: sel_out.rc > 1 async: 3 poll: 2 TASK [Check for ECC's]

Re: [ansible-project] Database dump with mssql_db module

2017-08-14 Thread Kai Stian Olstad
On 10. aug. 2017 23:23, Gilberto Valentin wrote: I am curious to see what you are all doing to do DB dumps of MSSQL schema's using Ansible. Looking at the *mssql_db* module, the only option I see is for importing. What is everyone else doing to get some backups via Ansible? > I push out a

[ansible-project] Re: Need an Intro section for "become" for Windows

2017-08-14 Thread Jordan Borean
Become support for Windows is currently in an experimental state and because of some of the existing limitations like only working over Basic and CredSSP may change once it is bedded down. I believe because the way it works may change in the future we are trying to hold off on documenting it

Re: [ansible-project] Getting "502 Bad Gateway" after Ansible Tower 3.1.4 Install

2017-08-14 Thread Andrew Latham
For tower questions and support please utilize https://access.redhat. com/products/ansible-tower-red-hat This mailing list is for the open source Ansible project. On Mon, Aug 14, 2017 at 2:12 PM, Joel Chaney wrote: > Ansible Tower installed on CentOs 7 minimal

Re: [ansible-project] If get_url is cancelled on a large file following executions fail

2017-08-14 Thread Uwe Sauter
Did you look into "local_tmp" and "remote_tmp" configured in your Ansible config? Am 14.08.2017 um 21:46 schrieb 'Brian Williams' via Ansible Project: > If a playbook ever gets cancelled during the download of a large file the > following execution some systems get "No space > left on device"

[ansible-project] If get_url is cancelled on a large file following executions fail

2017-08-14 Thread 'Brian Williams' via Ansible Project
If a playbook ever gets cancelled during the download of a large file the following execution some systems get "No space left on device" error. Play: - name: download upgrade file get_url: url="{{gpg_location}}" dest="{{upload_folder}}" validate_certs=no Error: fatal: [branch4_sky]:

[ansible-project] Getting "502 Bad Gateway" after Ansible Tower 3.1.4 Install

2017-08-14 Thread Joel Chaney
Ansible Tower installed on CentOs 7 minimal installed server. Install completed with 0 errors but nginx generates 502 error when trying to access new Ansible Tower configuration. Any ideas on fix? -- You received this message because you are subscribed to the Google Groups "Ansible Project"

[ansible-project] Capture ansible playbook command line

2017-08-14 Thread pixel fairy
see script(1). it starts a logged shell. when you exit, it leaves a file called typescript where you ran it. -- 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] Re: win_package unable to install .exe Chart Director

2017-08-14 Thread 'J Hawkesworth' via Ansible Project
If they used nsis to package try /sd I think it is reasonable to ask the vendor to provide a silent installation option too. Point out that it is in their interest too - if you can automate installation, then doing automated testing against all supported versions of an operating system is

Re: [ansible-project] fatal: [XXXX]: FAILED! => {"changed": false, "failed": true, "msg": "unable to open shell.

2017-08-14 Thread Sunil6057
-bash-4.2$ ansible --version ansible 2.4.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/ansible/lib/ansible'] ansible python module location = /usr/lib/python2.7/site-packages/ansible-2.4.0-py2.7.egg/ansible executable location = /usr/bin/ansible python

Re: [ansible-project] ansible-vault doesn't prompt to create vault password

2017-08-14 Thread Matt Mullen
That works, thanks! For anyone else hitting this, it was an already open issue: https://github.com/ansible/ansible/issues/27885 On Mon, Aug 14, 2017 at 1:14 PM, Adrian Likins wrote: > And for now, in 2.4: > > ansible-vault --ask-vault-pass create foo.yml > > or > >

[ansible-project] Need an Intro section for "become" for Windows

2017-08-14 Thread Marvin Greenberg
How "become" works on windows is confusing in general, and with limited and evolving support (doesn't work for Kerberos, for example?), a documentation section describing how it works for Windows is important. Further, the current situation is somewhat limited because of the different

Re: [ansible-project] ansible-vault doesn't prompt to create vault password

2017-08-14 Thread Adrian Likins
And for now, in 2.4: ansible-vault --ask-vault-pass create foo.yml or ansible-vault --vault-id=prompt create foo.yml On Mon, Aug 14, 2017 at 1:11 PM, Adrian Likins wrote: > hmm, thats a bug. I'll take a look at it, but filing at issue at github > wouldn't hurt.

Re: [ansible-project] ansible-vault doesn't prompt to create vault password

2017-08-14 Thread Adrian Likins
hmm, thats a bug. I'll take a look at it, but filing at issue at github wouldn't hurt. On Wed, Aug 9, 2017 at 6:29 PM, Matt Mullen wrote: > I'm running 2.4.0 and trying to encrypt a file with ansible-vault. In > past versions of Ansible, this command would prompt to create

Re: [ansible-project] Ansible parallell playbooks

2017-08-14 Thread 'J Hawkesworth' via Ansible Project
I suppose use you could modify your playbook so that after the task that all the other machines must wait for, ansible creates a file on the controller machine. Then the next step in the playbook would use wait_for, delegated to the controller so the other machines would have to wait until

[ansible-project] Re: Quote mismatch when executing a command on windows boxes

2017-08-14 Thread 'J Hawkesworth' via Ansible Project
I'd probably try and solve this one a different way. If recording the files that you've removed is important, I'd probably use win_find http://docs.ansible.com/ansible/latest/win_find_module.html then register the results and then use the registered results as with_items input to win_file

[ansible-project] Capture ansible playbook command line

2017-08-14 Thread graftonmaple
For auditing purpose we would like to capture all ansible playbook commands being run by another team. How do I approach this? Ideally we would like to assign it same pid as rest of the play and be part of ansible.log Basically capture entire below command or everything after

Re: [ansible-project] win_shell/win_command chdir to Directory with Spaces

2017-08-14 Thread 'J Hawkesworth' via Ansible Project
I think you can probably just do this using chdir: 'C:\Program Files\your path\goes\here' By the way, some community members have been working on some general advice for constructing paths when dealing with windows. Eventually the plan is to get this into the actual ansible documentation

[ansible-project] Access dynamically loaded variables by name

2017-08-14 Thread Uwe Sauter
Hi again, I'm looking for a way to merge multiple lists into one. Difficulty is that the lists have dynamic names. E.g. cluster.yaml --- racks: ['rack01', 'rack02'] # might be many more racks ## rack01.yaml --- rack_number: 1 compute_nodes: ['alpha',

Re: [ansible-project] Building an ini file based on user input

2017-08-14 Thread Adrian Likins
The default ansible inventory format is only 'ini-like' so I wouldn't expect tools for handling standard ini files (like the ini_file module) to work well. The examples you mention are good examples of where that falls apart. Haven't ran the examples or dug in yet, but first thought is it looks

[ansible-project] Re: Fetch Time Out with Windows Server 2008 SP2 and R2 - Works for Server 2012

2017-08-14 Thread 'J Hawkesworth' via Ansible Project
I'm sorry I don't have any S2008s to even try this out on. A couple of things you could try though... Not sure what python version you are using but perhaps try a newer 2.x revision if there's one available for your controller. Also you could try upgrading Windows Management Framework and the

[ansible-project] Cisco Spark - Token

2017-08-14 Thread Rodrigo
Hello Everyone, Do you know if anyone in this group already work with Cisco Spark integration in order to send message via ansible ( playbook ) to room in Spark? I am receiving errors with try to authentication via token, however if a made directly via webpage ciscodeveloperspark is working

[ansible-project] Variable expansion in include_vars

2017-08-14 Thread Uwe Sauter
Hi, I'm trying to keep my playbooks and related var files portable. Currently I'm stuck with the following: ### input.yaml ### --- base: '/exports' image: '{{ base }}/image' config: '{{ base }}/config' ### playbook ### --- - hosts: localhost connection: local gather_facts:

Re: [ansible-project] fatal: [XXXX]: FAILED! => {"changed": false, "failed": true, "msg": "unable to open shell.

2017-08-14 Thread Adrian Likins
You need to provide more info. - include the playbook - the env (os, distro, version, etc) you are running ansible from - the env (os, distro, version, etc) you running the playbook against (the remote machine being managed) - any ansible config - the actual command line being used to start

[ansible-project] fatal: [XXXX]: FAILED! => {"changed": false, "failed": true, "msg": "unable to open shell.

2017-08-14 Thread Sunil6057
Hi When running playbook i am geting (running Ansible 2.4) fatal: [X]: FAILED! => {"changed": false, "failed": true, "msg": "unable to open shell. Try host_key .False no use.. need advice / help -- You received this message because you are subscribed to the Google Groups "Ansible

[ansible-project] fatal: [ctx-sw-var01]: FAILED! => {"changed": false, "failed": true, "msg": "unable to open shell.---- using NXOS

2017-08-14 Thread Sunil6057
hi I am having a issue with ansible 2.4 I am getting error when running playboot. fatal: [ctx-sw-var01]: FAILED! => {"changed": false, "failed": true, "msg": "unable to open shell. I tired host_key ---false ...which didn't work.. Any advice or help -- You received this message because

Re: [ansible-project] ansible_host + proxy + windows servers (WinRM) not working

2017-08-14 Thread Mike Klebolt
I was able to resolve this issue by modifying one of the lines in transport.py for pywinrm. session.trust_env = True changed to: session.trust_env = False > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To

[ansible-project] ios-command, paramiko and elliptical keys

2017-08-14 Thread Eric W. Bates
I'm trying a simply hello-world on my cisco switch via ios-command and paramiko fails because of the presence of elliptical keys: ... 2017-07-21 14:19:25,212 p=71332 u=ericx | 71340 1500661165.21265: Loading ShellModule 'sh' from

[ansible-project] Re: Skipping: no hosts matched

2017-08-14 Thread eclipxsydney
Hi Ansible community, Is anybody able to help out? On Friday, 11 August 2017 11:52:43 UTC+10, eclipx...@gmail.com wrote: > > Hi all, > > I am in need of help/pointers from the community in setting up Ansible > ansible 2.3.2.0 on ubuntu 14.04. > > At the current stage it has been configure to

[ansible-project] Re: unable configure haproxy.cfg through ansible using template

2017-08-14 Thread 'Thomas' via Ansible Project
Quite less information for the used role. But mabybe only the ports are missing for the backends? - {name: nginx1, address: 172.31.25.133:80} - {name: nginx2, address: 172.31.25.145:8080} ... -- You received this message because you are subscribed to the Google Groups "Ansible Project"