And this is bad. This can alienate new developers. I like Python because it
have formatting standards. When I open Ansible source files in my VIM with
installed vim-syntastic, I see too much bad formatting. And I begin
formatting fixing at first, instead of writing/fixing code.
Please, let us po
first, you don't need to whitelist custom callbacks, that is only for those
shipped with ansible as they are disabled by default.
As for the error, you either need to implement all the v2 callbacks and use
that to call runner_on_ok or you need to inherit from the new callback base.
--
Br
I'm also seeing this right now.
On Friday, March 4, 2016 at 4:34:00 PM UTC-8, Gabriel Rosca wrote:
>
> Hi Guys,
>
> I have this callback script. I add callback_whitelist = inventory in
> ansible.cfg but when I an run get:
>
> [WARNING]: Failure when attempting to use callback plugin
> ( object
I have python module collect single system inventory info using print
statement and I'd like to use Ansible to collect the same information
against all inventory hosts.
I know Ansible doesn't like custom module to do print and I can return some
JSON fields using module.exit_json call. I can reg
Hi Guys,
I have this callback script. I add callback_whitelist = inventory in
ansible.cfg but when I an run get:
[WARNING]: Failure when attempting to use callback plugin
():
runner_on_ok() takes exactly 3 arguments (2 given)
Any Idea ?
#!/usr/bin/python
import os
import time
import sqlite
I have been trying to test the Cisco NXOS modules and the nxos_command is
failing and I don't understand why:
cmd.yml
---
- hosts:
- leaf-switch
gather_facts: no
tasks:
- nxos_command:
username: user
password: password
commands:
- show version
transport: nxapi
Hi .. Yes, I am running the job on the master only. I dont have any slave..
On Saturday, March 5, 2016 at 8:00:08 AM UTC+11, Dick Davies wrote:
>
> Might be a silly question, but are you sure you're running that job on
> the master and not some random slave?
>
> On 4 March 2016 at 13:32, > wrot
Hi,
Am 03.03.16 schrieb Johannes Kastl:
> I want to manage a machine running openwrt with ansible. First I got
> stuck just connecting to the machine, and I do not find the error:
[...]
> Funny enough, using the raw module to call date kinda works:
This seems to be related to dropbear. When usin
Might be a silly question, but are you sure you're running that job on
the master and not some random slave?
On 4 March 2016 at 13:32, wrote:
> HI All,
>
> I have created deployment playbook on the build server under user deploy:
> /home/deploy/playbooks/deploy.yml . And when I am running the pl
I'm trying to use a task where the filenames are determined by variables,
running into what looks like the same issue, and wondering how best to
accomplish what I want to do. I'm using Ansible 1.9.1.
Within a role, I have two task files for installing two versions of the
same component that ins
First, its not a pep8 violation, having the import at the bottom is but
that can be considered again as 'not a violation' as it improves redability
when errors happen (line number line up).
2nd it is not a real import and is already confusing, I personally much
preferred the << MODULES_BASIC >> w
Hello,
when writing ansible modules, ansible requires you to add the following
line:
from ansible.module_utils. import *
which breaks PEP8. The solution is rather simple and is proposed in the
following PR:
https://github.com/ansible/ansible/pull/14805
The patch allows you to import either
f
Hi Guys,
i just link the problem directly to the issue
https://github.com/ansible/ansible-modules-extras/issues/1791
I checked the transitions by rest api, tried to use the name, the ids,
nothing worked.
Is there anybody who can confirm that issue or give me some support on this?
Thanks
Chee
Hi Team,
We have configured ansible to perform activities on windows hosts and all
are under the same AD. But some how some of the hosts are not providing
positive ping response. Please find the response which we are getting below,
*myserver.data.log.doman.com | FAILED => the username/password
lookups (stuff after with_) execute always on the 'master' not on the
target machine, so the files have to be accessible on that path on the
machine that runs ansible.
On Fri, Mar 4, 2016 at 9:28 AM, Adrian Paraschiv <
adrian.paraschiv.mob...@gmail.com> wrote:
> Hello all,
>
> I have this part of
HI All,
I have created deployment playbook on the build server under user deploy:
*/home/deploy/playbooks/deploy.yml
*. And when I am running the playbook from the build server itself :
*ansible-playbook deploy.yml* and it runs perfectly fine. The file gets
deployed on the aap server.
Howev
Hi,
I'm struggling with 401 authentication error. I've got Windows Server 2012
R2 and Ubuntu 14.04 machine (with Ansible v2.0.0.2). I'm trying to
authenticate as test user (who belongs to Domain Admins group). This is my
inventory_windows.yml file:
[windows]
10.91.96.60 ansible_user=test@M
Hello.
On the target machine in bash profile there are lines which checks if the
bash session is interactive, then exit 0;
By that, interactive logins are prohibited (in /etc/profile). But, I can
run command by "ssh host command" or run bash by "ssh host bash -i".
When I try to use ansible agains
I've recently set up fail2ban for ssh on one of my servers
using https://galaxy.ansible.com/tersmitten/fail2ban/ . This was very
easy, and I'm loving galaxy.
Now, I'm wanting to extend fail2ban to also block IPs that have failed
basic auth checks in Apache too many times. Since all my hosts r
Hello all,
I have this part of a playbbok
- shell: echo "{{ ansible_env.CMS_PLI }}/conf/application.conf"
register: pli_loc- shell: echo "{{ ansible_env.CMS }}/conf/application.conf"
register: cms_loc- shell: "echo {{ item }}"
with_first_found:
- "{{ pli_loc.stdout }}"
- "{{ cms_lo
Actually, there is no Ansible core modules in /usr/share/ansible: they are
located in "/usr/lib/pymodules/python2.7/ansible/modules".
Since there is only one global "library" variable in
/etc/ansible/ansible.cfg, and considering the fact that it is set to
/usr/share/ansible by default, without a
The only thing that worked for me was from something I found on
Stackoverflow:
My version of it here:
sudo pip install ansible //dont need this if you have it installed of
course - I didnt as was using my git clone.
cd /etc/paths.d/
sudo touch ControlPath
sudo echo export ANSIBLE_SSH_CONTROL_PA
I should add this is Ansible 1.9.4
--
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 e
Hi,
Has anybody come across this issue with the known_hosts module.
The hostname of the box is uppercase. When I ssh to the box and add to the
known_hosts file it gets added lowercase
[root@SPOBKJJUMPBOX ansible]# ssh SPOBKJLOGSVR
The authenticity of host 'spobkjlogsvr (10.X.202)' can't be
24 matches
Mail list logo