Re: [ansible-project] how to exit the ansible run, or handle it, when any remote node fails a task

2015-08-06 Thread Kathy Allen
Ah! Fantastic. Thank you. I put in max_fail_percentage, and the thing I wanted to happen happened. I do wonder about how to more elegantly handle one of the nodes failing, with a handler. Like something simple to start: prompt: pause here, go fix that node if you can. If you can't, ctrl-c now.

[ansible-project] how to exit the ansible run, or handle it, when any remote node fails a task

2015-08-06 Thread Kathy Allen
Hi. I'm working on some orchestration where I need to run a task across sets of N remote nodes. If that task fails on any one of the remote nodes, the orchestration needs to halt (or be handled somehow). In my test, I cause one node to fail and I expected the entire ansible run to bomb out,

[ansible-project] how to use dynamic variable set in one play as an input to a task in another play

2015-08-05 Thread Kathy Allen
Hiya. In my playbook, I have two plays: the first is to be run on the control host, the second is run on a set of remote app hosts. What I want to do is have a variable determined by a task in the first play be used as a shell script argument for a task in the second play. I don't know how to

Re: [ansible-project] how to use dynamic variable set in one play as an input to a task in another play

2015-08-05 Thread Kathy Allen
Yep. Thank you! A coworker pointed out a similar post: https://groups.google.com/forum/#!searchin/ansible-project/felix/ansible-project/C51U547IXwY/2IyoNqCZpTQJ. Sorry I didn't catch that one before I posted my question. I feared that hostvars dict created in localhost task might not be

Re: [ansible-project] Re: variable set to a default value in play vars unexpectedly becomes not the default value

2015-07-27 Thread Kathy Allen
Thank you. However, our playbooks don't use roles. For our deployment orchestration, it doesn't seem necessary, or at least it works well without them. Can anyone speak to how that variable is getting set as the playbook executes the second include? Will this absolutely not work without roles?

Re: [ansible-project] Re: variable set to a default value in play vars unexpectedly becomes not the default value

2015-07-27 Thread Kathy Allen
Thank you Brian. That's the Clue I needed. I'll rethink this... kallen -- 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] Re: variable set to a default value in play vars unexpectedly becomes not the default value

2015-07-23 Thread Kathy Allen
bump? -- 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 this group, send email to

[ansible-project] variable set to a default value in play vars unexpectedly becomes not the default value

2015-07-21 Thread Kathy Allen
Hi there, I'm using ansible 1.9.2. We don't use ansible for configuration management, but instead for deployment automation. I'm trying to set some conditions early on in a play so that the right tasks get executed under the right conditions later in the play. This play is called multiple

[ansible-project] trouble with ansible and sudo remote command

2015-04-09 Thread Kathy Allen
Hi. I hope someone can help me out here. In one of my plays, I need to have a user be able to run an ansible task which runs a command on a remote host with sudo. On the remote host, the user is allowed to run this command with root privs, per the sudoers rules. But it's not working, and it

[ansible-project] How to get newline characters to be interpreted using debug and hipchat

2015-01-27 Thread Kathy Allen
Hello. I'm trying to send output via debug and hipchat which I want to appear as multiple lines. But I'm failing. Can anyone advise? In my test below, I of course want the output to show up like this: i am a runon sentence i go on and on Here is my test play and the results. I'm using