>
> .
>
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
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
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
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 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
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
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
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
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
=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:
> >
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
>
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,
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
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
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
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
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
Let met clarify. This is my output.
ok: [localMulti1] => {
"variable": {
...
"stdout": "true",
...
}
}
ok: [localMulti2] => {
"variable": {
...
"stdout": "false",
...
}
}
ok: [localMulti3] => {
"variable": {
...
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'
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
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,
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
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",
...
>
> 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
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
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.
26 matches
Mail list logo