Re: [ansible-project] Re: ETA on Ansible 2.0 ?

2016-01-11 Thread Jeff Reter
o get fixed before the final release. So we're >>> still on track for 1/12. >>> >>> James Cammarata >>> Director, Ansible Core Engineering >>> github: jimi-c >>> >>> On Thu, Jan 7, 2016 at 4:00 AM, Jeff Reter >> > wrote: >>

[ansible-project] Re: Ansible 2.0 RC2 is available for testing!

2015-12-07 Thread Jeff Reter
https://github.com/ansible/ansible/issues/13375#issuecomment-161379814 "well, in 2.0 missing tags will not error out (yet), but this does seem like an interesting corner case, it should affect empty plays and includes also." Am Montag, 7. Dezember 2015 19:31:31 UTC+1 schrieb James Cammarata:

Re: [ansible-project] Re: flag in callback if run with or without "--check"

2015-06-15 Thread Jeff Reter
n 15, 2015 at 5:30 AM, Jeff Reter > wrote: > > that was easy: > > > > self.playbook.check > > > > where is the doc for things like this? > > > > > > Am Montag, 15. Juni 2015 11:20:24 UTC+2 schrieb Jeff Reter: > >> &

Re: [ansible-project] Howto add a task from a callback

2015-06-15 Thread Jeff Reter
; general I would advice using a callback that writes to syslog (there > is an example in the repo, but it does json/syslog). For your case, if > you just want play name and user, it might be worth patching the > existing logging to add that information. > > On Tue, Jun 9, 2015 at

[ansible-project] Re: flag in callback if run with or without "--check"

2015-06-15 Thread Jeff Reter
that was easy: self.playbook.check where is the doc for things like this? Am Montag, 15. Juni 2015 11:20:24 UTC+2 schrieb Jeff Reter: > > how to tell (inside a callback), if the playbook is run with or without > "--check" > > thanks > -- You received this messag

[ansible-project] flag in callback if run with or without "--check"

2015-06-15 Thread Jeff Reter
how to tell (inside a callback), if the playbook is run with or without "--check" 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 ansible-project+uns

Re: [ansible-project] Howto add a task from a callback

2015-06-09 Thread Jeff Reter
logging on server which user, ran which playbook, when Am Dienstag, 9. Juni 2015 14:30:08 UTC+2 schrieb Brian Coca: > > what are you trying to accomplish? what is this task for? > > On Tue, Jun 9, 2015 at 2:44 AM, Jeff Reter > wrote: > > hmmm, code do no look "read o

Re: [ansible-project] Howto add a task from a callback

2015-06-08 Thread Jeff Reter
hmmm, code do no look "read only" and how can add a task, without adding it to >100 playbooks write an own "ansible-playbook" wrapper? is there any better docs than: *http://docs.ansible.com/developing_api.html* Am Mittwoch, 3. Juni 2015 18:51:30 UTC+2 schrieb Brian Coca: > > callbacks have

[ansible-project] Howto add a task from a callback

2015-06-03 Thread Jeff Reter
what is the right way to add a task to the end of a playbook from a callback i need to add a task based on an if in the callback "playbook_on_start" can you give me an example of an simlpe command taks like echo "hello" (i dont need vars) Thanks! -- You received this message because you are

[ansible-project] --list-roles like --list-task

2015-06-02 Thread Jeff Reter
Hello, is there something like "--list-roles" like "--list-task" i need to know with host (playbooks) will change if i change a role. Thanks -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving e

[ansible-project] get name path of current playbook

2015-06-02 Thread Jeff Reter
how to get the name/path of the current playbook, beeing run looking for something like a var: ansible_playbook ansible_current_playbook -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving email

Re: [ansible-project] Application rollback with ansible

2015-05-27 Thread Jeff Reter
when will v2 be stable? Am Mittwoch, 27. Mai 2015 01:09:23 UTC+2 schrieb Brian Coca: > > Look to the new v2 engine which has 'exception handling' built into task > blocks. > > > -- > Brian Coca > -- You received this message because you are subscribed to the Google Groups "Ansible Project"

Re: [ansible-project] log which playbook was use

2015-05-27 Thread Jeff Reter
but i can use: ansible.runner.Runner() ? can i give it the current inventor / host connection? Am Dienstag, 26. Mai 2015 15:39:11 UTC+2 schrieb Brian Coca: > > There is no facility for calling a module from a callback, also > callbacks always execute on 'master'. > > > -- > Brian Coca > --

Re: [ansible-project] log which playbook was use

2015-05-26 Thread Jeff Reter
+2 schrieb Jeff Reter: > > Thanks. > So there is currently no way to get the name of the playbook in a module? > > i though callbacks are for local "actions", so i can this for an "after > all" remote action, or even call a module from a callback? > &g

Re: [ansible-project] log which playbook was use

2015-05-25 Thread Jeff Reter
Thanks. So there is currently no way to get the name of the playbook in a module? i though callbacks are for local "actions", so i can this for an "after all" remote action, or even call a module from a callback? Am Freitag, 22. Mai 2015 19:24:54 UTC+2 schrieb Brian Coca: > > A module will prob

[ansible-project] log which playbook was use

2015-05-22 Thread Jeff Reter
Hello, i want to log which playbooks are use on the target server. I think for creating module that writes to /etc/ansible/facts.d and call it at the start and end of every playbook but how can i get the name of the current playbook in a module? the real problem: many many server with many man