[ansible-project] Re: Populating an EC2 Security Group rules (using ec2_group modules) with IPs (Pingdom probe servers) gathered dynamically at playbook runtime

2015-02-26 Thread Le Van
Many thanks for this tip. It's clever On Wednesday, June 11, 2014 at 10:32:23 PM UTC+7, andreub wrote: > > Hi Jaime, > > I had the exact same problem. ec2_group modules recreates the rules every > time you use the it, so if you're running it in a loop, it will create the > group the rule for the

[ansible-project] Re: replace a line in remote file

2015-02-26 Thread vinay . bhasker
Correction of typo... == > Question: > Need some advice on how to do in ansible. > > We are fetching the archive from artifactory url and calling a script to > deploy the application. > The archive would be different for different release and we need to > replace the value into the property f

[ansible-project] replace a line in remote file

2015-02-26 Thread vinay . bhasker
Question: Need some advice on how to do in ansible. We are fetching the archive from artifactory url and calling a script to deploy the application. The archive would be different for different release and we need to replace the value into the property file before executing the script. In simple

[ansible-project] Dynamic inventory inside a playbook example

2015-02-26 Thread Rahul Mehrotra
Hi, I am currently working on using dynamic inventory for configuring ec2 instances on AWS environment. I would appreciate if someone can give an example of how ec2.py can be used inside a playbook to provide dynamic inventory information to other plays in the same playbook or to other playbook

[ansible-project] Re: Ansible when creating an RDS instance: AttributeError: 'dict' object has no attribute 'split'

2015-02-26 Thread Rahul Mehrotra
That fixed it... Thank you :) On Thursday, 26 February 2015 08:06:55 UTC-8, Rahul Mehrotra wrote: > > I am working on creating an AWS infrastructure based on Ansible. > I have a playbook which creates an RDS instance. When I run the playbook > standalone it executes perfectly & creates RDS insta

[ansible-project] Need Ansible Presentation Advice

2015-02-26 Thread Tiglath
I have used Ansible for our data center migration and now it's time to tell the whole department about it. The problem is that I did not need to make very advanced use of Ansible to automate the big move, and covering it will be rather short and boring. I have a PowerPoint with Ansible bas

[ansible-project] Re: version 0.9: wait_for suck in wait until timeout, it cannot wake up after the host can be accessed by ssh

2015-02-26 Thread Dan Vaida
Unless there's some other problem in the mix, this is enough to work: local_action: wait_for state=started host="{{ inventory_hostname }}" port=22 On Thursday, 26 February 2015 12:41:31 UTC+1, Yariv Graf wrote: > > Hi, > Try: > > - name: wait for SSH > local_action: wait_for port=22 host="

Re: [ansible-project] Ansible when creating an RDS instance: AttributeError: 'dict' object has no attribute 'split'

2015-02-26 Thread Dan Vaida
Try this instead: vpc_security_groups: "{{ sg_mysql.group_id }}" On Thursday, 26 February 2015 17:40:41 UTC+1, Rahul Mehrotra wrote: > > I am not able to figure out which specific vars is bad... > Is there a problem of file locking ??? > Because there is a sg_mysql.yml file being called before

Re: [ansible-project] Ansible when creating an RDS instance: AttributeError: 'dict' object has no attribute 'split'

2015-02-26 Thread Ravi Bhure
I am also facing the same issue while creating security group on aws, using Ansible 1.8.3 version and 1.6, not really sure but this is something wrong at aws api library ? -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe fr

Re: [ansible-project] Ansible when creating an RDS instance: AttributeError: 'dict' object has no attribute 'split'

2015-02-26 Thread Rahul Mehrotra
I am not able to figure out which specific vars is bad... Is there a problem of file locking ??? Because there is a sg_mysql.yml file being called before rds.yml in main.yml Something like - include: sg_mysql.yml - include: rds.yml sg_mysql.yml is writing the security group id to be used by rds.

Re: [ansible-project] Ansible when creating an RDS instance: AttributeError: 'dict' object has no attribute 'split'

2015-02-26 Thread Brian Coca
the error seems to indicate bad data is being passed to the rds module -- Brian Coca -- 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+unsub

Re: [ansible-project] Ansible when creating an RDS instance: AttributeError: 'dict' object has no attribute 'split'

2015-02-26 Thread Brian Coca
it should be: - include: rds.yml -- Brian Coca -- 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 to

Re: [ansible-project] Ansible when creating an RDS instance: AttributeError: 'dict' object has no attribute 'split'

2015-02-26 Thread Rahul Mehrotra
The main playbook has it as - include: rds.yml On Feb 26, 2015 8:13 AM, "Brian Coca" wrote: > it should be: > > - include: rds.yml > > > > > -- > Brian Coca > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Ansible Project" group. > To unsubscribe fr

[ansible-project] Ansible when creating an RDS instance: AttributeError: 'dict' object has no attribute 'split'

2015-02-26 Thread Rahul Mehrotra
I am working on creating an AWS infrastructure based on Ansible. I have a playbook which creates an RDS instance. When I run the playbook standalone it executes perfectly & creates RDS instance. However when that playbook is called by another playbook using the > include: rds.yml It gives t

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

2015-02-26 Thread shirou
Hi, This E-mail is a little bit old but I am in the same situation. ignore_errors: test_err | bool doesn't work for me on ansible 1.8.4 Is there any work around? Thank you, WAKAYAMA Shirou 2014-10-08 1:58 GMT+09:00 Yasir Saleem : > I tried few combinations: > > # > - hosts: jump >

[ansible-project] Re: Concerns about the vault implementation

2015-02-26 Thread James Cammarata
We recently had a user question in regards to this thread, and wanted to add a quick update as I see we never followed up on this here on the group/mailing list. These concerns were addressed as part of this commit: commit 0d6f6ad282fd0d3fb581da9dcbafd33521eb67be Author: James Tanner <> Date:

Re: [ansible-project] List in inventory file variables ?

2015-02-26 Thread Serge van Ginderachter
On 26 February 2015 at 13:08, Florent B wrote: > How can I do ? > ​Don't define complex vars in the ini hosts file, use group/host_vars file​ or playbook vars for that. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from t

[ansible-project] Re: Delegate_to, tags, with_items | Good Practise while running a playbook against a group of hosts, where some tasks are for a specialized subset of hosts only

2015-02-26 Thread sirkubax
Just to compare execution and inventory arragment: I'm trying to get the same result based on tags (run task on limited hosts-set from current hosts-group) W dniu czwartek, 26 lutego 2015 13:05:35 UTC+1 użytkownik sirkubax napisał: > > Up to now I think the best would be generate "temporary" hos

[ansible-project] Re: Delegate_to, tags, with_items | Good Practise while running a playbook against a group of hosts, where some tasks are for a specialized subset of hosts only

2015-02-26 Thread sirkubax
Up to now I think the best would be generate "temporary" host list (group_by). You may intersect them later with other groups However I do not like the idea of defining "hosts: " more than once in a playbook. I did post the idea first in the topic: How to list all currently targeted hosts

[ansible-project] Re: version 0.9: wait_for suck in wait until timeout, it cannot wake up after the host can be accessed by ssh

2015-02-26 Thread Yariv Graf
Hi, Try: - name: wait for SSH local_action: wait_for port=22 host="{{ inventory_hostname }}" search_regex=OpenSSH delay=30 sudo: false It will start to search for the regex after 30 secs. On Thursday, February 26, 2015 at 10:32:46 AM UTC+2, hce h wrote: > > Hi, > > I have following wai

[ansible-project] Re: ec2_vpc default gw not working?

2015-02-26 Thread Dan Vaida
So you're saying that after running that the IGW is not associated with your subnet(s)? Also, can you confirm that the routing tables have the correct subnets associations? On Tuesday, 24 February 2015 21:37:04 UTC+1, Pablo Escobar wrote: > > Hi, > > I have been doing some tests to deploy a ec2

[ansible-project] Re: version 0.9: wait_for suck in wait until timeout, it cannot wake up after the host can be accessed by ssh

2015-02-26 Thread hce h
Sorry, the version is 1.9. On Thursday, February 26, 2015 at 7:32:46 PM UTC+11, hce h wrote: > > Hi, > > I have following wait_for statement after reboot the host, but it stuck in > the wait until the timeout even the host can be accessed manually when I > run ssh the host. Is it a bug or what

[ansible-project] version 0.9: wait_for suck in wait until timeout, it cannot wake up after the host can be accessed by ssh

2015-02-26 Thread hce h
Hi, I have following wait_for statement after reboot the host, but it stuck in the wait until the timeout even the host can be accessed manually when I run ssh the host. Is it a bug or what I could be missing? - name: Wait for restart local_action: wait_for host="{{ inventory_hostname }}" por