Re: [ansible-project] Re: DNS Made Easy module

2015-01-02 Thread Brice Burgess
ut more about the > problem? > > I've tried sniffing with tshark but unfortunately the whole communication > is passed via https. > > Thanks in advance! > Jacek > > On Saturday, August 24, 2013 8:49:35 AM UTC+2, Brice Burgess wrote: >> >> Eric, >&g

Re: [ansible-project] include another role's variables without running it's tasks?

2014-05-28 Thread Brice Burgess
On Wednesday, May 28, 2014 6:58:55 AM UTC-5, Michael DeHaan wrote: > > > Otherwise you are backing up only the things that ansible has known it > changed, which doesn't include things that the software could have changed > by itself (databases) or users logging in. > Right -- that's assuming th

Re: [ansible-project] include another role's variables without running it's tasks?

2014-05-28 Thread Brice Burgess
On 05/28/2014 03:24 PM, Maciej Delmanowski wrote: 28 maj 2014 22:18 "C. Morgan Hamill" > napisaƂ(a): > > For what it's worth, I simply follow this rule: if data needs to be > accessed from outside a role, then it should go in inventory somewhere > (e.g., group_vars/

Re: [ansible-project] include another role's variables without running it's tasks?

2014-05-28 Thread Brice Burgess
On Wednesday, May 28, 2014 12:16:00 PM UTC-5, Maciej Delmanowski wrote: > > Is there a reason no to backup, say, /etc, /home, /srv and /var/www? > > Maciej > Hey Maciej. That scenario (backing up entire directores) is totally supported as well via the backup role and feeding it a list of directo

Re: [ansible-project] include another role's variables without running it's tasks?

2014-05-28 Thread Brice Burgess
On Wednesday, May 28, 2014 10:46:52 AM UTC-5, Michael DeHaan wrote: > > > Just put it in the configuration file for the backup tool/script. No need > to sprinkle this throughout the playbook IMHO. > My backup role ensures the backup tools and remote storage points (via the s3ql service role).

Re: [ansible-project] include another role's variables without running it's tasks?

2014-05-27 Thread Brice Burgess
On Tuesday, May 27, 2014 5:33:38 PM UTC-5, Adam Morris wrote: > > > I'm curious why you would do this (not because there is anything > inherently wrong with it, but I'm wondering what your thinking is here). > In short -- I am trying to avoid running 88 non-changing tasks to execute 2 changing

Re: [ansible-project] include another role's variables without running it's tasks?

2014-05-27 Thread Brice Burgess
tomate application X, stop. > > It's not supposed to be a super-elegant software construct, or even a > programming language. It's a language for getting things done. > > > > > > > > > On Tue, May 27, 2014 at 9:45 AM, Brice Burgess > > wrote: > >

[ansible-project] include another role's variables without running it's tasks?

2014-05-27 Thread Brice Burgess
I often need to access the default variables of another role. Currently I'm doing this via role dependencies, and passing a special variable to skip running a roles tasks. E.g. ``` :: my_role/meta/main.yml :: dependencies: - { role: other_role, skip_tasks: True } :: other_role/tasks/tasks.y

Re: [ansible-project] ansible-pcd ; now fit for public consumption

2014-05-25 Thread Brice Burgess
n my project's README >(https://github.com/ginas/ginas/ >). > >Cheers! >Maciej > > >2014-05-25 6:15 GMT+02:00 Brice Burgess : > >> I spent some time over the weekend to bring the ansible-pcd project >up to >> date and am excited to share it with the commu

Re: [ansible-project] ansible-pcd ; now fit for public consumption

2014-05-25 Thread Brice Burgess
iej Delmanowski wrote: > > Competition, eh? :) Great! I've added you to my list. Which I promptly > created and included in my project's README ( > https://github.com/ginas/ginas/). > > Cheers! > Maciej > > > 2014-05-25 6:15 GMT+02:00 Brice Burgess >: > &

[ansible-project] ansible-pcd ; now fit for public consumption

2014-05-24 Thread Brice Burgess
I spent some time over the weekend to bring the ansible-pcd project up to date and am excited to share it with the community! https://github.com/iceburg-net/ansible-pcd ansible-pcd provides a set of roles and standard conveniences with the following goals; * encourage flexible, convenient, and

[ansible-project] Re: edX slides from NYC Ansiblefest

2014-05-21 Thread Brice Burgess
John, Thanks for sharing. I especially enjoyed slide 11 ( https://docs.google.com/presentation/d/1-AaITmG0_d6O7NKXYb8ErOacvqBryFkEI7tHhb43uDo/pub?start=false&loop=false&delayms=3000#slide=id.g181a185a8_06 ) where you detail variable naming; UPPERCASE for overriding, lowercase for internal. Pre

Re: [ansible-project] Jinja2 converting double quotes to single quotes

2014-05-02 Thread Brice Burgess
RobL, Can you use ansible's regex_replace jinja filter in test.j2 to turn surrounding single quotes to double quotes? e.g. regex_replace('^[\'"]?(.*)[\'"]?$','"\\1"') ``` { "keepDoubleQuotes": {{ keepDoubleQuotes | regex_replace('^[\'"]?(.*)[\'"]?$','"\\1"') }}, "loseDoubleQuotes":

[ansible-project] Re: unable to configure ansible properly - sudo: True has no effect on any task

2014-04-17 Thread Brice Burgess
Joel, Did you try adding `sudo_user: jhughes` to the task? On Sunday, April 13, 2014 12:53:18 AM UTC-5, Joel Hughes wrote: > > sudo: True has no effect on any task > This is a configuration issue, but after many hours I'm unable to locate > it. > > Tested against ansible 1.4.5, 1.5.0 through 1.

Re: [ansible-project] Problem with includes in templates

2014-04-17 Thread Brice Burgess
FWIW jinja2/template includes are working for me in 1.5 with a few notes; + context is automatically inherited, no need to pass with context + {% include filename %} only accepts relative paths for filename. eg. - {% include "inc/filename.j2" %} works, - {% include "/etc/ansible/templ

[ansible-project] Re: Special shell for special users on special host %)

2014-03-27 Thread Brice Burgess
Petr, I'll augment your example with this behavior. Since you're adding "user 1" by it's own when matching all hosts; it kind of takes care of the requirement to avoid changing user 1's shell. See below; == hosts file= [group1] serv1 [group2] serv2 serv3 ===

[ansible-project] Re: Is it possible build a file in local by using template module?

2014-03-26 Thread Brice Burgess
Absolutely. I use this technique to help combat the deprecation of include + with_items. Something like: ``` - name: normalize apache_sites_list into variable file local_action: template dest={{ apache_sites_var_file }} src="apache_sites_normalized.j2" - name: load normalized `apache_sites_

[ansible-project] using with_first_found in a with_items loop?

2014-03-25 Thread Brice Burgess
Is it possible to use with_first_found in a with_items loop? Such as; ``` - template: dest=/foo/{{ item.name }}-{{ item.branch | default('master') }} src={{ item }} with_first_found: - {{ item.name }}-{{ item.branch | default('master') }} - {{ item.name }}.j2 - apache_site.j2

Re: [ansible-project] FWIW; ansible-pcd ( prepare, configure, deploy ) framework

2014-03-25 Thread Brice Burgess
resting, please upload the deploy bits... I can somewhat see > this breaking up of playbooks to be useful for large plays with lots of > steps. > > > On Mon, Mar 24, 2014 at 6:30 AM, Brice Burgess > > wrote: > >> I'd like to share the way I organize ansible to m

[ansible-project] FWIW; ansible-pcd ( prepare, configure, deploy ) framework

2014-03-23 Thread Brice Burgess
I'd like to share the way I organize ansible to manage infrastructure with the community. I tend to think of infrastructure as partitioned into "systems", "services", and "applications"... and automation as "preparation", "configuration", and "deployment". This approach reduces execution times