[ansible-project] Registered variables and templates

2013-12-10 Thread Giorgio Valoti
Hi all, If I want to use the result of a command within a template I use `register`: - name: gather some facts command: ls -l /etc register: etc_contents and then, in my template: # {{ ansible_managed }} {% for d in etc_contents.stdout_lines %} {{d}} {% endfor %} It works OK, but it would b

Re: [ansible-project] Looking for ideas: secure user management

2013-12-10 Thread Jürgen Haas
Great, that works. And with $F[5] we also get the home directory for each user. So I'll see if I can turn that into a default playbook for general us as Michael DeHaan suggested. Am Montag, 9. Dezember 2013 21:31:32 UTC+1 schrieb Kahlil Hodgson: > > On 9 December 2013 19:51, Jürgen Haas > > wro

Re: [ansible-project] lib vs. library

2013-12-10 Thread Jens Rantil
Hey, Den måndagen den 9:e december 2013 kl. 15:34:53 UTC+1 skrev Michael DeHaan: > > We're not going to move anything at this time. > Aight. It's your call. > I think you can get used to it. > Sure, and the next thousand users can too. ;-) I'm not thinking of me, but more them. Cheers, Jen

Re: [ansible-project] Delegation to multiple machines

2013-12-10 Thread Jens Rantil
Sweet! Thanks! Den måndagen den 9:e december 2013 kl. 15:35:33 UTC+1 skrev Michael DeHaan: > > Yep, here's an example! > > > https://github.com/ansible/ansible-examples/blob/master/lamp_haproxy/rolling_update.yml > > > > On Mon, Dec 9, 2013 at 6:42 AM, Jens Rantil > > wrote: > >> Good day, >> >>

[ansible-project] Test Jinja Template locally

2013-12-10 Thread Marc Patermann
Hi, I never did anything with Jinja before, now I want to create my first template. :) Is there an easy way to test my template locally? Like on the command line with the variable as options? i.e. # jinja-test mytemplate.js special=yes proxy=foo # cat mytemplate.js proxy={{ proxy }} {% if

Re: [ansible-project] Looking for ideas: secure user management

2013-12-10 Thread Jürgen Haas
Here is the Ansible role on github.com: https://github.com/jurgenhaas/ansible-user-management It can be executed as a role, e.g. like this: - name: "Manage Users" hosts: "all" connection: ssh gather_facts: false sudo: yes roles: - users Enjoy! My plan is to further enhance that r

Re: [ansible-project] Test Jinja Template locally

2013-12-10 Thread Brian Coca
just use local_action: template, with the playbook and save it to a tmp dir, then you can examine it. also --check and --diff do a good job of showing you what you would put into place with template module. -- You received this message because you are subscribed to the Google Groups "Ansible P

Re: [ansible-project] lib vs. library

2013-12-10 Thread Michael DeHaan
No one else has had a problem. -- 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. For more options, visit https://

[ansible-project] First ansible deployment very simple, handler doesnt run after playbook re-run

2013-12-10 Thread Marko Lisica
Hello community, I have made simple nginx, symfony, php ansible playbook. Playbook runs fine both with Vagrant and with "real server". Problem is when I change some config values, eg. nginx http port, and re run playbook, the change occurs on the server but handler doesnt run and my web serve

Re: [ansible-project] First ansible deployment very simple, handler doesnt run after playbook re-run

2013-12-10 Thread Michael DeHaan
So without seeing your playbook there is very very little we can tell about what's going on. Perhaps you could upload to the relevant parts to gist or share snippets. On Tue, Dec 10, 2013 at 10:27 AM, Marko Lisica wrote: > Hello community, > > I have made simple nginx, symfony, php ansible pl

Re: [ansible-project] How to define with_items by variables in ansible 1.4?

2013-12-10 Thread Michael DeHaan
I'll file a ticket to add this to the suggester code, thanks! On Mon, Dec 9, 2013 at 10:00 PM, wrote: > Thank you. Quoting resolves the issue. But I want to say, indeed, the rest > of the output didn't tell me what to do. :) > The whole output is: > ERROR: Syntax Error while loading YAML script

Re: [ansible-project] Running tasks in parallel in a playbook

2013-12-10 Thread Michael DeHaan
So, this is an old post, so I have an update for you. You can already get a fair measure of this if you are an AWX user, here to launch a few Job Templates by ID: awx-cli joblaunch -t 0 && awx-cli joblaunch -t 1 This also gives you central status logging and access control -- delegation around w

Re: [ansible-project] Re: Passing nested arguments to a module

2013-12-10 Thread Michael DeHaan
You can definitely pass in with_items with a list of hashes. module_name: foo={{ item.name }} bar={{ item.value }} with_items: - { name: 'x', value: 'y' } - { name: 'a', value: 'b' } etc or with_items: alist_of_hashes etc or as you have it, with with_items: [ { name: 'x', value: 'y' },

Re: [ansible-project] Remount Partitions and making permanent

2013-12-10 Thread Michael DeHaan
Are you seeing otherwise? On Tue, Dec 10, 2013 at 12:20 AM, TextEditor wrote: > So when I do a remount of root (/) with new options it will be made > permanent in fstab? > > Op maandag 9 december 2013 15:37:21 UTC+1 schreef Michael DeHaan: >> >> Also note the description of the module >> >> "

Re: [ansible-project] "gem" module reports gem as present when it is not and therefore will not install

2013-12-10 Thread Adam Williams
Wow, somehow I totally missed this reply. Thank you for responding. Sorry for the terrible formatting of my post. I'll consider your suggestion and update this thread once I have an answer. Again, very strange that it works fine when I leave the module on the server, login there, and execute it

[ansible-project] Bootstrapping versions with the pip module

2013-12-10 Thread Gustav Andersson
Is this currently possible with Ansibles pip module? I have been googling and trying different ways all morning but come up empty handed. Say I want to install the latest 1.2 version of a specific package with pip, but not 1.3.x versions due to compatibility issues. Manually I could run: >

[ansible-project] Anyone else wishing they could control Vagrant boxes from a Windows Host?

2013-12-10 Thread Taylor Brown
Using Vagrant to spin up dev environments promises to end many of our cross-platform server-side development issues once and for all. When deciding how to provision my vagrant boxes, I considered Chef, Puppet, and Ansible. I settled on Ansible for reasons that are obvious to this group's read

[ansible-project] Ansible playbook hostvars undefined variables

2013-12-10 Thread Vasiliy Boulytchev
Folks, The following code is producing errors. code: {% for v in hostvars.iteritems() %} {{ v['ansible_all_ipv4_addresses'][0] }} {{ v['ansible_hostname'] }} {% endfor %} error: {'msg': "One or more undefined variables: 'tuple object' has no attribute 'ansible_all_ipv4_addresses'", 'fai

Re: [ansible-project] Re: when does ansible-playbook write to stdout?

2013-12-10 Thread Taylor Brown
Thanks for this fix! I ran into this issue when running ansible-playbook as part of a shell provisioning script in Vagrant. In other words, Vagrant is just running a shell script, and the shell script is running "sudo ansible-playbook" in local mode. However, I just wanted to point out that in

[ansible-project] Install Ansible on Mac OS X: the appropriate way?

2013-12-10 Thread Ye Deng
Hello all, I tried to install Ansible on both Mac OS X 10.9 and ubuntu-12.04. It seems my installation on OS X is not quite complete. I followed the instructions on this page below: http://www.ansibleworks.com/docs/intro_installation.html If I installed Ansible by using this script below on ubu

[ansible-project] Undefined variables when using hostvars.iteritems()

2013-12-10 Thread Vasiliy Boulytchev
Folks, The following code is producing errors. code: {% for v in hostvars.iteritems() %} {{ v['ansible_all_ipv4_addresses'][0] }} {{ v['ansible_hostname'] }} {% endfor %} error: {'msg': "One or more undefined variables: 'tuple object' has no attribute 'ansible_all_ipv4_addresses'", 'fai

Re: [ansible-project] Ansible playbook hostvars undefined variables

2013-12-10 Thread James Tanner
On 12/10/2013 11:24 AM, Vasiliy Boulytchev wrote: Folks, The following code is producing errors. code: |{% for v in hostvars.iteritems() %} {{ v['ansible_all_ipv4_addresses'][0] }} {{ v['ansible_hostname'] }} {% endfor %} | error: |{'msg': "One or more undefined variables: 'tuple objec

Re: [ansible-project] Re: when does ansible-playbook write to stdout?

2013-12-10 Thread Michael DeHaan
Did this ever get addressed in Vagrant? On Mon, Dec 9, 2013 at 4:01 PM, Taylor Brown wrote: > Thanks for this fix! I ran into this issue when running ansible-playbook > as part of a shell provisioning script in Vagrant. In other words, Vagrant > is just running a shell script, and the shell s

Re: [ansible-project] Install Ansible on Mac OS X: the appropriate way?

2013-12-10 Thread Michael DeHaan
The current development branch head is labelled 1.5 and is not yet released. If you run the "I want to run it from checkout" script it's not going to install any files, but you can find an example configuration file in the examples/ dir of the checkout. You can also install using pip or homebrew.

Re: [ansible-project] Re: when does ansible-playbook write to stdout?

2013-12-10 Thread Jake Clarkson
Yep, it was resolved in Vagrant 1.3.4. On 10 Dec 2013 17:33, "Michael DeHaan" wrote: > Did this ever get addressed in Vagrant? > > > > > On Mon, Dec 9, 2013 at 4:01 PM, Taylor Brown wrote: > >> Thanks for this fix! I ran into this issue when running ansible-playbook >> as part of a shell provisi

Re: [ansible-project] Install Ansible on Mac OS X: the appropriate way?

2013-12-10 Thread James Tanner
On 12/09/2013 03:05 PM, Ye Deng wrote: Hello all, I tried to install Ansible on both Mac OS X 10.9 and ubuntu-12.04. It seems my installation on OS X is not quite complete. I followed the instructions on this page below: http://www.ansibleworks.com/docs/intro_installation.html If I installed An

Re: [ansible-project] Bootstrapping versions with the pip module

2013-12-10 Thread Michael DeHaan
You could use the pip module with a requirements.txt. I do agree version should be specified in the version parameter. I do welcome attempts to upgrade the module, should you wish to try! On Tue, Dec 10, 2013 at 5:23 AM, Gustav Andersson < gustav.k.anders...@gmail.com> wrote: > Is this curren

Re: [ansible-project] Undefined variables when using hostvars.iteritems()

2013-12-10 Thread James Tanner
On 12/10/2013 11:54 AM, Vasiliy Boulytchev wrote: Folks, The following code is producing errors. code: |{% for v in hostvars.iteritems() %} {{ v['ansible_all_ipv4_addresses'][0] }} {{ v['ansible_hostname'] }} {% endfor %} | error: |{'msg': "One or more undefined variables: 'tuple objec

Re: [ansible-project] Anyone else wishing they could control Vagrant boxes from a Windows Host?

2013-12-10 Thread Michael DeHaan
To avoid confusing the list, I'll clarify. So in this case you're asking about running Ansible from Windows hosts against Linux hosts. This is not talking about using Ansible to configure Windows hosts (future roadmap feature) and absolutely we are not going to ask anyone to install sshd on a Win

Re: [ansible-project] "gem" module reports gem as present when it is not and therefore will not install

2013-12-10 Thread James Tanner
On 12/10/2013 12:01 PM, Adam Williams wrote: Wow, somehow I totally missed this reply. Thank you for responding. Sorry for the terrible formatting of my post. I'll consider your suggestion and update this thread once I have an answer. Again, very strange that it works fine when I leave the modu

Re: [ansible-project] Ansible playbook hostvars undefined variables

2013-12-10 Thread Vasiliy Boulytchev
James, The following is breaking as well: {% for k,v in hostvars.iteritems() %} {{ v['ansible_all_ipv4_addresses'][0] }} {{ v['ansible_hostname'] }} {% endfor %} On Tuesday, December 10, 2013 12:11:15 PM UTC-5, James Tanner wrote: > > On 12/10/2013 11:24 AM, Vasiliy Boulytchev wrote:

Re: [ansible-project] Anyone else wishing they could control Vagrant boxes from a Windows Host?

2013-12-10 Thread Brian Coca
why not spin up the first vagrant box with ansible and control the rest from there? -- 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..

[ansible-project] Re: Passing nested arguments to a module

2013-12-10 Thread Giorgio Valoti
Michael DeHaan writes: > You can definitely pass in with_items with a list of hashes. > > module_name: foo={{ item.name }} bar={{ item.value }} > with_items: >- { name: 'x', value: 'y' } >- { name: 'a', value: 'b' } > > etc > > or with_items: alist_of_hashes > > etc > > or as you have it,

Re: [ansible-project] Ansible playbook hostvars undefined variables

2013-12-10 Thread James Tanner
On 12/10/2013 12:44 PM, Vasiliy Boulytchev wrote: James, The following is breaking as well: {% for k,v in hostvars.iteritems() %} {{ v['ansible_all_ipv4_addresses'][0] }} {{ v['ansible_hostname'] }} {% endfor %} On Tuesday, December 10, 2013 12:11:15 PM UTC-5, James Tanner wrote:

Re: [ansible-project] Ansible playbook hostvars undefined variables

2013-12-10 Thread Brian Coca
Are you gathering facts? Do those facts show ansible_all_ipv4_addresses? This is not present on all distros, for example fails to populate on my gentoo machines. ansible -m setup |less, will give you a full view of supported facts on the target. -- You received this message because you are sub

[ansible-project] Re: Ansible playbook hostvars undefined variables

2013-12-10 Thread Vasiliy Boulytchev
Facts are being gathered: GATHERING FACTS *** ok: [foo.us-west-2.compute.internal] ok: [bar.us-west-2.compute.internal] ok: [baz.us-west-2.compute.internal] On Tuesday, December 10, 2013 11:24:52 AM UTC-5, Vasiliy Boulytchev wrote: >

Re: [ansible-project] Re: Ansible playbook hostvars undefined variables

2013-12-10 Thread James Tanner
On 12/10/2013 01:02 PM, Vasiliy Boulytchev wrote: Facts are being gathered: GATHERING FACTS *** ok: [foo.us-west-2.compute.internal] ok: [bar.us-west-2.compute.internal] ok: [baz.us-west-2.compute.internal] On Tuesday, December 10, 20

Re: [ansible-project] Re: Ansible playbook hostvars undefined variables

2013-12-10 Thread Vasiliy Boulytchev
Both u'ansible_hostname': u'ip-10-72-97-33' u'ansible_all_ipv4_addresses': [u'10.72.97.33'] are present... On Tuesday, December 10, 2013 1:05:23 PM UTC-5, James Tanner wrote: > > On 12/10/2013 01:02 PM, Vasiliy Boulytchev wrote: > > Facts are being gathered: > > GATHERING FACTS >

Re: [ansible-project] Re: Ansible playbook hostvars undefined variables

2013-12-10 Thread James Tanner
On 12/10/2013 01:31 PM, Vasiliy Boulytchev wrote: Both u'ansible_hostname': u'ip-10-72-97-33' u'ansible_all_ipv4_addresses': [u'10.72.97.33'] are present... On Tuesday, December 10, 2013 1:05:23 PM UTC-5, James Tanner wrote: On 12/10/2013 01:02 PM, Vasiliy Boulytchev wrote: Facts are

[ansible-project] Re: First ansible deployment very simple, handler doesnt run after playbook re-run

2013-12-10 Thread Marko Lisica
Hi, actually I didnt quite understand notify function. I had notify for nginx restart once in my playbook, the thing I didnt understood is that NOTIFY has to be present in every task that will be changed sometiomes in the future and in every task that needs some action I have to put notify. B

Re: [ansible-project] Re: Ansible playbook hostvars undefined variables

2013-12-10 Thread Vasiliy Boulytchev
Absolutely. The keys are present. I've been able to narrow it down to the following: work: {% for k,v in hostvars.iteritems() %} {{ v['ansible_all_ipv4_addresses'] }} {{ v['ansible_hostname'] }} {% endfor %} doesnt: {% for k,v in hostvars.iteritems() %} {{ v['ansible_all

Re: [ansible-project] Re: Ansible playbook hostvars undefined variables

2013-12-10 Thread James Tanner
On 12/10/2013 02:23 PM, Vasiliy Boulytchev wrote: Absolutely. The keys are present. I've been able to narrow it down to the following: work: {% for k,v in hostvars.iteritems() %} {{ v['ansible_all_ipv4_addresses'] }} {{ v['ansible_hostname'] }} {% endfor %} doesnt: {% for k,v

[ansible-project] mysql_user with privs always shows changed

2013-12-10 Thread Yves Dorfsman
Is this a bug (ansible 1.4): - name: add user toto mysql_user: name=toto host='%' password='p455w0rd' priv="somedb:ALL" It works, it does the right thing, but when I run it with the "priv=" that status is always "changed". If I remove the priv, the status is "ok". -- Yves. -- You

[ansible-project] with_nested for across multiple modules

2013-12-10 Thread Michael Baydoun
I'm doing something like this tasks: - lineinfile: dest={{ item[0] }}/.gitignore create=yes regexp='{{ item[1] }}' line='*.{{ item[1] }}' with_nested: - [ '/tmp/foo', '/tmp/bar' ] - [ 'lck', 'log', 'Log' ] but then I want to do other operations on the same list o

[ansible-project] synchronization among nodes in a group

2013-12-10 Thread Xu Chen
I am curious if there is any mechanism to perform synchronous tasks among a group of nodes (or nodes in a role, etc.) There is one example online to perform rolling updates to a group of web servers, one at a time. This makes perfect sense, since in this case you don't want to shut down all of

Re: [ansible-project] synchronization among nodes in a group

2013-12-10 Thread Brian Coca
- hosts: webnodes tasks: - shutdown - hosts: db tasks: - migration - hosts: webnodes tasks: - upgrade ... you can see where I'm going -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop

Re: [ansible-project] synchronization among nodes in a group

2013-12-10 Thread Brian Coca
forgot the last: - hsots: webnodes serial: 1 tasks: - startup -- 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...@googlegroup

Re: [ansible-project] synchronization among nodes in a group

2013-12-10 Thread Xu Chen
I am new to ansible, obviously :-) How are we defining "shutdown" task? Should that be under a role? On Tuesday, December 10, 2013 3:22:22 PM UTC-5, Brian Coca wrote: > > - hosts: webnodes > tasks: > - shutdown > > - hosts: db > tasks: >- migration > > - hosts: webnodes > tasks: >

Re: [ansible-project] synchronization among nodes in a group

2013-12-10 Thread Brian Coca
it was just a placeholder for however you manage the webnodes, in my case it is: service: name=nginx state=stopped that should work for anything that uses the system's init apps -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe

Re: [ansible-project] mysql_user with privs always shows changed

2013-12-10 Thread James Tanner
On 12/10/2013 03:15 PM, Yves Dorfsman wrote: Is this a bug (ansible 1.4): - name: add user toto mysql_user: name=toto host='%' password='p455w0rd' priv="somedb:ALL" It works, it does the right thing, but when I run it with the "priv=" that status is always "changed". If I remove t

Re: [ansible-project] with_nested for across multiple modules

2013-12-10 Thread James Tanner
On 12/10/2013 03:17 PM, Michael Baydoun wrote: I'm doing something like this tasks: - lineinfile: dest={{ item[0] }}/.gitignore create=yes regexp='{{ item[1] }}' line='*.{{ item[1] }}' with_nested: - [ '/tmp/foo', '/tmp/bar' ] - [ 'lck', 'log', 'Log' ] but the

Re: [ansible-project] with_nested for across multiple modules

2013-12-10 Thread Michael Baydoun
> > > > Are you looking for a quicker way to reference those items than having > to type out the lists over and over again? > > > yes, I want to specify the array of directories 1 time in 1 place, and not repeat and maintain multiple identical arrays. after the infile module for example, I want

[ansible-project] Re: recursive copy in v1.3

2013-12-10 Thread Guillem Liarte
Re-using old thread. I have something like this: - name: Check-out latest Wordpress Skeleton copy: src=/etc/ansible/roles/web/files/WordPress-Skeleton/ dest=/data/public/{{ customer }}/test owner={{ httpd-user }} group={{ httpd-user }} tags: wordpress As per notes: Local path to a file to

[ansible-project] files/ vs roles/foo/files . Can I use both?

2013-12-10 Thread Dmitry Makovey
I have a situation where I have files locateed in /files (top-level) and would like to use them within certain roles to avoid duplication. However ansible tells me it can't find referenced file. Do I need to turn a knob or should I just copy same files into diff roles or for any common files

Re: [ansible-project] Re: recursive copy in v1.3

2013-12-10 Thread Matt Coddington
you have a dash in your variable name {{ httpd-user }}. try using an underscore instead and that error shouldn't happen! http://www.ansibleworks.com/docs/playbooks_variables.html#what-makes-a-valid-variable-name matt On Tue, Dec 10, 2013 at 4:14 PM, Guillem Liarte < guillem.lia...@googlemail.

Re: [ansible-project] Re: recursive copy in v1.3

2013-12-10 Thread Matt Martz
The recursive copy functionality was added for 1.4. The current version of ansible is 1.4.1. I would recommend upgrading. On Tuesday, December 10, 2013, Guillem Liarte wrote: > Re-using old thread. > > I have something like this: > > - name: Check-out latest Wordpress Skeleton > copy: src=/et

Re: [ansible-project] Escaping $ inside a variable

2013-12-10 Thread Kesten Broughton
Is there a solution to this? I am trying to add to PATH and can't keep ansible from evaluating a $ I've tried '\$' and several other things. I'm trying to achieve the following: MYPATH is an env variable on a remote host. I want to add a string defined in vars/main.yml to a line in .bash_profil

Re: [ansible-project] Escaping $ inside a variable

2013-12-10 Thread Kahlil Hodgson
On 11 December 2013 08:48, Kesten Broughton wrote: > path_to_git_extras: 'PATH=\\$PATH:\\$ANSIBLE_21CT_HOME/roles/git/files' > does '>' quoting help? path_to_git_extras: > PATH=$PATH:$ANSIBLE_21CT_HOME/roles/git/files K -- You received this message because you are subscribed to th

Re: [ansible-project] mysql_user with privs always shows changed

2013-12-10 Thread Yves Dorfsman
On 2013-12-10 13:31, James Tanner wrote: On 12/10/2013 03:15 PM, Yves Dorfsman wrote: Is this a bug (ansible 1.4): - name: add user toto mysql_user: name=toto host='%' password='p455w0rd' priv="somedb:ALL" It works, it does the right thing, but when I run it with the "priv=" that st

Re: [ansible-project] Looking for ideas: secure user management

2013-12-10 Thread Kahlil Hodgson
Another approach occurs that does not require the Perl Crazy Glue: - name: grab passwd entries for this host shell: cat /etc/passwd' register: passwd - name: lock unknown users user: name={{ item.split(':').0 }} password='!!' when: item.split(':').0 not in known_users and item.split(

Re: [ansible-project] mysql_user with privs always shows changed

2013-12-10 Thread James Tanner
On 12/10/2013 05:09 PM, Yves Dorfsman wrote: On 2013-12-10 13:31, James Tanner wrote: On 12/10/2013 03:15 PM, Yves Dorfsman wrote: Is this a bug (ansible 1.4): - name: add user toto mysql_user: name=toto host='%' password='p455w0rd' priv="somedb:ALL" It works, it does the right t

Re: [ansible-project] Re: recursive copy in v1.3

2013-12-10 Thread Gonzalo Servat
and by the way, comments like "but it is little things like that making it look like not mature enough" are not going to incite a lot of people to help you :-) Ansible is very useful to a lot of people (like myself), and like any project, it has room for improvement and as an open source project, i

Re: [ansible-project] Re: recursive copy in v1.3

2013-12-10 Thread Michael DeHaan
Ansible's currently the most popular automation tool on github in terms of watchers and forks, so it will take more than that to break my bones. However, yes, it wasn't very appreciated. Please file a bug if you have a bug to report and are running the latest released version. On Tue, Dec 10

[ansible-project] Request for testing: upgraded ssh handling now on development HEAD

2013-12-10 Thread Michael DeHaan
Hi all, A recent discussion on the development list introduced some great patches from Jerome Wagner, which have streamlined the number of SSH operations Ansible has to perform for a certain class of tasks. This makes the ssh implementation even faster (and especially so with Control Persist on,

[ansible-project] Re: Request for testing: upgraded ssh handling now on development HEAD

2013-12-10 Thread Michael DeHaan
Ok this was breaking async, we will get it working shortly! On Tue, Dec 10, 2013 at 6:52 PM, Michael DeHaan wrote: > Hi all, > > A recent discussion on the development list introduced some great patches > from Jerome Wagner, which have streamlined the number of SSH operations > Ansible has to

[ansible-project] duplicated role execution..

2013-12-10 Thread Xu Chen
I have defined three roles: A, B and C. Using meta/main.yml, I have B depending on A, and C depending on A as well. If I have the following: - hosts: group_test roles: - B - C What happens is that the tasks associated to role A is executed twice. Is there any dedup mechanism to exe

[ansible-project] Re: Anyone else wishing they could control Vagrant boxes from a Windows Host?

2013-12-10 Thread Brian Green
I used the shell provisioner to launch a script that setup Ansible and then used Ansible in pull mode. IIRC I was able to issue management commands via vagrant ssh (ie from Windows command prompt). On Monday, December 9, 2013 8:51:07 AM UTC-6, Taylor Brown wrote: > > > > Using Vagrant to spin

Re: [ansible-project] duplicated role execution..

2013-12-10 Thread John Dewey
Hi Xu - Not that I have seen. I believe you will have duplicate tasks run. John On Tuesday, December 10, 2013 at 9:20 PM, Xu Chen wrote: > I have defined three roles: A, B and C. > > Using meta/main.yml, I have B depending on A, and C depending on A as well. > > If I have the following: >