[ansible-project] synchronize module hangs after syncing files

2014-10-07 Thread paradigm100
I belive i found the issue , Just ran the rsync using the shell module with rsync , it worked great and did not hang until i turned on verbrose mode with rsync (-v). The directory i'm rsyncing from has a lot of very old files which origenaly came from a windows file system and contain some kind

Re: [ansible-project] Gathering facts just hung to infinity for my AWS hosts

2014-10-07 Thread James Cammarata
Hi Steven, Can you hop on one of the systems while the fact gathering is going on and see what may be hung that way? My bet is it could be something mount-related. On Tue, Oct 7, 2014 at 1:55 PM, Steven Truong wrote: > Hi, > > I have a mixed or Amazon Linux and CentOS 6.5 on AWS but I just rece

[ansible-project] Re: Reading a JSON file, adding to it and then saving it

2014-10-07 Thread James Martin
Mark G., The to_json (or to_nice_json) filter and a template will do the magic you want. Given this playbook: - hosts: localhost connection: local vars: log_paths: - "/logs/access.log" - "/logs/error.log" tasks: - name: create config file template: src=logstash.json.j2 d

Re: [ansible-project] aws ec2 module getting error - One or more undefined variables: 'instances' is undefined

2014-10-07 Thread Andy Raj
Hi Mike Thanks for your response. I tried to follow the example on Ansible's website(http://docs.ansible.com/guide_aws.html ) but still no success. Not sure what is wr

[ansible-project] Re: iterate over "failed" hosts?

2014-10-07 Thread Dmitry Makovey
BTW I did read http://docs.ansible.com/developing_api.html and http://jpmens.net/2012/12/13/obtaining-remote-data-with-ansible-s-api/ that provide fine examples of doing it via API code. I'm more curious whether I can sneak something in through the playbook... -- You received this message beca

[ansible-project] iterate over "failed" hosts?

2014-10-07 Thread Dmitry Makovey
I've got an interesting case: playbook is failing on certain hosts either due to SSH connection issues or because some things are not installed. I realize that I should really just write a playbook that makes all my machines "compliant" with the playbook and then re-run it. However I am curious

[ansible-project] Gathering facts just hung to infinity for my AWS hosts

2014-10-07 Thread Steven Truong
Hi, I have a mixed or Amazon Linux and CentOS 6.5 on AWS but I just recently have had this problem. Running the "setup" scripts directly worked but Ansible gathering facts just hung. # pwd /home/adsymp/.ansible # su root -c /bin/sh -c 'echo SUDO-SUCCESS-dhyqcckwxzuthyzxqniggbjvfxvuewha; LAN

Re: [ansible-project] Re: ignore_errors does not take variable

2014-10-07 Thread Yasir Saleem
I tried few combinations: # - hosts: jump remote_user: deploy gather_facts: yes tasks: - set_fact: test_err=yes - debug: var=test_err - debug: var=test_err ignore_errors: test_err | bool # or - hosts: jump remote_user: deploy gather_facts: yes tasks:

AW: [ansible-project] how to install tagged release

2014-10-07 Thread Torsten Reinhard
Of course, I will provide the details afterwards. But today I ran into the problem that my VM was launched but the yum install ansible pulled a new Version. So the 1st issue for me (and the Team) is to freeze the setup to a released Version of ansible. This is just like we dont want to update o

Re: [ansible-project] how to install tagged release

2014-10-07 Thread Igor Homyakov
Hi, with `pip` you can install any version of python package you want in you case it will be pip install ansible=='1.6.6' I would recommend you to use requirements.txt to pin certain version of python packages https://pip.readthedocs.org/en/1.1/requirements.html -- Best, Igor On Tue, Oct

[ansible-project] Re: extra_vars don't override inventory variables in templates (continuing #9242)

2014-10-07 Thread Hagai Kariti
Another case, which isn't related to extra_vars but to the root cause (according to my best guess) of evaluating the variables expressions too early: inventory: localhost ansible_connection=local [all:vars] var=value Playbook: --- - hosts: localhost gather_facts: no vars: var2: "{{ var

Re: [ansible-project] Reading a JSON file, adding to it and then saving it

2014-10-07 Thread Mark McCoy
My bad. I was assuming that logstash-forwarder had the same feature that regular logstash did. It's kludgy, but how about having each group drop a list into a file on the target system, and then have a handler that would assemble the files into the final json configuration? Also, according to the

Re: [ansible-project] how to install tagged release

2014-10-07 Thread Michael DeHaan
It would be a mistake to revert to a previous version of Ansible that does not contain all the security fixes in the 1.6 series. It might be more interesting to figure out what's going on with your command that appears to hang and power through it. On Tue, Oct 7, 2014 at 9:17 AM, Torsten Reinh

Re: [ansible-project] Re: ignore_errors does not take variable

2014-10-07 Thread Michael Peters
You are setting test_err to the *string* yes, but ingore_errors is looking for a boolean expression. Also, you don't need to using the "{{ }}" syntax in ignore_errors since it is already using jinja2. Try using the "bool" filter: - hosts: jump remote_user: deploy gather_facts: yes tasks:

[ansible-project] Re: ignore_errors does not take variable

2014-10-07 Thread Yasir Saleem
I am setting test_err to 'yes' via set_fact: below is playbook details: ## - hosts: jump remote_user: deploy gather_facts: yes tasks: - set_fact: test_err=yes - debug: var=test_err - debug: var=test_err ignore_errors: "{{ test_err }}" output of above playbook:

Re: [ansible-project] blanket-apply delegate_to to roles

2014-10-07 Thread Dmitry Makovey
On Sunday, October 5, 2014 12:02:21 PM UTC-6, Michael DeHaan wrote: > > What you have above, say if you had 500 hosts, would run each step 500 > times and likely overwhelm that server. > > actually that is the intent. My example was "simplified" so it's easy to understand mechanics of it, but o

Re: [ansible-project] Reading a JSON file, adding to it and then saving it

2014-10-07 Thread Joe Stewart
I don't believe logstash forwarder supports conf.d type configuration yet - https://github.com/elasticsearch/logstash-forwarder/issues/244 I'm curious how others have assembled a config file when a seerver is a member of multiple groups thanks, Joe -- You received this message because you

[ansible-project] Re: ignore_errors does not take variable

2014-10-07 Thread Mark
Hi Yasir, Have you read through: http://docs.ansible.com/playbooks_error_handling.html ? Ignore_errors is taking yes or no, because simply put there isn't any other answer possible to "Do you want me to ignore the errors?" yes/no. You are answering with "Mooo" and the system doesnt speak cowi

[ansible-project] how to install tagged release

2014-10-07 Thread Torsten Reinhard
Hi all, for weeks we´ve been successfully using Ansible 1.6.6 - now we got an update due to our current setup based just on "yum install ansible", so we have version 1.7-1.el6. After this update I ran into some problems, Ansible hangs when invoking an "install.sh" in our playbook - without an

[ansible-project] how to install tagged release

2014-10-07 Thread Torsten Reinhard
Hi all, for weeks we´ve been successfully using Ansible 1.6.6 - now we got an update due to our current setup based just on "yum install ansible", so we have version 1.7-1.el6. After this update I ran into some problems, Ansible hangs when invoking an "install.sh" in our playbook - without an

[ansible-project] synchronize module hangs after syncing files

2014-10-07 Thread paradigm100
hi , when doing this task : - name: rsync cms_tcl code to server synchronize: src=/home/user/code_checkout/cms_tcl dest=/var/www/wsgi/code recursive=yes ansible hangs but i can see that the folder has been rsync'd correctly GATHERING FACTS ***

[ansible-project] Re: shell commands and escaping characters

2014-10-07 Thread Mark
Hi, Total newb here but sometimes the simplest mistakes are the longest to find ;) Have you tried putting a space between -d and ':' ? Also, try an online yaml checker like yamllint? On Monday, October 6, 2014 8:36:08 PM UTC+2, Peter Palmieri wrote: > > I'm pulling data from EC2 instance metadat

[ansible-project] Re: 'command with_items creates' syntax

2014-10-07 Thread Mark
Hi Todd: Try and read: http://docs.ansible.com/command_module.html What you are doing is executing shell commands, this is done through the shell module, not the command module, which you are now misusing. As you can already see, changing dir with the command module should take chdir, not cd.

Re: [ansible-project] shell commands and escaping characters

2014-10-07 Thread Michael Peters
The command module just takes a simple command. If you need a full shell (for pipes, io redirection, etc) use the shell command. But in this case it's still not going to do what you want. The "access" variable won't be visible to anything outside of that command so it's essentially worthless. If yo

Re: [ansible-project] Ansible module - ec2_elb Failing with Boto exeception ( throttling )

2014-10-07 Thread Nate Dobbs
issue has been submitted: https://github.com/ansible/ansible-modules-core/issues/143 Simply updating thread to include issue for cross reference. On Wed, Oct 1, 2014 at 1:29 PM, Nate Dobbs wrote: > Thank you for replying. I knew I left something out. > > Ansible version: ansible 1.7.2 > Boto ve

[ansible-project] Task YML Synthax

2014-10-07 Thread Yoann DAVID
Hello, depending of the playbook, the modules attribute's in task are differently written : Colon synthax : - name: APT | Update the general configuration (/etc/apt/apt.conf.ds/10general) template: src: etc_apt_apt.conf.d_10general.j2dest: /etc/apt/apt.conf.d/10general

[ansible-project] How do you feed your inventories to CI server?

2014-10-07 Thread Andrew Pashkin
Hi! Do you push your inventories directly to project repositories, or you feed them to CI server in some other ways? -- With kind regards, Andrew Pashkin. cell phone - +7 (985) 898 57 59 Skype - waves_in_fluids e-mail - andrew.pash...@gmx.co.uk -- You received this message because you are sub

[ansible-project] extra_vars don't override inventory variables in templates (continuing #9242)

2014-10-07 Thread Hagai Kariti
Hi I hope this is the right place to post this. I reported https://github.com/ansible/ansible/issues/9242 a few days ago and I still have issues after it was closed. I'll give a similar example to the one I gave in the issue, but using vars_files and adding one more usecase: inventory: localh

[ansible-project] Copying file with roles using file glob

2014-10-07 Thread Gerhard Hannemann
Hi Stumbling across a problem with copying a set of file to a remote server. I have a set of files within a particular role, under the file directory, that a I need to copy across to a set of remote server. I gave up on synchronization as it only produce a connection refused error. Trying copy

[ansible-project] Specify vault password file location inside of playbook?

2014-10-07 Thread 'C. S.' via Ansible Project
Hi all, I'd like to use different vault passwords per env, does anyone know if there is a way to specify the vault password file location from within a playbook somehow? Thx! -cs -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubsc

Re: [ansible-project] Re: 'join' a list and a dict

2014-10-07 Thread Mikael Sandström
Yeah, fair enough ;) It would be interesting to know though if this isn't working because: 1. It should/could work but I'm not doing it right 2. It doesnt/will not work and I should just stop trying Either way, the stacktrace is kinda ugly? On Thursday, 2 October 2014 22:46:43 UTC+2, Michael De