[ansible-project] organizing playbooks

2021-09-22 Thread Guy Matz
Is there a modern way of organizing playbooks? Are we still supposed to have our playbooks at the top level of the directory structure as described in The Playbooks Best Practices doc ? That doesn't

Re: [ansible-project] vars plugin

2020-12-04 Thread Guy Matz
Brian! You've changed your avatar . . . Thanks so much for the links! I will check them out. Do you know of a link that can tell me how to log from a vars plugin with -v, -vv, -vvv? Thanks again!!! On Tue, Nov 3, 2020 at 11:05 AM Brian Coca wrote: > You might want to add a 'stage' setting

[ansible-project] magic variable for target group?

2020-12-01 Thread Guy Matz
Hi! Does anyone know if there's a variable set for the target group of a play? For example, for this: - hosts: *prime* roles: - nginx - postfix Does any variable get set to "prime" in a deterministic way? Thanks! Guy -- You received this message because you are subscribed to

[ansible-project] vars plugin

2020-10-26 Thread Guy Matz
peeps, I wrote a vars plugin: https://guy.matz.org/2020/10/26/a-vars-plugin-for-ansible/ any comments would be appreciated. Thanks, Guy -- 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] ERROR! A worker was found in a dead state

2020-08-31 Thread Guy Matz
Hi! I have a task which ends simply with: < TASK [pomerium : Put config file in place] > \ ^__^ \ (oo)\___ (__)\ )\/\ ||w | || || ERROR! A worker was found in a dead

[ansible-project] Re: changed_when in a loop gets lost

2019-06-15 Thread Guy Matz
-packages/ansible executable location = /Users/matz/Code/schransible/venv/bin/ansible python version = 3.7.3 (default, Mar 27 2019, 09:23:15) [Clang 10.0.1 (clang-1001.0.46.3)] On Fri, Jun 14, 2019 at 4:02 PM Guy Matz wrote: > Anyone know why the changed_when is not reflected in the out

[ansible-project] changed_when in a loop gets lost

2019-06-14 Thread Guy Matz
Anyone know why the changed_when is not reflected in the output initially? Only in the summary? Here's the code: - name: disk space check debug: msg: "{{ item.mount }} failed check for {{ item.block_available * 4/1024000 }} free GB (Needed {{ pre_check_filesystems[item.mount] }})" when:

[ansible-project] Check a var with 'meta noop'?

2019-05-09 Thread Guy Matz
Hi! I have some ansible code to run a bunch of checks on a system to verify its compliance, and would like to check the kernel against an expected version. I was hoping this would work: - name: versions | Check kernel against expected meta: noop failed_when: false changed_when:

Re: [ansible-project] how do I properly set ANSIBLE_BECOME_PASS ?

2019-05-02 Thread Guy Matz
YAY!! On Wed, May 1, 2019 at 5:04 PM James Cassell wrote: > On Wed, May 1, 2019, at 4:27 PM, Guy Matz wrote: > > Thanks, but that didn't exactly help. I'm not able to figure out what > I'm > > missing . . . any other thoughts? Thanks again!!! > > here's the out

Re: [ansible-project] how do I properly set ANSIBLE_BECOME_PASS ?

2019-05-01 Thread Guy Matz
/ansible.cfg) = /Users/matz/.vault_pw HOST_KEY_CHECKING(/Users/matz/Code/schransible/ansible.cfg) = False On Wed, May 1, 2019 at 3:06 PM James Cassell wrote: > On Wed, May 1, 2019, at 2:55 PM, Guy Matz wrote: > > Hello! Sorry to be so lame. What combination of environment vars do I > &

[ansible-project] how do I properly set ANSIBLE_BECOME_PASS ?

2019-05-01 Thread Guy Matz
Hello! Sorry to be so lame. What combination of environment vars do I need to set in order to not get prompted for a SUDO password?! I've tried setting ANSIBLE_BECOME_PASS and ANSIBLE_ASK_BECOME_PASS=False but I still get prompted . .. Thanks, Guy -- You received this message because you are

[ansible-project] optional template?

2019-02-19 Thread Guy Matz
Hi! I am installing some packages based on a list, and I would like to put a config file in place for each package, however I would like the config file to be optional. For example, if I have this list of packages to install: pkgs: - a - b - c I have code that install the pkgs, and I would

Re: [ansible-project] updating JIRA using ansible playbooks

2017-08-01 Thread Guy Matz
see http://docs.ansible.com/ansible/latest/uri_module.html for an example On Tue, Aug 1, 2017 at 6:12 AM, anoop vc wrote: > I am a beginner in ansible and getting the below error while trying to > update an issue in JIRA using a playbook. Can anyone help > > > ERROR!

[ansible-project] dynamic groups of dynamic groups?

2017-07-31 Thread Guy Matz
Hi! Is it possible to have dynamic groups of dynamic groups? Or can I only have static groups of dynamic groups? Thanks! -- 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,

[ansible-project] Matching hosts in AWS (or any dynamic inventory?)

2017-07-20 Thread Guy Matz
Hello! I would like to match hosts in AWS with something like (passing env as an extravar): hosts: tag_Function_www:_tag_Environment=env I'm currently using this which works: hosts: "tag_Function_www:_Environment_{{ env|default('test') }}" but wondering if there's a better way. Any thoughts

Re: [ansible-project] Lookup plugin returns failure

2017-06-28 Thread Guy Matz
YUCH!! Thanks! :-) On Wed, Jun 28, 2017 at 1:04 PM, Kai Stian Olstad < ansible-project+l...@olstad.com> wrote: > On 28. juni 2017 18:21, Guy Matz wrote: > >> Peeps, >> Hey! I have an issue with the credstash plugin . . . if it can't >> complete the lookup it

[ansible-project] Lookup plugin returns failure

2017-06-28 Thread Guy Matz
Peeps, Hey! I have an issue with the credstash plugin . . . if it can't complete the lookup it simply vomits an AnsibleError, so it's not possible to do something like: {{ lookup('credstash', 'blah', 'bling') | default('Sane default here') }} Anyone know of a way around this? So that a failed

Re: [ansible-project] Using with_subelements, cannot reference dict item's key (v 2.2.0)

2016-11-07 Thread Guy Matz
I think you want {{ item.0.name }} On Thu, Oct 13, 2016 at 2:21 PM, Slavek Jurkowski wrote: > Thanks for the quick response. I think i’m going to just hack the name > into the dict like so as i want to preserve the dict structure and this > least bad way i see of doing

[ansible-project] Keeping ansible code and app code in sync?

2016-10-14 Thread Guy Matz
Hi! I have some ansible code that deploys an app . . . some structure of the app has changed which is reflected in the ansible code . . . I'm wondering if anyone has some good techniques for keeping versions of app code and deployment code "married" Thanks!! Guy -- You received this message

[ansible-project] "when" condition in handler is not honored

2016-06-14 Thread Guy Matz
Hi! I have a "when: condition that works fine in "regular" tasks, but not in a handler . . . is that expected? So I'm using a notify, then at the end of the handler task I have a when condition. The notification works, but it always triggers, ever when the condition is false. Here's the

Re: [ansible-project] Installing Ansible on Control Machine with Multiple Versions of Python

2016-04-21 Thread Guy Matz
use pip2.7 to install ansible On Thu, Apr 21, 2016 at 11:10 AM, wrote: > But then all utilities/programs that rely on python will use the 2.7.11 > version. I only wanted ansible to use it. > Thx > Al > > On Wednesday, April 20, 2016 at 4:10:31 PM UTC-4, Mark Janssen

[ansible-project] adding brands

2016-04-21 Thread Guy Matz
Hello! We have used ansible to deploy an app and all is well. We now need to deploy the app as two separate "branded" apps, i.e. different set of servers, new RPM name, etc., and are experiencing some growing pains . . . Anyone have any experience/wisdom to pass on? Thanks, Guy -- You

Re: [ansible-project] Variable woes

2016-03-28 Thread Guy Matz
license_key is quoted . . . try quoting app_name . . . On Mon, Mar 28, 2016 at 3:41 PM, Johannes Kastl wrote: > Am 28.03.16 schrieb Nick Walke: > > > Let me know if you have any suggestions. > > Without seeing the definition in your vars.yml people have to guess. > Can you

Re: [ansible-project] Variable woes

2016-03-28 Thread Guy Matz
oh, sorry. read that wrong! Yeah, show your vars.yml On Mon, Mar 28, 2016 at 3:43 PM, Guy Matz <guym...@gmail.com> wrote: > license_key is quoted . . . try quoting app_name . . . > > On Mon, Mar 28, 2016 at 3:41 PM, Johannes Kastl <m...@ojkastl.de> wrote: > >>

Re: [ansible-project] JSON parsing with select

2016-03-28 Thread Guy Matz
tate'] > > selectattr always returns a generator/list. > > http://jinja.pocoo.org/docs/dev/templates/#selectattr > http://jinja.pocoo.org/docs/dev/templates/#equalto > http://jinja.pocoo.org/docs/dev/templates/#first > > > On Mon, Mar 28, 2016 at 10:55 AM, Guy Matz <guy

[ansible-project] JSON parsing with select

2016-03-28 Thread Guy Matz
Hello! I get JSON like the following returned from a REST API: { "tasks" : [ { "id" : "artifactory.VirtualCacheCleanupJob#9e6619bd-1864-4e1a-9fd7-8bb138813bf1", "type" : "org.artifactory.repo.cleanup.VirtualCacheCleanupJob", "state" : "scheduled", "description" : "Virtual

[ansible-project] 1 big repo OR separate repo per app/group?

2016-02-10 Thread Guy Matz
and pitfalls of both, but can't tell which outweighs the other. Any thoughts are greatly appreciated. Regards, Guy Matz -- 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, sen

Re: [ansible-project] environment parameter

2015-11-03 Thread Guy Matz
:-) That *was* a bad test!! This looks better: - name: check env vars command: env environment: "{{wlst_env}}" register: env_out - debug: var=env_out That shows the environment I was looking for, so I guess it was the quoted-curlies - i.e, "{{ wlst_env }}" - I needed! Thanks a lot!!

Re: [ansible-project] environment parameter

2015-11-03 Thread Guy Matz
Thanks so much for your reply!! Adding the braces doesn't *seem* to help: - debug: var=wlst_env - debug: msg={{ lookup('env', 'JAVA_HOME') }} environment: "{{wlst_env}}" yields: ok: [bwi-jbmadm-g01] => { "var": { "wlst_env": { "JAVA_HOME":

[ansible-project] Re: environment parameter

2015-10-29 Thread Guy Matz
any thoughts here? :-( Thanks again . . . On Wed, Oct 28, 2015 at 4:12 PM, Guy Matz <guym...@gmail.com> wrote: > Hi! I'm trying to use the environment parameter in order to set JAVA_HOME > for a task . . . > > I have this in my vars file: > > wlst_env: > JA

[ansible-project] environment parameter

2015-10-28 Thread Guy Matz
Hi! I'm trying to use the environment parameter in order to set JAVA_HOME for a task . . . I have this in my vars file: wlst_env: JAVA_HOME: /opt/software/java/jdk1.6.0_30 and this in my tasks file: - include_vars: main.yml - debug: var=wlst_env - name: Call undeploy script command:

[ansible-project] environment parameter

2015-10-28 Thread Guy Matz
Hi! I'm trying to use the environment parameter in order to set JAVA_HOME for a task . . . I have this in my vars file: wlst_env: JAVA_HOME: /opt/software/java/jdk1.6.0_30 and this in my tasks file: - include_vars: main.yml - debug: var=wlst_env - name: Call undeploy script command:

Re: [ansible-project] Forcing a stop on failure

2015-10-22 Thread Guy Matz
, Serge van Ginderachter < se...@vanginderachter.be> wrote: > > On 21 October 2015 at 20:44, Guy Matz <guym...@gmail.com> wrote: > >> At specific points within the roles foo and bar I would like to stop the >> run if there are failures, most importantly, I do not w

[ansible-project] Forcing a stop on failure

2015-10-21 Thread Guy Matz
Hi! I have a playbook that has three plays, each one deploying software to a set of servers . . . if any of these plays fail I want the playbook to stop running. Is that what any_errors_fatal is for? It sounds like it's close, but I can't tell if in the case of multiple plays it will work as I

[ansible-project] Forcing a stop on failure

2015-10-19 Thread Guy Matz
Hi! I have a playbook that has three plays, each one deploying software to a set of servers . . . if any of these plays fail I want the playbook to stop running. Is that what any_errors_fatal is for? It sounds like it's close, but I can't tell if in the case of multiple plays it will work as I

Re: [ansible-project] Re: Ansible not pulling in group_vars

2015-07-30 Thread Guy Matz
Is that your inventory? Or your site.yml? On Thu, Jul 30, 2015 at 9:21 AM, datsun80 tim.fe...@virginhealthmiles.com wrote: Yes, the hosts folder contains the inventory files. I am calling it like so: ansible-playbook -i hosts/qa -t redis site.yml In the inventory file I have: - name:

Re: [ansible-project] Rolling deploys to groups of servers

2015-07-30 Thread Guy Matz
Great! That looks like it'll work! What's another way? ;-) Thanks, Guy On Wed, Jul 29, 2015 at 7:13 PM, Brian Coca bc...@ansible.com wrote: several, one way is: - hosts: app*_server1:app*_server2:app*_server3 serial: 3 -- Brian Coca -- You received this message because you are

[ansible-project] Rolling deploys to groups of servers

2015-07-29 Thread Guy Matz
Hello! I have the requirement to perform rolling deploys to groups of servers at a time, e.g. the first set of servers - app1_server_1, app2_server_1, app3_server1 - first, then the second set - app1_server2, app2_server2, app3_server2 - then the third set, app1_server3, app2_server3,

[ansible-project] Is it possible to access ansible facts from a custom fact!?

2015-06-30 Thread Guy Matz
Hello! I'm writing a custom fact and would like to be able to access information already provided by other ansible facts . . . anyone know if this is possible? For example, my fact will return a value based on a part of the hostname and whether or not the machine it's running on is virtual, so

[ansible-project] Escaping % signs?

2015-06-25 Thread Guy Matz
Hi! I've written a module and am bumping up against an issue when I try to include a percent sign in one of the parameters, e.g.: supervisor_prog: name: smlp-data user: smlp command: java blah-blah-blah environment: PATH='/usr/java/jdk1.8.0_11/bin:%(ENV_PATH)s' Notice the %

[ansible-project] Re: Escaping % signs?

2015-06-25 Thread Guy Matz
) ConfigParser.InterpolationMissingOptionError: Bad value substitution: section: [program:sidecar-data] option : environment key: env_path rawval : ' Any ideas? Thanks again!! On Thu, Jun 25, 2015 at 10:11 AM, Guy Matz guym...@gmail.com wrote: Hi! I've written a module and am bumping up against an issue

[ansible-project] Re: Escaping % signs?

2015-06-25 Thread Guy Matz
I figured it out!! RawConfigParser does not support the magical interpolation behavior On Thu, Jun 25, 2015 at 11:11 AM, Guy Matz guym...@gmail.com wrote: Ah! Narrowing it down, the problem is actually with the ConfigParser module . . . I have a supervisor config that has the line

[ansible-project] group_vars subdirectories

2015-06-17 Thread Guy Matz
Folks! Sorry to bring this up again. .. . I'd like to group my group vars by environment,e.g.: dev/ web db all stage/ web db all prod/ web db all Can someone please explain or point me to a doc for the rules on this? Or am i misremembering, and there's no good way to do this?

[ansible-project] ERROR: msg: this module requires key=value arguments

2015-06-11 Thread Guy Matz
Hi!! Having issues with command tasks . . . gmatz@fuzzybunny ~/Code/ansible-local $ ansible-playbook --version ansible-playbook 1.9.1 (detached HEAD b47d1d7e69) last updated 2015/06/10 17:15:55 (GMT -400) lib/ansible/modules/core: (detached HEAD d6ed6113a7) last updated 2015/06/10 10:07:33 (GMT

Re: [ansible-project] ERROR: msg: this module requires key=value arguments

2015-06-11 Thread Guy Matz
-modules-core. So the devel version of the command module is not compatible with ansible 1.9. You might want to checkout the stable-1.9 branch and re-init your submodules. On Thu, Jun 11, 2015 at 11:48 AM, Guy Matz guym...@gmail.com wrote: Hi!! Having issues with command tasks . . . gmatz

[ansible-project]

2015-06-11 Thread Guy Matz
Hi!! Having issues with command tasks . . . gmatz@fuzzybunny ~/Code/ansible-local $ ansible-playbook --version ansible-playbook 1.9.1 (detached HEAD b47d1d7e69) last updated 2015/06/10 17:15:55 (GMT -400) lib/ansible/modules/core: (detached HEAD d6ed6113a7) last updated 2015/06/10 10:07:33 (GMT

[ansible-project] facts module output in setup?

2015-01-14 Thread Guy Matz
Hello! Is it possible to get a fact module to be included in the output for the setup module using ansible, i.e. not from a play? Perhaps I'm not asking this question correctly . . . I would like to extend setup to retrieve info about my servers so that running 'ansible -m setup host' would

Re: [ansible-project] facts module output in setup?

2015-01-14 Thread Guy Matz
Thanks, yeah . . . I was hoping to not have to distribute scripts out, but rather keep them in a /library dir . . . On Wed, Jan 14, 2015 at 2:33 PM, Brian Coca bc...@ansible.com wrote: You can add a script that returns json to /etc/ansible/facts.d on the target servers, default fact gathering

[ansible-project] Are extra_vars accessible in plugins?

2014-10-06 Thread Guy Matz
Hi! Anyone know if it's possible to access extra_vars from a plugin? For example, let's say I wanted to write an ec2 inventory plugin that could grab hosts for all regions, or as specified in an extra_vars variable . . . Thanks a lot, Guy -- You received this message because you are

Re: [ansible-project] How access dictionary in a jinja2 template?

2014-10-06 Thread Guy Matz
Perhaps I'm not understanding what you're after, but this worked for me: initial_token: {{ tokens[inventory_hostname] }} On Mon, Oct 6, 2014 at 1:06 PM, skr...@gmail.com wrote: I am trying to come up with a play book to install cassandra. Here each node has a calculated token (not a random

[ansible-project] Random cows!!!!

2014-10-06 Thread Guy Matz
export ANSIBLE_COW_SELECTION='random' You're welcome! -- 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. To post to

[ansible-project] is it possible to maintain order within with_ loops?

2014-10-03 Thread Guy Matz
Hi! I have a custom iterator that needs to execute in the order specified in the data structure being passed to it. It seems, however, that the order is getting lost when it enters the looping code and gets converted to a dict. Does anyone know if there's a way to maintain the order of the

Re: [ansible-project] is it possible to maintain order within with_ loops?

2014-10-03 Thread Guy Matz
: deploy_env.keys() | sort == And then be sure to name your keys so they sort the way you need. On 10/03/2014 12:39 PM, Guy Matz wrote: not sure what you mean . . . my data comes from json that looks like this: deploy_env = { cmd_build: [ gem install rake bundler, bundle

[ansible-project] where do i put a custom iterator?

2014-10-01 Thread Guy Matz
ansible-playbook --version ansible-playbook 1.8 (devel 1d3a8bd39c) last updated 2014/09/18 10:33:54 (GMT -400) Hi! I've written a custom iterator that works when I put it in ansible/lib/ansible/runner/lookup_plugins, however I can't seem to get it found when I put it with my playbooks . . . does

Re: [ansible-project] where do i put a custom iterator?

2014-10-01 Thread Guy Matz
, so I don't believe you can embed lookup plugins in a role at this time (which you can do with modules). Thanks! On Wed, Oct 1, 2014 at 3:38 PM, Guy Matz gm...@matz.org wrote: ansible-playbook --version ansible-playbook 1.8 (devel 1d3a8bd39c) last updated 2014/09/18 10:33:54 (GMT -400) Hi

Re: [ansible-project] Fwd: no tty

2014-09-22 Thread Guy Matz
DeHaan mich...@ansible.com wrote: What problems are you having? On Fri, Sep 19, 2014 at 3:14 PM, Guy Matz guym...@gmail.com wrote: Hello! Anyone know if there is a way to specify 'no tty' for a play? I have a command that calls a script that is prompting for overwrites if it thinks

[ansible-project] regex_replace returning '\u0001'

2014-09-19 Thread Guy Matz
$ ansible-playbook --version ansible-playbook 1.8 (devel 1d3a8bd39c) last updated 2014/09/18 10:33:54 (GMT -400) Hello! This is driving me bonkers . . . can anyone see what I'm doing wrong here? Setting a var, which is fine: - name: Get VBox version for installing extension pack command:

[ansible-project] Fwd: no tty

2014-09-19 Thread Guy Matz
Hello! Anyone know if there is a way to specify 'no tty' for a play? I have a command that calls a script that is prompting for overwrites if it thinks there's a tty attached . .. I saw on the list that someone had gotten around it by using screen, but I was wondering if there was a better way.

Re: [ansible-project] regex_replace returning '\u0001'

2014-09-19 Thread Guy Matz
) complex args: args: \\ So you need to increase your slashes to a total of 4 On Fri, Sep 19, 2014 at 2:13 PM, Guy Matz guym...@gmail.com wrote: $ ansible-playbook --version ansible-playbook 1.8 (devel 1d3a8bd39c) last updated 2014/09/18 10:33:54 (GMT -400) Hello! This is driving me

[ansible-project] no tty

2014-09-18 Thread Guy Matz
Hello! Anyone know if there is a way to specify no tty for a play? I saw on the list that someone had gotten around it by using screen, but I was wondering if there was a better way. Thanks! Guy -- You received this message because you are subscribed to the Google Groups Ansible Project

[ansible-project] migrating from chef to ansible

2014-09-16 Thread Guy Matz
Hello! I need to convert a chef cookbook to ansible as part of a proof-of-concept . . . anyone have a thoughts/suggestion about the best way to go about this? any pitfalls, etc. to avoid? I've just been going through the cookbook and trying to translate 1:1, but the cookbook is full of

[ansible-project] repo best practice?

2014-09-16 Thread Guy Matz
Hello! Anyone have thoughts on how to best organize a repo for ansible? One big'un vs repo per role, etc? Thanks! -- 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

[ansible-project] Developing a vars_plugin

2014-09-11 Thread Guy Matz
Hi! Anyone have any advice on developing a vars_plugin? This may sound kinda screwy, but for a chef - ansible transition I need to access data from a chef data_bag in an ansible play . . . I'm able to get the chef data using pychef, but I'm having issues when trying to run the code within

Re: [ansible-project] Developing a vars_plugin

2014-09-11 Thread Guy Matz
in ansible.inventory.Inventory: plugin.get_group_vars plugin.run plugin.get_host_vars Also, as a heads up, this is probably a better discussion for ansible-devel. On Thu, Sep 11, 2014 at 10:27 AM, Guy Matz guym...@gmail.com wrote: Hi! Anyone have any advice on developing a vars_plugin

[ansible-project] Is there a Pattern for having one machine in a cluster perform an action?

2014-08-08 Thread Guy Matz
Hi! I have a few django servers . . . I would like to run a syncdb in my playbook, but only need/want one of the django servers in the group to run that play . . . do I need to designate a machine to run that or is there an easier way? Thanks!! -- You received this message because you are

Re: [ansible-project] Is there a Pattern for having one machine in a cluster perform an action?

2014-08-08 Thread Guy Matz
for that host list. On Fri, Aug 8, 2014 at 10:08 AM, Guy Matz guy...@gmail.com javascript: wrote: Hi! I have a few django servers . . . I would like to run a syncdb in my playbook, but only need/want one of the django servers in the group to run that play . . . do I need

[ansible-project] autoscaling_group + add_host == not possible?

2014-07-24 Thread Guy Matz
Hi! Is there any way to provision hosts built by a rax_scaling_group? Is it possible to re-read dynamic inventory midway through the run - after the servers have been built - and have them ansibled? Or is the only option to have them pull after they build? Thanks a lot! Guy -- You

Re: [ansible-project] autoscaling_group + add_host == not possible?

2014-07-24 Thread Guy Matz
wrote: If I understand correctly, this is what add_hosts is for. After you've dynamically created a host you can add it to a group and then in a subsequent play include a role that would configure that group. Is that what you're looking for? On Thu, Jul 24, 2014 at 9:43 AM, Guy Matz guy

Re: [ansible-project] autoscaling_group + add_host == not possible?

2014-07-24 Thread Guy Matz
can be lost). On Thu, Jul 24, 2014 at 10:51 AM, Guy Matz guy...@gmail.com wrote: Right, but with an auto-scaling group I don't know of a way to get the new hostnames of the servers the AS group creates . . . the new host are not returned in the output from the call to create

[ansible-project] ansible + openstack heat?

2014-07-18 Thread Guy Matz
Has anyone gotten ansible to provision a rackspace stack using a Heat template? Thanks! -- 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] Testing file upload with uri?

2014-06-10 Thread Guy Matz
files. --Michael On Mon, Jun 9, 2014 at 12:13 PM, Guy Matz gm...@matz.org javascript: wrote: That 'file:///' part is there so that the uri module can be notified that the body data is actually in a file and should be read in from disk . . . I don't really like that because it seems

Re: [ansible-project] Testing file upload with uri?

2014-06-09 Thread Guy Matz
to the 1st question of this thread, that may have been a mis-post. # if body is a file URL, e.g. 'file:///bin/false', read it in and replace the text of body with the binary contents of the file Sorry, also not following. On Fri, Jun 6, 2014 at 9:52 AM, Guy Matz guym...@gmail.com wrote

[ansible-project] Testing file upload with uri?

2014-05-29 Thread Guy Matz
Hi! Anyone know if it's possible to test the upload of a binary file using the uri module? It doesn't look like httplib2 has this functionality . . . Thanks, Guy -- You received this message because you are subscribed to the Google Groups Ansible Project group. To unsubscribe from this

[ansible-project] Re: New URI module from Romeo Theriault

2014-05-28 Thread Guy Matz
darned yaml/json . . . the space in my body was the problem! I had body='{rclass: local}' . . . needed to be body='{rclass:local}' Thanks all! -- 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: New URI module from Romeo Theriault

2014-05-27 Thread Guy Matz
Sorry to be a bother . . . can anyone say how I should be formatting the data ion my body here: - name: artifactory | TEST - create repo uri: url={{ baseurl }}/api/repositories/__test__ method=PUT user=user password=password body='{rclass: local}' force_basic_auth=yes

[ansible-project] Ansible approved playbook testing?

2014-05-23 Thread Guy Matz
Dear Ansible (Michael deHaan?), Hello! I've searched the google the mailing list for playbook testing strategies and haven't found anything that looks a consensus on how this should be done. Perhaps there are some projects, e.g. ansible-spec or ansible-cucumber, in the pipeline, but until