[ansible-project] Re: Using ansible for software deployments – are we doing it right?

2016-11-02 Thread Dan Lang
Have you profiled, https://github.com/jlafon/ansible-profile, your Ansible executions to find out where the largest bottlenecks are? I would start there. Once you know where your process is slowest and why, you can better attack the problem You might be able to speed up the process by having

Re: [ansible-project] Re: Getting hostvars from an intersection of groups

2016-10-28 Thread Dan Rough
Thanks Josh. That's useful to know about. I have one of the situations that the README describes - I have some kit at Rackspace, and some on a dedicated server elsewhere. At the moment, I store all the inventory files in a directory, inventories. When I run a playbook I provide the directory

Re: [ansible-project] Re: Getting hostvars from an intersection of groups

2016-10-28 Thread Dan Rough
makes the selection clearer to read which is a bonus too. Hope this helps someone else. On Friday, 28 October 2016 19:09:12 UTC+1, Dan Rough wrote: > > Mehul / Karen, > > Did you ever get anywhere with this? I have just arrived at the same > problem and am looking for a solution too.

Re: [ansible-project] Re: Getting hostvars from an intersection of groups

2016-10-28 Thread Dan Rough
or that matter is able to spot it and point it out, I'd be grateful. Thanks! Dan. On Friday, 6 November 2015 07:34:02 UTC, Mehul Ved wrote: > > Hi Karen, > I already have these machines up and running and correctly tagged. I > want to access hostvars of a machine from another

Re: [ansible-project] Re: group_vars and ansible's patterns - suggestions please!

2016-10-27 Thread Dan Rough
to the problem. Dan > On 26 Oct 2016, at 22:50, Allen Sanabria <asanab...@linuxdynasty.org> wrote: > > I use to use group_vars/. Instead I use vars/ now. Since include_vars plugin > now supports directories and you can limit the depth of the include. Here is > an example

Re: [ansible-project] Re: group_vars and ansible's patterns - suggestions please!

2016-10-26 Thread Dan Rough
That's a good idea. Thanks! I hadn't thought of that. That will simplify things in one or two locations. > On 26 Oct 2016, at 22:01, Alexander H. Laughlin <m...@gahan-corporation.com> > wrote: > > Hi Dan, > > Why not store the values in a dictionary and just

[ansible-project] Re: Question about organizing roles and playbooks

2016-10-26 Thread Dan Rough
If I understand your question correctly, then why not just have two playbooks? We have an infrastructure.yml playbook which provisions a server for us. We also have another playbook which makes alterations to that server dependent on its role. For example, in our case when we provision a

[ansible-project] group_vars and ansible's patterns - suggestions please!

2016-10-26 Thread Dan Rough
rs files we maintain. Before we take this route, can anyone tell me if we're missing a trick? Is there a technique that we're missing? Thanks! Dan. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop

[ansible-project] Re: Open Source: Usage/Licence/Community Edition?

2016-09-21 Thread Dan
Hi, read and read...so could it be that I can use Ansible for my project under the open source licence...just "Tower" is a product I would need to buy from Red Hat...did I understand this correctly? Thx Dan Am Mittwoch, 21. September 2016 19:27:04 UTC+2 schrieb Dan: > > H

[ansible-project] Open Source: Usage/Licence/Community Edition?

2016-09-21 Thread Dan
Hi, sorry, stupid question... does Open Source here mean that I can use Ansible and build upon it for my business project without buying the product? On the homepage I only find "free trial", not "community edition".. Thx for any advice Dan -- You received this

[ansible-project] Pre-requisite tasks

2016-08-22 Thread Dan Nestor
is, the RPM in question is not already installed. Can I do this in Ansible? Thanks! Dan -- 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-p

[ansible-project] Creating servers at Rackspace, host specification and where best to store group variables

2016-07-12 Thread Dan Rough
f those people would mind responding, either with suggested changes that I can make to how our servers are created so that I can refer to the group_vars values, or with examples of how they do their own server creation so that I can understand if there is a different strategy which I should c

[ansible-project] Re: Learning Ansible and found issue with yum module

2016-06-30 Thread Dan Lang
What version of Ansible do you have? You can find that with the --version flag. You may also want to change your use of -sudo to use --become and --ask-become-pass since sudo is deprecated. On Thursday, June 30, 2016 at 12:38:18 PM UTC-4, Donald Macaulay wrote: > > I am running through an

[ansible-project] Re: Is there a json module yet?

2016-05-03 Thread Dan Lang
Would the lineinfile module be sufficient? If you're updating a single line in your JSON file, this seems appropriate. On Monday, May 2, 2016 at 2:59:15 PM UTC-4, Will LaSeur wrote: > > I'm looking for a quick way to update a json

[ansible-project] Return variables on task includes not working anymore

2016-04-22 Thread Dan C
I use to be able to do things like: included_general_task.yml --- - name: Get list dir shell: ls {{ path_dir }} register: {{ list }} main.yml --- - include: "included_general_task.yml path_dir=/ list=root_list" - include: "included_general_task.yml path_dir=/tmp list=tmp_list" >From

[ansible-project] Re: How to copy a file from control machine to the host where task is running

2016-03-07 Thread Dan Lang
Besides the copy module, there is the synchronize module for syncing many files in a directory, http://docs.ansible.com/ansible/synchronize_module.html. Feel free to review each of the modules that help with managing files, http://docs.ansible.com/ansible/list_of_files_modules.html On

Re: [ansible-project] Update Ansible SSH Address Mid-Playbook

2016-02-26 Thread Dan Rough
incorrectly. Thanks! Dan. On 26 February 2016 at 15:09, Dan Rough <d...@gamevy.com> wrote: > Hi Liam, > > Thanks for responding - I'd all but given up on getting this to work. > > I'm using Rackspace rather than AWS, I'll see if the Rackspace equivalent, > rax.py has a simi

Re: [ansible-project] Update Ansible SSH Address Mid-Playbook

2016-02-26 Thread Dan Rough
Hi Liam, Thanks for responding - I'd all but given up on getting this to work. I'm using Rackspace rather than AWS, I'll see if the Rackspace equivalent, rax.py has a similar issue with the cache. Thanks again! Dan. On 26 February 2016 at 07:55, Liam Jones <liam.jones@gmail.com>

[ansible-project] Re: Traceback with ansible: AttributeError: 'module' object has no attribute '_vendor'

2016-02-15 Thread Dan McCormick
In case this helps someone who finds this thread while Googling, I was able to solve this on Mac OS X by installing the cryptography package system-wide, i.e. "sudo pip install cryptography". Dan On Tuesday, September 22, 2015 at 10:52:41 AM UTC-4, tma...@gmail.com wrote: > >

[ansible-project] Re: Ansible mount no fsck options?

2016-02-14 Thread Dan Lang
Checkout the dump and passno arguments in the module. http://docs.ansible.com/ansible/mount_module.html On Sunday, February 14, 2016 at 4:34:41 AM UTC-5, Ansible Madness wrote: > > I'm using the standard Ansible mount module to update entries in > /etc/fstab however there appears to be no

Re: [ansible-project] Update Ansible SSH Address Mid-Playbook

2016-02-06 Thread Dan Rough
Rather than post a new thread, I thought that I would resurrect this one, as Brian's suggestion - to use `meta: refresh_inventory` sounds to be exactly what I'm looking for. However, after some number of attempts, I can not seem to get it to work. Does anyone have an example that they wouldn't

[ansible-project] Re: Ansible Windows Winrm Authentication or permission failure.

2016-01-23 Thread Dan Gibbons
modules. I'll try another module when I get back to work but if you have any other suggestions please let me know. Thanks Dan On Friday, 22 January 2016 18:14:54 UTC, Joe Levis wrote: > > Hi Dan, > > I ran into a lot of issues when trying to get Ansible to connect to my > remote

[ansible-project] Ansible Windows Winrm Authentication or permission failure.

2016-01-22 Thread Dan Gibbons
ible ansible]# I tried modifying the temp path but that didn't work either. I'm out of ideas as everything else works in terms of winrm connections so if anyone has some suggestions I can try please let me know otherwise it's going to be Puppet for me which is a shame as I liked the sound

Re: [ansible-project] Getting pieces from a list with ansible

2016-01-21 Thread Dan C
Hi again, So, it is not possible to get a "variable" piece of a "variable" list? What I need is to maintain a fixed number of objects in a storage, I want to have always only the "last X" objects and delete all the rest. Is there any other way to do so? >> -- You received this message

Re: [ansible-project] Changing actions in case a node fails

2016-01-21 Thread Dan C
Hi there, For anyone interest and to close this thread. I reported the bug and it is already solved! https://github.com/ansible/ansible/issues/14024 Now In case of any host fail it will execute rescue to all of them! (devel branch only). What a great feature!!! Thanks James! > -- You

Re: [ansible-project] Changing actions in case a node fails

2016-01-20 Thread Dan C
Hi James, Yes it seems something is different regarding this on devel branch. But either I don't understand what it does or something is not right. In the current version (2.0.0.0) if I try to use "any_errors_fatal" in a block level it fails because this is not an option to be usable on a

[ansible-project] Changing actions in case a node fails

2016-01-19 Thread Dan C
Hi there, I've been looking arround trying to find a way, with no luck. When running a playbook against multiple nodes (say 5), and one of them fail a task (or block), I would like the other 4 nodes to run different tasks than the ones they would run if non of the nodes fail. Is there any way

Re: [ansible-project] Getting pieces from a list with ansible

2016-01-19 Thread Dan C
gt; this should be enough: > - set_fact: >mylist: ["l10","j82","b83","8jk","j83"] > > another issue is that moustaches do not stack! and you need moustaches > for variables > > > - set_fact: elements={{mylist[-max_n:]}} >

Re: [ansible-project] Changing actions in case a node fails

2016-01-19 Thread Dan C
Hi James, This is a really nice feature! I was just trying to get there by using "delegate_facts" which is not that clean of a solution,... ;-) Will this feature be in the "devel" branch soon? And till now (with this new feature) was there any other way to achieve this? Thank you very much!

[ansible-project] Getting pieces from a list with ansible

2016-01-18 Thread Dan C
Hi, I know I am provably misunderstanding somthing, but I am not able to find a solution to my (rather simple) problem. What I want is quite easy. I have a list and I want to get the last (or first) X elements of it: Example: - set_fact: mylist={{["l10","j82","b83","8jk","j83"]|list}} -

Re: [ansible-project] Re: yum_repository module (has anyone thought of doing it...)

2015-12-14 Thread Dan Lang
Check out the module index, there is http://docs.ansible.com/ansible/yumrepo_module.html. This is an extras module. On Thursday, December 10, 2015 at 9:23:27 AM UTC-5, Cha Donghwi wrote: > > Is this still not implemented to ansible core? > > > > 2014년 2월 13일 목요일 오후 10시 22분 54초 UTC+9, Johan

[ansible-project] Reporting on dry run package updates

2015-12-08 Thread Dan Rough
to what I wanted to achieve was built to do unattended upgrade. My requirement though is to report on the changes available before committing to making those changes. Any help or pointers to projects that achieve similar would be appreciated. Thanks! Dan. -- You received this mes

[ansible-project] Re: Failed to find required executable mysql

2015-11-28 Thread Dan Vaida
try to output the PATH var. looks like Ansible is using one that doesn't have mysql in it. On Wednesday, 20 May 2015 17:56:42 UTC+2, Albert Mikaelyan wrote: > > Hey guys, > > All I'm trying to do, is import a schema in case a database does not exist > yet > > ansible --version > ansible 1.9.1

[ansible-project] Re: Whitespace in Value for INI_FILE

2015-11-28 Thread Dan Vaida
Try this: - name: Create 'config.ini' to include necessary values ini_file: > dest=./testconfig.ini section="{{ item.section }}" option="{{ item.option }}" value="{{ item.value }}" with_items: - { section: 'General', option: 'test1', value: 'value2' } -

[ansible-project] Re: Roles for installing Linux desktops?

2015-10-18 Thread Dan Lang
Checkout battleschool. I think it's written for OS X, but it could be an example to build what you have in mind. https://github.com/spencergibb/battleschool On Saturday, October 17, 2015 at 8:23:02 AM UTC-4, Nathan Sowatskey wrote: > > Hi > > I would like to use a role that installs Linux

[ansible-project] issue #11996 (include_vars overrides subsequent role's vars/main.yml)

2015-10-13 Thread Dan Stillman
Can one of the developers please comment on #11996 (https://github.com/ansible/ansible/issues/11996)? Again, this was acknowledged as a bug by abadger in [1]. It had been fixed in 2.0, but then regressed again (as expected [2]). As I note in the GitHub thread, the current behavior makes role

Re: [ansible-project] Include unexisting files

2015-10-09 Thread Dan C
El jueves, 8 de octubre de 2015, 18:34:37 (UTC+2), David Karban escribió: > > Hi, > > not possible on 1.9. version, do not know, if on 2.0. > > David Karban > Linux server specialist/Specialista na správu linuxových serverů > www.karban.eu > > 2015-10-08 18:19 GMT+

[ansible-project] Include unexisting files

2015-10-08 Thread Dan C
Hi, Does someone know if and how to include plays that does not exist at the execution time? For example. *main.yml* - include: download.yml - include: /this/file/does/not/exist/yet/configure.yml I would like to download some files. After *download.yml* finishes the file

[ansible-project] Re: Ansible deployment script, variable hosts value

2015-10-07 Thread Dan Poirier
Or when things get more complicated, you can define groups like "webservers" and have playbooks apply to the relevant group. On Wednesday, October 7, 2015 at 1:47:32 PM UTC-4, Rob Wilkerson wrote: > > Okay, that makes sense. In that scenario, I assume that deploy.yml just > specifies hosts: all

Re: [ansible-project] include_vars overrides subsequent role's vars/main.yml

2015-10-03 Thread Dan Stillman
On 10/3/15 10:49 AM, t goto wrote: Thanks for info, Dan. Glad to see that at least someone is already working on it :), and it probably will be fixed in ver2. Well, unfortunately that's not the case — my point was that, even though this was acknowledged as a bug in 1.9 that had been fixed

Re: [ansible-project] include_vars overrides subsequent role's vars/main.yml

2015-10-02 Thread Dan Stillman
I think that's the issue I reported here: https://github.com/ansible/ansible/issues/11996 Initially closed as a "possible misunderstanding", then acknowledged as broken on 1.9 and fixed on 2.0, then broken again on 2.0, and the issue was left closed. Seems pretty clear to me that it's not the

[ansible-project] Re: Invalid security_token in cloudformation module

2015-09-22 Thread Dan Farrell
yeah, what gives? The CLI commands work fine in my environment too. On Thursday, August 13, 2015 at 12:25:53 PM UTC-5, Vicent Soria wrote: > > Anyone? > > El miércoles, 5 de agosto de 2015, 17:36:52 (UTC+2), Vicent Soria escribió: >> >> Hi, >> >> I'm trying to manage a cloudformation stack

Re: [ansible-project] Using variables as dictionary keys

2015-09-15 Thread Dan Stillman
On 9/15/15 12:57 PM, Patrick McMahon wrote: Is something like this possible when defining a dictionary in defaults/main.yml: | agent_instances: "{{ [ansible_fqdn] }}": port:5912 "{{ [ansible_fqdn]-2 }}": port:5913 | I want to then call |agent_instances.keys() | join (",") |in a

Re: [ansible-project] variable precedence seems hopelessly broken

2015-09-03 Thread Dan Stillman
help with keeping track of separate issues and documenting the expected behavior. I don't really see another solution here. - Dan -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving e

Re: [ansible-project] variable precedence seems hopelessly broken

2015-09-02 Thread Dan Stillman
se Ansible — if no effort is made to ensure that these dangerous bugs stay fixed. [1] https://github.com/ansible/ansible/issues/11996 [2] https://github.com/ansible/ansible/issues/9497 On 8/18/15 7:08 PM, Dan Stillman wrote: I really like Ansible and have built a large infrastructure around it

[ansible-project] ImportError: No module named runner (environment issues)

2015-08-31 Thread Dan Swartz
*How I got here*: I have been wanting to prepare for the upgrade to v2.0 for awhile now and, having just seen the alpha release, I thought I'd try it... super bad idea, it turns out. My whole environment is messed up. I had already apt-gotten it, but after this, I apt-removed it, deleted all

[ansible-project] Ansible Tower and requirements.yml

2015-08-19 Thread Dan
Hi I am having an issue with Ansible Tower not picking up the requirements.yml file that is needed for the playbook. The documentation (Here http://docs.ansible.com/ansible-tower/latest/html/userguide/projects.html#ansible-galaxy-support) says that tower looks for roles/requirements.yml

[ansible-project] variable precedence seems hopelessly broken

2015-08-19 Thread Dan Stillman
I really like Ansible and have built a large infrastructure around it, but I'm finding it untrustworthy to the point of being unusable. In the last 9 months, I've reported 4 variable precedence bugs: https://github.com/ansible/ansible/issues?utf8=%E2%9C%93q=is%3Aissue+author%3Adstillman+ The

Re: [ansible-project] Re: pywinrm GSSError: No Kerberos credentials available

2015-08-14 Thread Dan Swartz
sure your ansible controller clock is pretty close to synchronised with your domain controllers, otherwise you'll get 'clock skew too great' messages instead of authorising. Hope this helps. Jon On Thursday, August 13, 2015 at 8:22:04 PM UTC+1, Dan Swartz wrote: In fact I did not have

[ansible-project] Re: pywinrm GSSError: No Kerberos credentials available

2015-08-13 Thread Dan Swartz
In fact I did not have pykerberos installed! I had tried installing awhile ago via pip install kerberos (no py) to no avail, and, at some point installed libkrb5-dev, thinking it would suffice. Well, TIL! Incidentally, now that I have that installed and have run the kinit command, I am at least

Re: [ansible-project] ETA on Ansible 2.0 ?

2015-07-27 Thread Dan Swartz
Can we get an updated estimate? Even if it's just a matter of days vs. weeks. Thanks. On Thursday, June 11, 2015 at 10:29:52 AM UTC-4, Greg DeKoenigsberg wrote: The answer is when it's done, basically. It's a major refactoring effort, and we want to make sure the take the time to find, and

[ansible-project] Re: skipping: no hosts matched

2015-07-21 Thread Dan Vaida
How old is your cache? Do you also have AWS CLI installed? If so, are the credentials consistent with the boto credentials/env vars? Any customizations made to the ec2.ini file? Can you post the playbook? Can you add *--list-hosts* to your command and post the output here? What about running

[ansible-project] Re: Recovering from failure in handlers

2015-07-21 Thread Dan Vaida
you can try *ignore_errors: yes *in your handler. On Thursday, 7 May 2015 16:25:05 UTC+2, Shawn Ferry wrote: I've recently experienced the case where a handler has failed stopping the remaining handler execution in a playbook. Once the triggering change has completed subsequent playbook

Re: [ansible-project] getting values from returned data (elasticache endpoint)

2015-07-20 Thread Dan Vaida
FWIW, this might come in handy if you're using ElastiCache: https://github.com/ansible/ansible/pull/11261 My pal decided that this might ease our work and boy he was right :) On Tuesday, 5 May 2015 01:34:39 UTC+2, DenMat Gone wrote: On Tuesday, May 5, 2015 at 6:32:21 AM UTC+10, Brian Coca

Re: [ansible-project] retrieving endpoint from data in the elasticache module

2015-07-20 Thread Dan Vaida
see here: https://groups.google.com/d/msg/ansible-project/qJ2UNWuaIJk/-S0GyDfTbPoJ On Tuesday, 5 May 2015 02:12:31 UTC+2, DenMat Gone wrote: Thanks Matt, You're correct. On Tuesday, May 5, 2015 at 12:19:16 AM UTC+10, Matt Martz wrote: Case matters when accessing keys. Instead of

[ansible-project] Re: Multiple items and a long list of conditional tasks

2015-07-10 Thread Dan Swartz
Is this what block tasks are meant to handle? On Friday, June 20, 2014 at 7:50:03 AM UTC-4, Tom Cannaerts wrote: I'm writing a playbook to create a number of solr cores, but I'm running into some issues. I started with a task file that would be included, but appearantly include and

Re: [ansible-project] Multiple items and a long list of conditional tasks

2015-07-10 Thread Dan Swartz
Of course! I keep forgetting that the programmy stuff should go in Python :) When you talk about a 'fact' module, though, what do you mean? Writing a module that takes in a bunch of data formatted in some way and then exit_json( [changed=False,] yourStuff=yourStuff ), where yourStuff is a

[ansible-project] :children group syntax

2015-07-08 Thread Dan Mick
Why does :children exist? Why couldn't it be the case that groups of groups just recurse on their components, expanding as they go? -- 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

Re: [ansible-project] :children group syntax

2015-07-08 Thread Dan Mick
Not suggesting change, just trying to understand rationale. I guess it's the way it is because it's the way it is. On Wednesday, July 8, 2015 at 11:14:49 AM UTC-7, Brian Coca wrote: my initial proposal was require @ as the start of group names, many ways to do it, this is what the original

Re: [ansible-project] :children group syntax

2015-07-08 Thread Dan Mick
Well of course, but why? Why is it necessary to distinguish? If group, expand group; if not, don't On Wednesday, July 8, 2015 at 6:07:43 AM UTC-7, Brian Coca wrote: its a way to distinguish between groups and hosts, as both entries can look the same. -- Brian Coca -- You

Re: [ansible-project] :children group syntax

2015-07-08 Thread Dan Mick
you know if it's a group if it has a name that matches a defined group name. Are you saying it's solely to allow forward references to groups? If so, isn't it an attribute of the child name itself that it refers to a group, and not the supergroup can only contain children? i.e. any of these

[ansible-project] Re: synchronize / delegate_to / transferring files between hosts

2015-06-19 Thread Dan Swartz
For anyone who comes across this and has the same question, I did not really figure it out, but I did just decide to install the private key in the target machines' /etc/ssh directory and chmod it to 0600. I figure it's basically as secure as it could get without a transient (in-memory only)

[ansible-project] Re: Log the actual playbook contents?

2015-06-19 Thread Dan Vaida
plugin doing that: https://gist.github.com/metmajer/7da2f9599c2d75d80ee5 I wouldn't go for a wrapper. Callback plugins are so much more elegant. Cheers, Dan. On Wednesday, 29 April 2015 18:14:40 UTC+2, Mark Felder wrote: Hello, I'm working with ansible in some environments rather sensitive

[ansible-project] Re: Set fact for another group in playbook

2015-06-19 Thread Dan Vaida
Use Ansible's dynamic inventory and access the hostname like so: {{ hostvars[groups['rds_instance_name_goes_here][0]].ec2__address }} Make sure the instance is set to publicly available and the security group around it allows such connections. On Sunday, 26 April 2015 11:56:22 UTC+2, Sergei

[ansible-project] Re: with_inventory_hostnames and Ansible Vault

2015-06-19 Thread Dan Vaida
I think you would have a better shot at an answer if you'd ask here: https://groups.google.com/forum/#!forum/ansible-devel On Tuesday, 28 April 2015 22:52:30 UTC+2, kly...@squarespace.com wrote: I am trying to use the with_inventory_hostnames lookup plugin, but it keeps failing with the

Re: [ansible-project] synchronize / delegate_to / transferring files between hosts

2015-06-18 Thread Dan Swartz
out a script to push to my targets??? Thanks again, - Dan On Thursday, June 18, 2015 at 3:53:22 AM UTC-4, Philippe Eveque wrote: Hi Dan I think you are on the right track with synchronize and delegate_to In my case I do this the following way (pseudo code) PLAY1: - hosts

[ansible-project] synchronize / delegate_to / transferring files between hosts

2015-06-17 Thread Dan Swartz
methods here, or at least some ideas. How can I just send files from another host to my target machine(s)? Thanks in advance, - Dan -- 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

Re: [ansible-project] skip-tags doesn't work for handlers

2015-06-08 Thread Dan C
Thanks Brian, Is there a minimum version for the when statment to work with handlers? The ansible version I am using for this test is 1.7.2 I have: # file: roles/beaver-configure/handlers/main.yml - name: restart beaver service: name=beaver.sh state=restarted when: flag_not_restart is not

Re: [ansible-project] skip-tags doesn't work for handlers

2015-06-07 Thread Dan C
I tried with a when statement on the handler definition (with a variable defined by me) but id didn't seem to work either, the handler is executed anyway, and the AMI creation fails for that. El sábado, 6 de junio de 2015, 12:14:50 (UTC+2), Dan C escribió: I would like the same feature. I

Re: [ansible-project] skip-tags doesn't work for handlers

2015-06-06 Thread Dan C
I would like the same feature. I don't know if there is another way to do what I am trying to do. My case of use would be to be able to use the same roles/playbooks to mantain the configuration along all my servers and for the AMI creation. In the case of an ami creation I don't want the

[ansible-project] How to pass group vars to role in playbook?

2015-06-01 Thread Dan
When test_var is defined inside the playbook it gets passed to the role correctly. However when it's defined in group_vars/all.yml Ansilbe won't find it (undefined) and exits with an error: fatal: [vagrant] = failed to combine variables, expected dicts but got a 'dict' and a 'unicode' The

[ansible-project] Generating YAML config files via Jinja2 Ansible vars

2015-05-22 Thread Dan Tehranian
:1234/nginx_status/ tags: - instance:bar Thanks, Dan -- 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

Re: [ansible-project] Re: print template variable

2015-05-17 Thread Dan Vaida
If I recall correctly, the --diff flag might come in handy in your case. -- 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] Use rax module to create a server with extra_create_args / build_config

2015-04-15 Thread Dan Rough
at 5:45 AM, Dan Rough dan.ro...@gmail.com wrote: Hello, I'd like to be able to create servers at Rackspace which are free from any packages other than the ones installed by default as part of a Debian installation. In response to the support ticket I raised, I was pointed to this article

[ansible-project] Use rax module to create a server with extra_create_args / build_config

2015-04-14 Thread Dan Rough
: LON name: base-image files: /root/.ssh/authorized_keys: ./id-rsa.pub flavor: general1-1 image: 04399432-ac55-4e0b-bcd1-6c90fa568a0f extra_create_args: build_config: core,monitoring Thanks, Dan. -- You received this message because

Re: [ansible-project] create multiple directories (one-by-one slow)?

2015-03-29 Thread Dan
not using the file module, you can switch to command/shell: mkdir /volumes/{usbdisk, nfs, smb} Thanks -- of course, I could translate large parts of the playbook to shell script, after all. I wonder if the slowness of item-by-item is normal? What's going on behind the scenes -- a new ssh

[ansible-project] Re: lineinfile when two lines are the same

2015-03-29 Thread Dan Vaida
Would it be acceptable to template that config file? Perhaps save that chunk only, in a templated file that would be later on included. On Sunday, 29 March 2015 06:34:20 UTC+2, Vince Skahan wrote: I'm installing a piece of software that requires me to edit a user=xyz line into a monolithic

[ansible-project] create multiple directories (one-by-one slow)?

2015-03-28 Thread Dan
The following works, but is pretty slow (much slower than a mkdir -- it creates directories one-by-one, with a delay before each sub-task) - name: create directories file: dest=/volumes/{{item}} state=directory with_items: [ usbdisk, nfs, smb ] Is there a faster way? -- You received this

[ansible-project] Re: conditionally running tasks

2015-03-28 Thread Dan Vaida
#variable-precedence-where-should-i-put-a-variable Cheers, Dan. On Tuesday, 24 March 2015 19:19:31 UTC+1, Vince Skahan wrote: On Tuesday, March 24, 2015 at 6:46:27 AM UTC-7, Jonathan Davila wrote: You could try to variablize the values of the module parameters into os-specific vars files

[ansible-project] Re: Do not restart service if it was just started?

2015-03-28 Thread Dan Vaida
The template module ensures idempotence. So, if there is no diff between the files and the templates, the task should not return changed, thus not invoking the handler. However, sometimes things may change on the server (i.e. permissions, ownership) because of various reasons. For that, you can

[ansible-project] Re: rsync file permissions

2015-03-28 Thread Dan Vaida
try to set owner=no group=no in the synchronize task. The uid gid from your host are not reflected on your target system. Also, you could condense like: file: path=/var/www/html/munki_repo/{{ item }} state=directory owner=munki group=munki recurse=yes with_items: - catalogs - icons On

[ansible-project] Re: Ansible --diff --check only display changes

2015-03-28 Thread Dan Vaida
enjoy is: https://gist.github.com/cliffano/9868180 Cheers, Dan. On Monday, 23 March 2015 23:06:18 UTC+1, David Neudorfer wrote: Would a callback plugin be the right place to start if I wanted to only the display changed: tasks including the changes: --- before: /etc/motd +++ after: /opt

[ansible-project] Re: On the same server, how to run a role twice with different arguments

2015-03-28 Thread Dan Vaida
Obvious for some, helpful for others, a more condensed version could look like: --- - name: SomePlaybook hosts: yourgroup roles: - { role: yourrole, install_path: [ '/opt/install1', '/opt/install2' ] } On Tuesday, 24 March 2015 00:03:22 UTC+1, Olivier Lauret wrote: Thank you

[ansible-project] Re: How access variable from one playbook in the other playbook?

2015-03-25 Thread Dan Vaida
setting that in var files. Hope this helps, Dan. On Monday, 16 March 2015 18:52:39 UTC+1, George Shuklin wrote: Hello. I'm trying to set up application with database. My current (simplified) version looks like this: site.yml: - include db.yml - include app.yml db.yml - hosts

[ansible-project] Re: How to create a variable with value based on some condition?

2015-03-25 Thread Dan Vaida
There are some ways to go around this. One would be to have two tasks which would use the when condition to find the distro version and install the relevant package. If this is too much overhead, depending on your roles, you could use two tasks with set_fact and work your way up from there in

[ansible-project] Re: Ansible read after write file in playbooks

2015-03-25 Thread Dan Vaida
I'd register the data in a variable and use it during the playbook run. You can save it to a file during the playbook run as well. On Monday, 16 March 2015 18:08:04 UTC+1, Rahul Mehrotra wrote: Hi Everyone, I am working on a project using Ansible which requires me to write some data to a

Re: [ansible-project] Re: linode_module not working

2015-03-23 Thread Dan Vaida
this create_web.yml of yours? Perhaps the scope is not set right. Cheers, Dan. On Monday, 23 March 2015 18:14:40 UTC+1, Michael Bushey wrote: Dan, Thanks for your response. Since you feel my spacing is wrong, please let me know what is wrong. Proving a link to yaml spacing whitepaper is not helping

[ansible-project] Re: linode_module not working

2015-03-22 Thread Dan Vaida
You're missing indentation. Take a look at the examples on the module page. Here's a good explanation: http://yaml.org/spec/current.html#id2519916 On Wednesday, 18 March 2015 19:38:02 UTC+1, Michael Bushey wrote: I'm attempting to use the first example on page:

[ansible-project] Re: yet another question about loops

2015-03-21 Thread Dan Vaida
--extra-vars @vars.yml I accept this is not the most elegant way to do it, but it's just something I came up with on the spot. Hope it helps, Dan. On Thursday, 19 March 2015 21:27:24 UTC+1, Александр Костырев wrote: yet another question about loops I want to be able to merge users across servers

Re: [ansible-project] test_jsonify is failing from an extra space?

2015-03-19 Thread Dan
I can't get test_jsonify to pass with a pristine 1.8.4 release. It would be nice to fix the 1.8.4 git release so that the tests actually pass. -- 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: registered variables and ec2 with_items on private and public subnet

2015-03-14 Thread Dan Vaida
I came across this kind of randomness myself: https://groups.google.com/forum/#!topic/ansible-project/Xy3kt0Mr8YY You can set a fact with a sorted list and use it in your next tasks to have predictability. On Wednesday, 11 March 2015 14:48:41 UTC+1, Arbab Nazar wrote: Hi, Below is the

[ansible-project] Re: How do I run ansible command on non-win/lin host ?

2015-03-07 Thread Dan Vaida
reply: https://groups.google.com/forum/#!searchin/ansible-project/tty/ansible-project/GEwuvE5GmpM/WQyIFWkjn0QJ but I advise you to closely read all the thread. I believe I saw another 2-3 such threads on the mailing list. Hope this helps, Dan. On Friday, 6 March 2015 14:06:43 UTC+1, Irek

[ansible-project] Re: dumping host_vars - how do I filter out sensitive data?

2015-03-06 Thread Dan Vaida
I don't think there's a quick solution for this. I believe you'd need to write your own filter plugin: http://docs.ansible.com/developing_plugins.html#filter-plugins On Thursday, 5 March 2015 16:23:58 UTC+1, Larry Fast wrote: I'm using the following jinja2 code to dump my hostvars for

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

2015-02-28 Thread Dan Vaida
suggesting that True/False values wouldn't work, hence you get no error. Hope this helps, Dan. On Saturday, 28 February 2015 12:52:13 UTC+1, Pablo Escobar wrote: 2015-02-26 10:41 GMT+01:00 Dan Vaida vaid...@gmail.com javascript:: So you're saying that after running that the IGW

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

2015-02-27 Thread Dan Vaida
wrote: Thanks Yariv and Dan, but non of your suggestions work, the wait_for does seem able to detect the host up after reboot. I reckon it is a bug. Anyway, are there any workaround or alternative module to wait reboot? On Thursday, February 26, 2015 at 7:32:46 PM UTC+11, hce h wrote: Hi

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

[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={{

[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 vpc

[ansible-project] Re: Review of the upcoming Vagrant Ansible Local Provisioner

2015-02-23 Thread Dan Vaida
and respect, so that's my honest opinion on the mater. Dan. On Monday, 23 February 2015 16:24:11 UTC+1, Gilles Cornu wrote: Hello Ansiblings, I am currently working on a guest-based Vagrant provisioner for Ansible (and the consequent refactoring of the legacy host-based Vagrant Ansible

[ansible-project] Re: multi-platform role support: setting vars according to OS

2015-02-21 Thread Dan Vaida
Using that approach, the more platforms your hosts will sport, the more skipping you'll see in your playbook runs. I'd use the group_by module: http://docs.ansible.com/group_by_module.html and use the ansible_distribution fact as a key. Hope that helps. On Friday, 20 February 2015 20:01:39

<    1   2   3   4   >