[ansible-project] Ansible 1.9.2 rc2 is now available for testing

2015-06-22 Thread James Cammarata
Hi all, we've just tagged the rc2 release for 1.9.2, which includes several fixes for modules (service, rds, among others) as well as some other minor fixes and improvements. To test from source, simply clone the git repository (if you haven't already) and do the following: $ git checkout

Re: [ansible-project] Getting hostvars when using serial

2015-06-22 Thread Brian Coca
you could use the loop.index and compare against group['app_servers']|length to break the loop at the serial point. On Sunday, June 21, 2015, Ivan Dimitrov zlob...@gmail.com wrote: Hello Group, I'm looking for a way to access facts for my hostnames through the hostvars and groups methods.

Re: [ansible-project] Re: command module and --sudo

2015-06-22 Thread Brian Coca
I'm not sure I understand the question, can you show an example of what you want, how it fails and how you expect it to work? - Brian Coca -- Brian Coca -- You received this message because you are subscribed to the Google Groups Ansible Project group. To unsubscribe from this group

[ansible-project] Multiple EC2 Windows hosts

2015-06-22 Thread Dean Mills
HI all, Am trying to admin/setup multiple EC2 Windows hosts and have hit a bit of a snag. I have playbooks that create the initial instances just fine, along with one that creates a list of the Instance IDs of the Windows hosts I need using the ec2 module, and one that gets the default

[ansible-project] uri_module - json post

2015-06-22 Thread Darvin Denmian
Hi guys, this is the first time I ever use the uri_module and I'm facing a problem that I just can't solve.. here it is - name: Sending Stash to Sensu - {{ item }} uri: url=http://10.0.0.8:4567/stashes method=POST body_format=json body={path: silence/{{

[ansible-project] Re: Windows config script problems

2015-06-22 Thread Trond Hindenes
Can you double-check that you're running as admin? OS / PowerShell version? As for the write-verbose part, that only shows if you set $verbosePreference to Continue. On Tuesday, June 23, 2015 at 1:28:23 AM UTC+2, Michael Legleux wrote: It previously has always worked for me but now I'm

[ansible-project] Re: uri_module - json post

2015-06-22 Thread Rob White
Escape your double quotes body={\path\: \silence/{{ item }}\,\content\: {\reason\: \Automatic Scale Down\},\expire\: 28800} On Tuesday, 23 June 2015 06:45:41 UTC+10, Erick Barros wrote: Hi guys, this is the first time I ever use the uri_module and I'm facing a problem that I just can't

[ansible-project] Option to make No hosts matched a FATAL error?

2015-06-22 Thread Marc Abramowitz
Hi all is there a way to make it so that No hosts matched becomes a FATAL error? I'm using a CI job to kick off ansible to deploy something and in this case if it cannot find a host to deploy to, I want that to be a fatal error. Right now, ansible returns a zero exit code so the CI job

[ansible-project] Re: Option to make No hosts matched a FATAL error?

2015-06-22 Thread Marc Abramowitz
One stab at fixing this: https://github.com/ansible/ansible/pull/11350 -- 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: connection with windows

2015-06-22 Thread Trond Hindenes
On a side note: To me it looks like you're trying to use the unarchive module on a windows node. That won't work. You need to use a module listed in Windows modules: http://docs.ansible.com/list_of_windows_modules.html On Monday, June 22, 2015 at 5:22:50 PM UTC+2, J Hawkesworth wrote: It is a

[ansible-project] Windows config script problems

2015-06-22 Thread Michael Legleux
It previously has always worked for me but now I'm getting an error Unable to establish an HTTP or HTTPS remoting session. At C:\users\stage\Desktop\configure_windows_for_ansible.ps1:129 char:5 + Throw Unable to establish an HTTP or HTTPS remoting session. +

[ansible-project] Based on hostname select variables.

2015-06-22 Thread Dhanasekaran Anbalagan
Hi Guys, I am new to ansible world, Based on hostname I need to select variables and feed input to template file. In my case :: I need to deploy app on multiple hosts, based on hostname I need to configure db_name and db_user and db_pass etc.. Please guide me, How to do this. -Dhanasekaran.

[ansible-project] Getting hostvars when using serial

2015-06-22 Thread Ivan Dimitrov
Hello Group, I'm looking for a way to access facts for my hostnames through the hostvars and groups methods. This all works well, but I'm stuck when I try to limit the batch size with the serial directive. For example: I have 10 web servers that I want to do rolling update using the serial:

[ansible-project] Ansible up and running book - first playbook exampe

2015-06-22 Thread Julien Deloubes
Hello, just learning Ansible with Vagrant and the help of the book Ansible up and running. I cannot execute the first playbook in the book i always had a syntax error. Ansible version: 1.9.1 Playbook : - name: Configure webserver with nginx hosts: webservers sudo: True tasks: - name: install

[ansible-project] connection with windows

2015-06-22 Thread Guillaume Querso
Hello, i am running ansible 1.9.1 on a Ubuntu server 14.04.2, my remote machine is a windows 7 sp1. i have the following files and error message, i don't understand where the issue is.. /etc/ansible/group_vars/windows.yml ansible_ssh_user: AnsibleUser ansible_ssh_pass: ansiblepass

Re: [ansible-project] Re: command module and --sudo

2015-06-22 Thread krishna Murthy
Thanks i found this post, was fighting with Ansible, checking there should be some option to run it plane with invoking $SHELL, now i got know its not possible, i will run it in command: with stdin password, pls let me know if this is fixed, means if there is an option to exclude shell. On

[ansible-project] Any ideas on how to best handle large bundle installs? Increase output?

2015-06-22 Thread Joseph Kahn
For example, I would love to write a module (if there's no easy way to do this) that would effectively get the list of gems I need and then install them from that list, thus my my output would be more like: TASK: [ruby | get ruby requirements] ** changed:

[ansible-project] Ping Module : Why ansible wants to SSH to the server for which I am trying a ping?

2015-06-22 Thread Suneel Gali
Hi Team, I just started working on ansible and using online documentation to try. I just ran my first command : ansible all -m ping Why ansible wants to SSH to the server for which I am trying ping? It does not make sense (until I am missing some thing) to connect to the server when I just

Re: [ansible-project] Ping Module : Why ansible wants to SSH to the server for which I am trying a ping?

2015-06-22 Thread Uwe Sauter
The ping module is *NOT* Ansible trying to reach a host via ICMP message. Ansible will try to connect to the host via SSH and execute the ping module which just generates a pong answer. Am 20.06.2015 um 18:36 schrieb Suneel Gali: Hi Team, I just started working on ansible and using online

[ansible-project] Re: Loop on Route53 with items

2015-06-22 Thread Louis Borsu
OK, it worked, thank you = *FACEPALM* On Sunday, June 21, 2015 at 10:22:44 AM UTC+2, Yassen Damyanov wrote: Never had to deal with Amazon stuff but here my 2 cents: your first method fails because of wrong indentation: On Thursday, June 18, 2015 at 6:24:22 PM UTC+3, Louis Borsu wrote: Hi,

[ansible-project] Re: Connecting to new EC2 instance using .pem file

2015-06-22 Thread Lokesh Vastrad
Hi Andrew, Thanks a lot for your reply. I was able to overcome the issue by creating a config file and adding few details under .ssh folder. I am now able to connect to the server. Thanks, Lokesh On Friday, June 19, 2015 at 1:30:39 PM UTC+10, Andrew Burrow wrote: Possibly start by running

[ansible-project] Re: connection with windows

2015-06-22 Thread J Hawkesworth
Looks like you just need to add your server into a group called windows - the example here shows the group http://docs.ansible.com/intro_windows.html#inventory So your inventory file needs to look like this: [windows] WIN-F6531IBP8HG The group vars will then take effect for your host and

[ansible-project] Re: connection with windows

2015-06-22 Thread Guillaume Querso
i have done this as said in my edit but it is not working for the playbook. do i have anything else to do to make it run properly? Le lundi 22 juin 2015 13:48:43 UTC+1, J Hawkesworth a écrit : Looks like you just need to add your server into a group called windows - the example here shows

Re: [ansible-project] default(omit) fails to omit param and place_holder is used as variable data

2015-06-22 Thread ddffgpmfn
Thanks Matt, Without quotes: Failed to template {{ build_number | default(~) }}: template error while templating string: unexpected '~' With singles quotes it is not converted to null and simple taken as a string. Will raise an issue. On Friday, June 19, 2015 at 10:55:27 PM UTC+1, Matt Martz

[ansible-project] Re: connection with windows

2015-06-22 Thread Guillaume Querso
EDIT: my files are now /etc/ansible/group_vars/windows/windows.yml ansible_ssh_user: AnsibleUser ansible_ssh_pass: ansiblepass ansible_ssh_port: 5986 ansible_connection: winrm /etc/ansible/hosts [windows] WIN-F6531IBP8NG the ping is working but sometimes it fails with this message:

[ansible-project] Re: Based on hostname select variables.

2015-06-22 Thread J Hawkesworth
There probably several ways of doing this. To start with have a look at 'host_vars' - you can set variables for each machine in your inventory: http://docs.ansible.com/intro_inventory.html#host-variables You will probably find very soon after that you want to set the same variables for groups

[ansible-project] Re: Ansible up and running book - first playbook exampe

2015-06-22 Thread J Hawkesworth
I think you just need to line up your whitespace correctly. Indentation level is significant in YAML - have a look at the yaml primer http://docs.ansible.com/YAMLSyntax.htmlor use yamlint if you need to check your playbook. Hope this helps. Jon On Monday, June 22, 2015 at 12:46:58 PM UTC+1,

[ansible-project] Re: Ansible up and running book - first playbook exampe

2015-06-22 Thread Rodney Quillo
Hmm, looks like you have incorrect sequence for your playbook. There are existing sample you can try from: https://github.com/ansible/ansible-examples https://gist.github.com/marktheunissen/2979474 On Monday, June 22, 2015 at 7:46:58 PM UTC+8, Julien Deloubes wrote: Hello, just learning

[ansible-project] Re: connection with windows

2015-06-22 Thread J Hawkesworth
Looks like you have hit the windows management framework 3.0 bug described in the blue box here: http://docs.ansible.com/intro_windows.html#windows-system-prep Since win_ping is working for you now, you just need to install the hotfix to get up and running:

[ansible-project] Re: connection with windows

2015-06-22 Thread Guillaume Querso
i can't install the hotfix, i am stuck on the terms ans conditions page. is this bug related to ansible-playbook because i can make a ping but not run my playbook? Le lundi 22 juin 2015 14:50:22 UTC+1, J Hawkesworth a écrit : Looks like you have hit the windows management framework