[ansible-project] Nesting Playbooks?

2015-11-19 Thread Slim Slam
Ansible v1.9.4 I have a playbook that I launch with: $ ansible-playbook build.yml build.yml includes set_os.yml (just a set of tasks) that launches some ec2 instances. build.yml looks like this. - name: Build stuff hosts: localhost remote_user: ec2-user sudo: False gather_facts: False

Re: [ansible-project] Nesting Playbooks?

2015-11-19 Thread Timothy Gerla
Since build_soft.yml is a full playbook and not just a list of tasks, like set_os.yml, the include shouldn't be indented to the same level. Try de-denting the build_soft.yml as far left as possible, and it should behave as expected. -Tim On Thu, Nov 19, 2015 at 6:58 PM, Slim Slam

[ansible-project] Ansible 2.0 RC1 is available for testing!

2015-11-19 Thread James Cammarata
Hi all, for those not at AnsibleFest we have officially release the first release candidate for Ansible 2.0! For details and background, please see the original beta announcement here: https://groups.google.com/d/msg/ansible-project/_hTjEIpbA_Y/GtllImCkCQAJ How do you get it?

[ansible-project] Re: How to define host var and append values to it from task

2015-11-19 Thread Mike Biancaniello
I think the short answer is that you don't. Ansible has a setting that will allow you to merge dictionaries together, but not lists. This setting is global and applies to all dicts. I'm guessing it doesn't merge lists because there's no way to indicate if your intent is to merge the list or

Re: [ansible-project] Copying a remote MySQL Database

2015-11-19 Thread Steven Parsons
Awesome that worked, thanks for the help. Steven On Thursday, November 19, 2015 at 6:00:05 AM UTC-8, Dick Davies wrote: > > split 'Copy MySQL Database' into two separate tasks, with one action each. > > On 18 November 2015 at 22:01, Steven Parsons > wrote: > >> I am

[ansible-project] How can append values into host variable

2015-11-19 Thread Igor Cicimov
Try - set_fact: locked_domains="{{ locked_domains }}item.ID" Also using with_dict might be better option instead of with_items in this case. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving

[ansible-project] Re: checking java process

2015-11-19 Thread Co S
Try this way: when: 'jboss.server' in jboss_java_process.stdout -- 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

Re: [ansible-project] Copying a remote MySQL Database

2015-11-19 Thread Dick Davies
split 'Copy MySQL Database' into two separate tasks, with one action each. On 18 November 2015 at 22:01, Steven Parsons wrote: > I am wondering if anyone has copied a MySQL database from a location and > then restored it locally using Ansible? I thought I had it

[ansible-project] Reusing a set of taks across many roles

2015-11-19 Thread Co S
H All, I have a piece of code which is required to run by many roles. Instead of duplicating these tasks which brings maintenance problem as it grows, I would like somehow to re-use same set of tasks across many roles and define them just in one place. Is there any way to achieve this?

[ansible-project] Re: Problem looping over JSON data returned from URI call

2015-11-19 Thread Andris Bjornson
Hi Brian - thanks for the reply. I had found from_jsonbut then I realized that the uri module is actually putting stuff into an attribute of registered_variable called registered_variable.json. I did solve my problem, thoughit was a bonehead YAML syntax issue with the indents of my

[ansible-project] columns vs rows on zabbix_screen extras module

2015-11-19 Thread Andris Bjornson
Hello, I use Zabbix heavily to monitor networks, so I'm loving the zabbix-related extras modules. I am using the zabbix_screens module: http://docs.ansible.com/ansible/zabbix_screen_module.html and it's quite straightforward and helpful. However, I added one graph for each of a group