Re: [ansible-project] How to use ec2 modules user_data field?

2015-12-07 Thread Bryan Larsen
On Friday, 26 December 2014 05:05:33 UTC-5, Catalin Costache wrote: > > Yaml has a notation for multiline string. I set user data like so: > > user_data: | > #!/bin/bash > echo "Defaults:{{admin_user}} !requiretty" > /etc/sudoers.d/ > disable_requiretty > I'm having trouble using th

Re: [ansible-project] Don't parse skipped roles?

2014-04-22 Thread Bryan Larsen
On Mon, Apr 21, 2014 at 7:23 PM, Michael DeHaan wrote: > If you would ever like to report a crash, including the "result" of the > crash is > needed to understand the context. > Can you please paste the result you are receiving? > I'm not sure why you want the backtrace; it's already fixed in 1.

[ansible-project] Don't parse skipped roles?

2014-04-21 Thread Bryan Larsen
I've got a role that works in 1.6 but crashes in 1.5. (My guess is that this fixes it: https://github.com/ansible/ansible/commit/2a976a) The crashing task is this: - authorized_key: user={{ item|basename }} key="{{ lookup('file', item) }}" with_fileglob: - "../../../../keys/*" The role

[ansible-project] ansible version available as fact?

2014-04-11 Thread Bryan Larsen
I have a task that works on devel but not on 1.5.4. I assume it's because of https://github.com/ansible/ansible/commit/2a976a - authorized_key: user={{ item|basename }} key="{{ lookup('file', item) }}" with_fileglob: - "../../../../keys/*" We have ansible installed on all our production

Re: [ansible-project] dealing with Redis and it's rewritten configuration files

2014-04-02 Thread Bryan Larsen
Thanks for your suggestions. I think my approach will be to use the template file to create the configuration only if it doesn't exist, and then use config set/rewrite to set any configuration variables that may change over the project lifetime. Ansible 1.6 includes some more options to the redis

[ansible-project] dealing with Redis and it's rewritten configuration files

2014-04-02 Thread Bryan Larsen
How do people generally set up Redis through ansible? Right now we're using the fairly standard approach of templating the configuration files, and using a notify handler to restart redis whenever the configuration file changes. The problem with this is that Redis often rewrites its configurati