Re: [ansible-project] When will Ansible 2.3 be released?

2017-03-16 Thread Kevin Csuka
> > . > https://github.com/ansible/ansible/blob/devel/ROADMAP.rst -- 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] Install package for point release

2017-01-04 Thread Kevin Csuka
Dang, thought you could come up with a solution :) You're an expert. But thanks for the reply. I'll find my way and create something creative. -- 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] Re: Install package for point release

2017-01-03 Thread Kevin Csuka
Someone? -- 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] Re: OSError: [Errno 32] Broken pipe

2017-01-03 Thread Kevin Csuka
Anyone? -- 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] OSError: [Errno 32] Broken pipe

2016-12-30 Thread Kevin Csuka
Ansible version: 2.1.2.0 My task: - name: "Managing groups with gid set" become: true group:name: "{{ item.value.name }}"state: "{{ item.value.state | default('present')}}" system: "{{ item.value.system | default('no')}}"gid: "{{ item.value.gid }}" with_dict: "{{ ssh_groups

[ansible-project] Re: Install package for point release

2016-12-29 Thread Kevin Csuka
Any epic guru's? -- 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] Re: Ansible to output which host a task is running on

2016-12-29 Thread Kevin Csuka
Callback plugin is used after a play is finished. Good question tho. Don't know how. On Saturday, December 24, 2016 at 9:24:34 PM UTC+1, Mumshad Mannambeth wrote: > > Ansible prints information whenever a task starts, but doesn't print > information on which host it is running currently. is

[ansible-project] Install package for point release

2016-12-29 Thread Kevin Csuka
Actual package name in the repo is package-2.6.12-3.el7.x86_64. The goal is to install a package with Ansible, to: - * Ensure the point release is installed, such as package-2.2 - * Doesn't install major releases, such as package-3.0 - * Updates for minor releases, such as

Re: [ansible-project] Re: How to perform tasks only one host, based on previous output

2016-12-17 Thread Kevin Csuka
Erhm, the solution is in the quoted text.. Here is a copy/paste: On node 2 and 3 perform: $: touch /tmp/hi tasks: - stat: path: /tmp/hi register: me - set_fact: run_on: "{{ item }}" with_items: "{{ play_hosts }}" when: run_on is

Re: [ansible-project] Re: How to perform tasks only one host, based on previous output

2016-12-17 Thread Kevin Csuka
=0 On Friday, December 16, 2016 at 11:29:39 PM UTC+1, Kai Stian Olstad wrote: > > On 16. des. 2016 19:12, Kevin Csuka wrote: > > Here is a playbook to test it locally. > > --- > > - hosts: my-3-nodes > > tasks: > > - stat: > >

Re: [ansible-project] Re: How to perform tasks only one host, based on previous output

2016-12-17 Thread Kevin Csuka
This will FAIL the task at node 1, which is in no way desired. That is no real solution. Also, after 'othertask' has been run, I'd like to perform other tasks on node 1. On Friday, December 16, 2016 at 9:37:45 PM UTC+1, Brian Coca wrote: > > last time i explain this: > > - script: myscript >

Re: [ansible-project] Re: How to perform tasks only one host, based on previous output

2016-12-16 Thread Kevin Csuka
No it does not. run_once will only perform a task on node1, therefor skip the task. Please re-check in a local environment. -- 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,

Re: [ansible-project] Re: How to perform tasks only one host, based on previous output

2016-12-16 Thread Kevin Csuka
Not what I desire, because it will perform the task on both 2 and 3. I only desire to perform a task on 2 OR 3. -- 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

Re: [ansible-project] Re: How to perform tasks only one host, based on previous output

2016-12-16 Thread Kevin Csuka
That would still perform it only on host 2 and 3. Goal: perform task only one node 2 or 3 where the output is, in this case, true. Thank you so much for your support :) -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from

Re: [ansible-project] Re: How to perform tasks only one host, based on previous output

2016-12-16 Thread Kevin Csuka
Here is a playbook to test it locally. --- - hosts: my-3-nodes tasks: - stat: path: /tmp/hi register: me - shell: echo when: me.stat.exists == true and ... On node 2 and 3 perform: $: touch /tmp/hi -- You received this message because you are subscribed to

Re: [ansible-project] Re: How to perform tasks only one host, based on previous output

2016-12-16 Thread Kevin Csuka
Nodes are excluded from a play when they fail. This is not the desired output. I don't want to fail a task, I want it set-up as it should. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving

Re: [ansible-project] Re: How to perform tasks only one host, based on previous output

2016-12-16 Thread Kevin Csuka
Hihi, you're right. My bad, meant run_once will always run on the 1st node. Anyway... On Thursday, December 15, 2016 at 5:12:03 PM UTC+1, Brian Coca wrote: > > >How can I configure ansible to perform only a task on the second node, > where the stdout is false. Not the third node > > Run_once

Re: [ansible-project] Re: How to perform tasks only one host, based on previous output

2016-12-15 Thread Kevin Csuka
Let met clarify. This is my output. ok: [localMulti1] => { "variable": { ... "stdout": "true", ... } } ok: [localMulti2] => { "variable": { ... "stdout": "false", ... } } ok: [localMulti3] => { "variable": { ...

Re: [ansible-project] Re: How to perform tasks only one host, based on previous output

2016-12-15 Thread Kevin Csuka
That task would still run on only the first host, and not the second. Run_once will only perform the task on the first host... On Thursday, December 15, 2016 at 3:58:47 PM UTC+1, Brian Coca wrote: > > Then just fail the 'true' host and now you can use run once with > confidence only 'false'

Re: [ansible-project] Re: How to perform tasks only one host, based on previous output

2016-12-15 Thread Kevin Csuka
t; > Something like the above? Or maybe you could look into using delegated > tasks http://docs.ansible.com/ansible/playbooks_delegation.html#delegation > > Kind Regards > > On Thursday, 15 December 2016 08:01:14 UTC, Kevin Csuka wrote: >> >> Sorry if my message w

Re: [ansible-project] Re: How to perform tasks only one host, based on previous output

2016-12-15 Thread Kevin Csuka
Sorry if my message was unclear. The goal is to perform 'othertask' on only ONE host, where the value is false. Your script will execute 'othertask' on ALL the hosts where the value is false, in this case, TWO hosts. Also, run_once will not work because it will only run on the first host,

[ansible-project] Re: How to perform tasks only one host, based on previous output

2016-12-09 Thread Kevin Csuka
No guru's who can reply? -- 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] How to perform tasks only one host, based on previous output

2016-12-08 Thread Kevin Csuka
Hi, My goal is to perform tasks only one host based on the output. Searched for --limit module to use in playbooks, but it is not present. A shell script is executed on 3 nodes, which returns a boolean. ok: [localMulti1] => { "variable": { ... "stdout": "true", ...

[ansible-project] Re: Trying to put output in Sqlite3

2016-06-09 Thread Kevin Csuka
> > Found the answer: > from ansible.plugins.callback import CallbackBase import os import time import sqlite3 dbname = './test.db' TIME_FORMAT='%Y-%m-%d %H:%M:%S' try: con = sqlite3.connect(dbname) cur = con.cursor() cur.execute('CREATE TABLE `test3` (`now` TEXT, `host` TEXT

[ansible-project] Re: Trying to put output in Sqlite3

2016-06-09 Thread Kevin Csuka
Anyone? Op dinsdag 7 juni 2016 15:05:36 UTC+2 schreef Kevin Csuka: > > Hi, > > I'm kinda new to Ansible, love the program so far. > > I want two facts, hostname and serial number,in a Sqlite database. I'm > trying to achieve it with the callback plugin, which is written

[ansible-project] Trying to put output in Sqlite3

2016-06-07 Thread Kevin Csuka
Hi, I'm kinda new to Ansible, love the program so far. I want two facts, hostname and serial number,in a Sqlite database. I'm trying to achieve it with the callback plugin, which is written in Python. I came across this website and applied his Python code on my machine.