[ansible-project] Is there a sane way to build a list of dictionaries from two lists?

2016-09-14 Thread Ben Cohen
I want to use with_nested to assemble a list by iterating over two lists and extracting particular keys from both -- ideally something like ...: - name: "Build flat list of security group rules that should exist" set_fact: rulesList: - proto: "{{ item.1.proto }}" from_port:

[ansible-project] Is there a way to handle the error which occurs when unable to unlock an ansible-vault file?

2016-03-09 Thread Ben Cohen
Hi -- I've got a playbook with multiple plays. One play depends on ability to unlock an ansible-vault and declares this fact in the var_files section of the play: a_playbook.yml ``` - hosts: local vars_files: - var_files/encrypted_secret_variables.yml tasks: ``` Prior to ansible2 it was

Re: [ansible-project] ansible_env is undefined

2016-03-02 Thread Ben Cohen
troduces undesirable consequences that are not possible to avoid ... On Wed, Mar 2, 2016 at 10:52 AM, Ben Cohen <cohen@gmail.com> wrote: > Thanks -- what's a good pattern to the PATH environment variable during a > play? > > On Mon, Feb 29, 2016 at 7:42 PM, Brian Coca <bc

Re: [ansible-project] ansible_env is undefined

2016-03-02 Thread Ben Cohen
nherit settings from > play, this might cause an error if settings environment on play depending > on 'ansible_env' which was previously ignored" > > On Mon, Feb 29, 2016 at 7:44 PM, Ben Cohen <cohen@gmail.com> wrote: > >> After upgrading ansible versions: >

[ansible-project] ansible_env is undefined

2016-02-29 Thread Ben Cohen
After upgrading ansible versions: ncohen@breathe ~/s/f/fn-ansible (master)> ansible --version ansible 2.0.1.0 config file = /Users/ncohen/software/face/fn-ansible/ansible.cfg configured module search path = Default w/o overrides I'm getting an error on first usage of ansible_env variable

Re: [ansible-project] Re: directory layout for grouping playbooks - ansible.cfg ?

2016-01-04 Thread Ben Cohen
I also yearn for a solution to this problem -- I think that ansible playbooks don't compose well -- and roles are (in my opinion) a not-so-good abstraction for code re-use / process organization. Frequently for the 'orchestration' portion of some automation I find myself needing playbooks and the

Re: [ansible-project] Manage SSh-Keys

2015-10-24 Thread Ben Cohen
I think you should take a look at the authorized_keys module again -- you can pass multiple keys to a single invocation when using the exclusive option which will enforce that exactly and only the list of keys you supplied are in the specified authorized_keys file. On Thursday, October 22, 2015,

Re: [ansible-project] Ansible 1.9.4 has been released

2015-10-15 Thread Ben Cohen
I'm not seeing any performance improvements notes -- but is anyone else observing 1.9.4 to provide a _significant_ performance boost over 1.9.3? On Friday, October 9, 2015, James Cammarata wrote: > Hi all, 1.9.4 has been released, and is now available. > > This release

[ansible-project] ansible2 -- filter_plugins

2015-10-06 Thread Ben Cohen
I wanted to start looking at ansible 2 now that its in beta -- most things are working for me out of the box -- but I have a very simple custom filter that I need to use which isn't being discovered: sts-infrastructure (master)> cat filter_plugins/wrap.py def wrap(list): return [ '"' + x +

[ansible-project] Re: windows winrm environment does not allow some kinds of execution

2015-09-23 Thread Ben Cohen
It's here if you want to take a look ... I'll try and make any changes needed ... https://github.com/ansible/ansible-modules-extras/pull/1007 On Tuesday, September 22, 2015, J Hawkesworth < j.r.hawkeswo...@googlemail.com> wrote: > Thank you. Looking forward to seeing your PR. > > Jon > > -- >

[ansible-project] Re: windows winrm environment does not allow some kinds of execution

2015-09-21 Thread Ben Cohen
request to ansible-module-extras and see if anyone finds a use ... On Thu, Sep 17, 2015 at 1:37 PM, Ben Cohen <cohen@gmail.com> wrote: > I was trying to script the usage of the windows DISM utilities via ansible > -- and ran into an issue with being unable to execute dism

[ansible-project] windows winrm environment does not allow some kinds of execution

2015-09-17 Thread Ben Cohen
I was trying to script the usage of the windows DISM utilities via ansible -- and ran into an issue with being unable to execute dism from within the winrm context. Apparently some varieties of rpc (which DISM uses internally) are prevented from running from within the winrm execution context ...

[ansible-project] questions regarding ansible raw module on windows

2015-09-15 Thread Ben Cohen
I'm seeing some references online that make it sound like the ansible "raw" module when run versus windows hosts (winrm) should allow execution of powershell commands -- I'm able to execute raw: commands with the older windows shell (batch file syntax) -- but don't seem to be able to use any

[ansible-project] Composability: is there a way to implement a module as a series of ansible tasks?

2015-08-14 Thread Ben Cohen
I really like the ansible module interface: pure functions are powerful, super simple and really great. The with_items syntax adds a lot of power on top with very low cognitive overhead that helps keep you laser focused on describing your objectives in ways that tend to be very declarative.

Re: [ansible-project] Gitter chat/channel for Ansible?

2015-08-11 Thread Ben Cohen
As a lurker whose email clients have mailed mailing lists unbearable -- id love to see this! On Monday, August 10, 2015, Hristo Stoyanov hr.stoya...@gmail.com wrote: Hi, I tried the IRC chat for Ansible and it is painful (especially from mobile device). Since Ansible is hosted on Github

Re: [ansible-project] fetch module fails checksum when remote user's shell is set to /bin/tcsh

2015-05-08 Thread Ben Cohen
Ah ok, yeah I didn't see the above answer in the response on the issue ... I'm surprised this isn't a faq. Thanks, Ben On Fri, May 8, 2015 at 5:27 PM, Brian Coca bc...@ansible.com wrote: hi, im the bot that closed the issue, in the response you might have missed the answer: set