[ansible-project] Re: Created an elasticache via Ansible - Get an Error Use of cache security groups is not permitted in this API version for your account

2014-08-18 Thread Dan Vaida
For what it's worth, I get a different type of error message when I try to run something similar with Redis. https://github.com/ansible/ansible/issues/7986 On Saturday, 16 August 2014 02:03:11 UTC+2, Shih Oon Liong wrote: I was trying to provision a new memcached server via ansible - name:

[ansible-project] Ansible -Calling a playbook inside a playbook with vars_prompt giving error : ERROR: vars_prompt is not a legal parameter in an Ansible task or handler

2014-08-18 Thread Imran Khan
I have a tikitaka3.yml (main yml file) and a tikitaka3a.yml (playbook to be included) . When I prompt the user for a variable and then in the tasks section when I call it, like so --- - hosts: all vars: khan: vars_prompt: - name: targetenv prompt: Select group to modify 1.)EPC

[ansible-project] when condition not being evaluated with include statement

2014-08-18 Thread Imran Khan
I have a tikitaka3.yml (main yml file) and a tikitaka3a.yml (playbook to be included) . When I prompt the user for a variable and then in the tasks section when I call it, like so: --- - hosts: all vars: khan: # contents: {{ lookup('file',

Re: [ansible-project] Role and playbook versioning

2014-08-18 Thread Will Thames
This is now working for the roles file in YAML format. It doesn't work so well for role dependencies - we'd probably need to declare some special variables for that. At the moment the YAML file format is - src: git+http://git.example.com/repos/horrible-role-name; name: nice-role-name

Re: [ansible-project] when condition not being evaluated with include statement

2014-08-18 Thread Brian Coca
The when does not affect the include itself, it gets added to all tasks included.​ -- 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] CloudFront Module for Ansible

2014-08-18 Thread Mohammad Arafath
Since ansible doesn't have a module for CF(as far as i've looked), I am attempting to create one. Boto does support CF but has issued warning in the docs http://boto.readthedocs.org/en/latest/cloudfront_tut.html (that the module is not well-tested). What kinds of tests are Ansible-Devs looking

Re: [ansible-project] Including mulitple files

2014-08-18 Thread Kim Ausloos
Hi Michael, Is there a github issue for the module proposal you are talking about? I have multiple use cases for includes with_fileglob ( for example https://gist.github.com/anonymous/1691f3ab625175011449 ) and the current proposal feel kind of hackish. It could, of course, be me because I'm

Re: [ansible-project] First command (ping) failure

2014-08-18 Thread Rebeca González Álvarez
Hello everybody, I'm *super* new to ansible. I just installed it following the instructions and configured my servername at the hosts file. When I try to do ping to my hosting I get this: becca@becca-LAPTOP:/$ ansible all -m ping - sg111.servergrove.com ESTABLISH CONNECTION FOR USER:

Re: [ansible-project] Including mulitple files

2014-08-18 Thread Michael DeHaan
There's not a github issue. Generally we don't want to see feature request tickets (GitHub ticket organization is a giant pain -- though we'll leave them open when someone has a especially good idea), so it's mostly a matter of getting the work done. We've got a note to look at this in 1.8

Re: [ansible-project] Including mulitple files

2014-08-18 Thread Michael DeHaan
and the current proposal feel kind of hackish A matter of opinion, clearly, which I don't think is fair to those discussing it unless you can present a better proposal. In any event, group discussion should happen on ansible-devel, not on GitHub. On Mon, Aug 18, 2014 at 8:26 AM, Michael

Re: [ansible-project] Git Module Repo Scheme Change?

2014-08-18 Thread Michael DeHaan
I was under the impression that it's really about having the host [being modified via ansible] accept the identity of a host on the other end of a git/ssh connection it hasn't been manually told to trust. The usage of accept_hostkey=yes is an indication that you are telling it manually to trust.

Re: [ansible-project] Ansible -Calling a playbook inside a playbook with vars_prompt giving error : ERROR: vars_prompt is not a legal parameter in an Ansible task or handler

2014-08-18 Thread Michael DeHaan
Looks like you are missing a tasks section and also have some indent issues. On Mon, Aug 18, 2014 at 6:55 AM, Imran Khan khan.imran2...@gmail.com wrote: I have a tikitaka3.yml (main yml file) and a tikitaka3a.yml (playbook to be included) . When I prompt the user for a variable and then in

Re: [ansible-project] when condition not being evaluated with include statement

2014-08-18 Thread Michael DeHaan
Take a look at the docs of the group_by module if you want some more elegant output based on dynamic criteria. On Mon, Aug 18, 2014 at 7:44 AM, Brian Coca brianc...@gmail.com wrote: The when does not affect the include itself, it gets added to all tasks included.​ -- You received this

Re: [ansible-project] Including mulitple files

2014-08-18 Thread Akos Vandra
I have solved my issue by providing a variable to the deploy task, which will in turn include that. But it does feel somewhat like writing try-catch-finally behaviour code in C, having to split all the before, between and after stuff into separate files (functions). includes: git-deploy.yml vars:

Re: [ansible-project] Role and playbook versioning

2014-08-18 Thread Will Thames
I'm not sure pip has the same problem, which is effectively that dependency declarations are useful at both install time and at run time In the below example 'this_is_a_role_variable' is a variable that gets passed to the role when it is run (and dependencies are run before the role itself is

Re: [ansible-project] when condition not being evaluated with include statement

2014-08-18 Thread Imran Khan
Basically I want to run my secondary playbook on a specific number of hosts in a specific group (I have shown just one example of a group here i.e. umar, I intend on having three groups) using var_prompts, the group is going to be specified in my main file whereas the logic for particular host

Re: [ansible-project] when condition not being evaluated with include statement

2014-08-18 Thread Michael DeHaan
The group_by module? On Mon, Aug 18, 2014 at 8:42 AM, Imran Khan khan.imran2...@gmail.com wrote: Then what can I do to achieve the functionality that I require? On Monday, August 18, 2014 4:44:18 AM UTC-7, Brian Coca wrote: The when does not affect the include itself, it gets added to all

Re: [ansible-project] AWS trigger Ansible playbook run

2014-08-18 Thread Michael DeHaan
See also http://ansible.com/tower for the official one, which has a lot more structured solution around access control, logging, and lots of other things. Autoscaling support is quite awesome, which appears to be what this is trying to simulate. On Mon, Aug 18, 2014 at 10:03 AM, Frank

[ansible-project] Re: Created an elasticache via Ansible - Get an Error Use of cache security groups is not permitted in this API version for your account

2014-08-18 Thread Shih Oon Liong
Thanks for the replies. I have posted a support on AWS Forum, so hopefully I get a reply back. I have though manage to semi fixed it. It seems in some regions, AWS either 'cache_security_groups' to be empty OR 'security_group_ids' to be passed empty. The below seems to now work happily with

[ansible-project] Re: Created an elasticache via Ansible - Get an Error Use of cache security groups is not permitted in this API version for your account

2014-08-18 Thread Shih Oon Liong
Thanks for the replies. I have posted a support on AWS Forum, so hopefully I get a reply back. I have though manage to semi fixed it. It seems in some regions, AWS either 'cache_security_groups' to be empty OR 'security_group_ids' to be passed empty. The below seems to now work happily with

[ansible-project] Re: Ansible - win_get_url copy file from network share

2014-08-18 Thread J Hawkesworth
I have not had the same issue as you but I found I had to add the domain user I was using into the remote management group that is created on the windows hosts at the time that you run Trond's setup script. I'm away from the machine right now so can't remember the exact name of the group but