Re: [ansible-project] Ansible process email

2018-02-08 Thread Brian Coca
I used to have Ansible triggered from a procmail file, so not really reading, but procmail reading after MDA and calling Ansible. -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and

Re: [ansible-project] Reusing custom action plugin across multiple custom modules

2018-02-08 Thread Brian Coca
use symlink from single 'action module' to the other names. -- -- Brian Coca -- 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] printing readable error message while in playbook debug mode

2018-02-08 Thread Tim Black
My issue isn't about whats wrong with my code, its a question about why ansible debugger wont print the newlines in a python string. On 8 Feb 2018 12:31, "Kai Stian Olstad" wrote: > On Thursday, 8 February 2018 21.18.03 CET Tim Black wrote: > > The error appears

[ansible-project] Re: junos_command

2018-02-08 Thread Ganesh Nalawade
> *AnsibleError: ncclient is not installed* Please install ncclient and retry. Command to install ncclient using pip: # pip install ncclient Regards, Ganesh On Friday, 9 February 2018 04:00:01 UTC+5:30, Gennadiy Krokodilov wrote: > > Boker Tov Asaf, did you managed to solve it? > > I have

Re: [ansible-project] In a loop everything executes at the same time?

2018-02-08 Thread Brian Coca
No, in a loop everything executes sequentially, but EACH host executes their own version of the task AND the loop in parallel. debug will give you misleading results as it is a 'local' process and probably finishes before other forks can start, once you intorduce the delay of remote

[ansible-project] remove previously used remote_user (possibly ControlMaster, ControlPersist problem)

2018-02-08 Thread 'Davide' via Ansible Project
Hi all, to setup raspberry pis I would like to use the following palybooks (the actual yaml is at the end). 1. with remote_user=defaultuser, become and add newuser 2. with remote_user=newuser, become and delete defaultuser If I play this with some docker container as target it works but if

[ansible-project] Failure on only one server running ansible playbook for key/user management

2018-02-08 Thread Joe G
I'll preface this by saying I'm novice to ansible and certainly not a linux expert so I might need extra details if you ask me to do anything, so please be specific with instructions. This has been working flawlessly in the past. I believe last week apt-get update and upgrade were run on the

[ansible-project] Re: junos_command

2018-02-08 Thread Gennadiy Krokodilov
Boker Tov Asaf, did you managed to solve it? I have exactly the same problem with ex4200 and Ansible 2.3.3. netconf is enabled on port 830 and accessible: *[ playbooks]# ssh -s -p 830 ansible@juniper_12 netconf* *Welcome to Juniper ex4300-48t * *Password:* ** ** ** * * *

[ansible-project] In a loop everything executes at the same time?

2018-02-08 Thread Guillem Sola
I want to limit the number of parllel executions for a certain task inside a playbook (I have some constrains with downloading artifacts) In that way the rest of tasks wil execute in all hosts at the same time but when the download task executes it will be limited to batches of N. For this I'm

Re: [ansible-project] printing readable error message while in playbook debug mode

2018-02-08 Thread Kai Stian Olstad
On Thursday, 8 February 2018 21.18.03 CET Tim Black wrote: > The error appears to have been in > '/home/pi/Source/ansible/playbooks/post-preseeded-debian-install.yml': line > 27, column 7, but may > be elsewhere in the file depending on the exact syntax problem. So this is a strong indication

[ansible-project] printing readable error message while in playbook debug mode

2018-02-08 Thread Tim Black
I get this error when I run my playbook (with debug strategy enabled): TASK [Add authorized keys for developer user]

[ansible-project] Ansible Tower can't reach SCM source or remote host.

2018-02-08 Thread Pranav Baitule
Hello, I have installed Ansible Tower on Ubuntu using Windows Subsystem for Linux. Starting an SCM update or running a playbook against a remote host gives me the following error - Can't create signalfd: Function not implemented Failed to make / slave: Invalid argument How can I fix

Re: [ansible-project] How to loop over result and retry in the same task?

2018-02-08 Thread Brian Coca
you CAN retry the first task, use until condition, i dont see a block of tasks ... -- -- Brian Coca -- 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] How to log what a perl script does,called from an Ansible shell module?

2018-02-08 Thread ZillaYT
I implemented your chdir idea and it worked for me. I like it better anyway. Thanks! On Thursday, February 8, 2018 at 12:08:51 PM UTC-5, Matt Martz wrote: > > It is likely because you need to add a `;` after your `cd`. Otherwise I'm > guessing it's being interpreted wrong. > > I'd expect

Re: [ansible-project] How to log what a perl script does,called from an Ansible shell module?

2018-02-08 Thread ZillaYT
No the pipe "|" after the shell command will execute the commands as they are listed, I've done it a million times. I will try your suggestion though. On Thursday, February 8, 2018 at 12:08:51 PM UTC-5, Matt Martz wrote: > > It is likely because you need to add a `;` after your `cd`. Otherwise

[ansible-project] YAML code to list yum repositories and yum history using yum module.?

2018-02-08 Thread Mohan Ganesan
I would like to explore yum module in my yaml code. I am looking for a YAML code to list yum repositories and yum history using yum module. Are the commands yum repolist & yum history built on the yum module? Please let me know. Thanks. -- You received this message because you are subscribed to

[ansible-project] Ansible process email

2018-02-08 Thread timothy.n.mcgibbon via Ansible Project
Has anyone have done email reading using Ansible. I am working on a project that is sending out email with a link to the task that the Ansible Tower would schedule a job to run. The email could be the trigger or the Ansible process could check its email queue at an interval or any other

Re: [ansible-project] How to log what a perl script does,called from an Ansible shell module?

2018-02-08 Thread Matt Martz
It is likely because you need to add a `;` after your `cd`. Otherwise I'm guessing it's being interpreted wrong. I'd expect `install_rc` to show something though, likely indicating what the problem is. Also, instead of using `cd`, look at using `chdir` instead: shell: /usr/local/perl

[ansible-project] Re: Ansible on CENTOS VM SSH failing

2018-02-08 Thread ZillaYT
Have you set up your ssh keys between the two hosts, i.e., the user running Ansible and the target host? What happens if you just try to ssh to the target host? On Wednesday, February 7, 2018 at 6:27:39 AM UTC-5, Alfredo Bosca Bataller wrote: > > Hi gents, > > After installing ansible and

[ansible-project] How to log what a perl script does,called from an Ansible shell module?

2018-02-08 Thread ZillaYT
I'm trying to automate installation of gitsyncd and gitmirrord applications via download of the git-syncing.git repository, which installs a /tmp/git-sync/install.pl PERL script. I then run the following: - name: Install git-sync services shell: | cd /tmp/git-sync /usr/local/perl

Re: [ansible-project] Ansible reporting wrong service status

2018-02-08 Thread Kai Stian Olstad
On Thursday, 8 February 2018 16.26.07 CET Sidh wrote: > Ansible - 2.4 > > With below snippet, service failed to start at remote host but ansible > reports that lighttpd service has been restarted and ok. > > > > - name: lighttpd config file > template: >

[ansible-project] Ansible reporting wrong service status

2018-02-08 Thread Sidh
Ansible - 2.4 With below snippet, service failed to start at remote host but ansible reports that lighttpd service has been restarted and ok. - name: lighttpd config file template: src: lighttpd.conf.j2 dest: /etc/lighttpd/lighttpd.conf

Re: [ansible-project] How to loop over result and retry in the same task?

2018-02-08 Thread Eric Chong
But I want to retry the first task until expected result. I don't see a way for Ansible to retry a bock of tasks. On Tuesday, February 6, 2018 at 12:31:16 PM UTC-5, Brian Coca wrote: > > you cannot loop over the results of your task that is generating those > results, you CAN loop over the

[ansible-project] Ansible vmware_guest creates vmware vm, but hostname does not changes. Also creates a additional junk folder

2018-02-08 Thread Ajay Sharma
HI Everyone. this Ansible yaml script creates vmware vm from previous template, but does not changes its host name. also creates a additional folder named

[ansible-project] How Ansible Works?

2018-02-08 Thread lucie lina
There are many similar automation tools available like Puppet, Capistrano, Chef, Salt, Space Walk etc, but Ansible categorize into two types of server: controlling machines and nodes. The controlling machine, where Ansible is installed and Nodes are

[ansible-project] Re: errors in backing up a config from a juniper device

2018-02-08 Thread 'Daley Okuwa' via Ansible Project
another error message ansible@ansible-new:/etc/ansible$ tail -f ansible.log 2018-02-08 09:21:54,543 p=26612 u=ansible | socket operation completed with rc 0 2018-02-08 09:21:54,543 p=26612 u=ansible | socket operation is RUN 2018-02-08 09:21:54,543 p=26612 u=ansible | socket operation

[ansible-project] Unable to use specified private key when connecting as a different user

2018-02-08 Thread 0lai . m . mariano
Scenario - I am logged in to my Ansible server as “0lai” but would like to run my testPlay.yml as a different user (“ansible”) so I used the —user option. However, I don’t know user ansible’s password and would like to make it a passwordless run. I used thee —key-file option and provided the