[ansible-project] Ansible 2.3.2 RC5 is available for testing

2017-08-01 Thread James Cammarata
Hi all, we're happy to announce that Ansible 2.3.2 RC5 is available for testing. A list of fixes can be found in the CHANGELOG here: https://github.com/ansible/ansible/blob/v2.3.2.0-0.5.rc5/CHANGELOG.md#bugfixes How do you get it?

Re: [ansible-project] usr/bin/which: no ansible in (/sbin:/bin:/usr/sbin:/usr/bin)

2017-08-01 Thread Jean-Yves LENHOF
Le 02/08/2017 à 00:18, Sruthi Ramesh Vani a écrit : > Hi > I am trying to install it in RHEL7 and new ansible With the new version of RHEL 7.4 released today, ansible is in Extra Channel Perhaps easier to install for you Regards, JYL -- You received this message because you are

Re: [ansible-project] usr/bin/which: no ansible in (/sbin:/bin:/usr/sbin:/usr/bin)

2017-08-01 Thread Sruthi Ramesh Vani
Hi I am trying to install it in RHEL7 and new ansible On Tuesday, August 1, 2017 at 3:04:51 PM UTC-7, Dick Visser wrote: > > On 1 August 2017 at 22:03, Sruthi Ramesh Vani > wrote: > > I followed the installation doc from : > >

Re: [ansible-project] usr/bin/which: no ansible in (/sbin:/bin:/usr/sbin:/usr/bin)

2017-08-01 Thread Dick Visser
On 1 August 2017 at 22:03, Sruthi Ramesh Vani wrote: > I followed the installation doc from : > http://docs.ansible.com/ansible/latest/intro_installation.html > But I get the error "usr/bin/which: no ansible in > (/sbin:/bin:/usr/sbin:/usr/bin)" ? That site lists a lot of

[ansible-project] usr/bin/which: no ansible in (/sbin:/bin:/usr/sbin:/usr/bin)

2017-08-01 Thread Sruthi Ramesh Vani
I followed the installation doc from : http://docs.ansible.com/ansible/latest/intro_installation.html But I get the error "usr/bin/which: no ansible in (/sbin:/bin:/usr/sbin:/usr/bin)" ? -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To

[ansible-project] ansible testing using docker

2017-08-01 Thread gitted
Hi, How do you guys use docker with ansible to test out your playbooks? Does it take a long time to spin up the image and install things? I'm curious if the workflow is any different than just using vagrant/virtualbox. I am currently doing it the iterative way using a real cloud server but

Re: [ansible-project] lock in linenifile please!!

2017-08-01 Thread jerry
Explain to me how this works when this is the same role playbook? I want this to be part of what is checked every time the role is run. jerry On Tuesday, August 1, 2017 at 11:48:27 AM UTC-7, Kai Stian Olstad wrote: > > On 01. aug. 2017 19:42, je...@soundhound.com wrote: > > Here's the

Re: [ansible-project] Install Openstack-Nova ocata using ansible but with RPMs

2017-08-01 Thread Kai Stian Olstad
On 01. aug. 2017 20:50, Sruthi Ramesh Vani wrote: Hi, I am new to OpenStack .I want to install Openstack-Nova ocata using Ansible but not using containers, but with rpms. Where should I start? I couldn't find the support for rpms. Check out the yum module. -- Kai Stian Olstad -- You received

[ansible-project] Install Openstack-Nova ocata using ansible but with RPMs

2017-08-01 Thread Sruthi Ramesh Vani
Hi, I am new to OpenStack .I want to install Openstack-Nova ocata using Ansible but not using containers, but with rpms. Where should I start? I couldn't find the support for rpms. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To

Re: [ansible-project] lock in linenifile please!!

2017-08-01 Thread Kai Stian Olstad
On 01. aug. 2017 19:42, je...@soundhound.com wrote: Here's the situation I need it for: I have my ansible machine as my dhcp server as well. When I add a new network device, the role for the device generate a dhcp line with ansible for zero touch provisioning. I do this by first going a set_fact

[ansible-project] Network Module Mapping/Documentation for 2.3+

2017-08-01 Thread brandon
Hi, Does documentation exist anywhere on how the various Network modules work together in 2.3+? I'm looking for something more technical than just how to use the modules and instead am looking to map out the interdependencies with all the module_utils and plugins. Use case: I use Ansible

[ansible-project] Re: Print output in human readable format

2017-08-01 Thread Daniel JD
Give an example please. Which output did you expected and what did you actually got? Am Dienstag, 1. August 2017 18:49:02 UTC+2 schrieb Ted Meller: > > Im having troube in Ansible 2.3.0 to print out my output in a human > format. Currently everything comes out as one line. below is a sample of

[ansible-project] Ansible: How to inherit between commands in a with_items loop

2017-08-01 Thread Ryan
I am creating a playbook that requires sending multiple commands. It looks like one reasonable way to do this is to use a with_items loop. Is this correct? If so, the commands are all needed by the final command, but the commands do not seem to inherit what is set before them, such as

[ansible-project] Re: How to mount partition when NTFS only

2017-08-01 Thread Gilberto Valentin
I got a bit further. I was able to add the following: tasks: - name: Install jmespath via pip if missing pip: name: jmespath - name: check for hard drive devices setup: filter: ansible_devices tags: - test - name: get device info

[ansible-project] lock in linenifile please!!

2017-08-01 Thread jerry
Hi, I desperately need https://github.com/ansible/ansible-modules-core/issues/2769. It has been languishing for a year and not been pulled. I was hoping it could get pulled to devel. It's a combination of connection: local, running in a role and lineinfile that seems to be deadly for me, and

Re: [ansible-project] updating JIRA using ansible playbooks

2017-08-01 Thread Guy Matz
see http://docs.ansible.com/ansible/latest/uri_module.html for an example On Tue, Aug 1, 2017 at 6:12 AM, anoop vc wrote: > I am a beginner in ansible and getting the below error while trying to > update an issue in JIRA using a playbook. Can anyone help > > > ERROR!

[ansible-project] Print output in human readable format

2017-08-01 Thread Ted Meller
Im having troube in Ansible 2.3.0 to print out my output in a human format. Currently everything comes out as one line. below is a sample of my yaml output. register: output - name: show output debug: var: output.stdout -- You received this message because you are

Re: [ansible-project] Incorrect sudo password on HP-UX

2017-08-01 Thread mark . tovey
The debug output from when I ANSIBLE_KEEP_REMOTE_FILES=1 is significantly different from when I do not set that: sinuid06-> ANSIBLE_KEEP_REMOTE_FILES=1 ansible sinuid02 -sK -m ping - Using /InfraRepo/Ansible/config/ansible.cfg as config file SUDO password: Loading callback plugin

Re: [ansible-project] Incorrect sudo password on HP-UX

2017-08-01 Thread mark . tovey
- did not show anything that was helpful: sinuid06-> ansible sinuid02 -sK -m ping - Using /InfraRepo/Ansible/config/ansible.cfg as config file SUDO password: Loading callback plugin minimal of type stdout, v2.0 from

Re: [ansible-project] How to use a variable as index to an array

2017-08-01 Thread Kai Stian Olstad
On 01. aug. 2017 17:53, Joseph Murdock wrote: I am trying to figure out the correct syntax for using a variable as an index to an array: - set_fact: cnt: "{{ response.stdout_lines | count - 1 }}" # filename: "{{ response.stdout_lines[3] }}" filename: "{{

Re: [ansible-project] Variable Definition

2017-08-01 Thread Kai Stian Olstad
On 01. aug. 2017 17:48, SARANYA devotional R wrote: vars: host: [ 'xyz', 'gvv' ] tasks: - name: check ping shell: ping -c 2 {{ host }} >> /tmp/test with_items: host You need to use {{ item }} in the ping command not {{ host }}. -- Kai Stian Olstad -- You received

[ansible-project] How to use a variable as index to an array

2017-08-01 Thread Joseph Murdock
Hello, I am trying to figure out the correct syntax for using a variable as an index to an array: - set_fact: cnt: "{{ response.stdout_lines | count - 1 }}" # filename: "{{ response.stdout_lines[3] }}" filename: "{{ response.stdout_lines[{{cnt|int}}] }}" The hardcoded

Re: [ansible-project] Incorrect sudo password on HP-UX

2017-08-01 Thread mark . tovey
On Tuesday, August 1, 2017 at 6:51:26 AM UTC-7, Toshio Kuratomi wrote: > > Not sure the answer to your question but you can get some more information > from ansible that may help. > > Use -v as an option and you'll see a printout of what command lines > ansible is trying to run over the

Re: [ansible-project] RuntimeError: maximum recursion depth exceeded while calling a Python object

2017-08-01 Thread Toshio Kuratomi
Hi, I'm sorry but ansible-1.9.4 is no longer being worked on. So I'm probably not able to fix any bugs that you might have there. Are you able to update to the latest release (2.3.1 at the moment) and try again there? If you're getting a maximum recursion error there, opening a bug report on

Re: [ansible-project] Ansible Tower setup problem.

2017-08-01 Thread Andrew Latham
For tower questions and support please utilize https://access.redhat. com/products/ansible-tower-red-hat This mailing list is for the open source Ansible project. On Tue, Aug 1, 2017 at 9:53 AM, wrote: > Hello. > > I need to install Ansible Tower into Debian

[ansible-project] Ansible Tower setup problem.

2017-08-01 Thread m . a . kalistratov
Hello. I need to install Ansible Tower into Debian 3.16.39-1+deb8u2 (also tryed Debian 4.9.30-2+deb9u2), so I ran ./setup.sh, but get the following problem: ./setup.sh: 11: set: Illegal option -o pipefail When I try to delete set -o pipefail or change it to set

Re: [ansible-project] Incorrect sudo password on HP-UX

2017-08-01 Thread Toshio Kuratomi
Not sure the answer to your question but you can get some more information from ansible that may help. Use -v as an option and you'll see a printout of what command lines ansible is trying to run over the ssh connection. -Toshio On Mon, Jul 31, 2017 at 12:55 PM, wrote:

Re: [ansible-project] command_warnings fails in 2.3.0?

2017-08-01 Thread Stéphane M
test with ansible 2.3.1.0 on Fedora 24: > ansible-playbook -i hosts test.yml PLAY [all] TASK [command]

Re: [ansible-project] Error restore snapshots ovirt ansible

2017-08-01 Thread Kai Stian Olstad
On 01. aug. 2017 15:08, Antonio Jimenez Ramirez wrote: I have the next playbooks: - ovirt_snapshots: auth: "{{ ovirt_auth }}" state: restore vm_name: dlitest02 snapshot_id: "{{ snapshot.id }}" but when i run the playbook the

Re: [ansible-project] command_warnings fails in 2.3.0?

2017-08-01 Thread Stéphane M
In fact, I think there is actually an issue in 2.3.0.0 and 2.3.1.0: the warnings are removed from the ansible log of the control machine *but NOT from the syslog of the managed machines.* Stéphane On Tuesday, August 1, 2017 at 3:01:14 PM UTC+2, Stéphane M wrote: > > My test seems broken. > I

[ansible-project] Error restore snapshots ovirt ansible

2017-08-01 Thread Antonio Jimenez Ramirez
I have the next playbooks: - ovirt_snapshots: auth: "{{ ovirt_auth }}" state: restore vm_name: dlitest02 snapshot_id: "{{ snapshot.id }}" but when i run the playbook the error is: TASK [ovirt_snapshots]

Re: [ansible-project] command_warnings fails in 2.3.0?

2017-08-01 Thread Stéphane M
My test seems broken. I think it works actually. Sorry for spamming. On Tuesday, August 1, 2017 at 2:33:05 PM UTC+2, Kai Stian Olstad wrote: > > On 01. aug. 2017 14:09, Stéphane M wrote: > > It seems to me that command_warnings > > < >

[ansible-project] Re: Not able to ping windows machine through Ansible (winrm using credential option as CredSSP is being used)

2017-08-01 Thread toversus26
I think you should run powershell script on your windows machine with -EnableCredSSP option like below. powershell.exe -File ConfigureRemotingForAnsible.ps1 -EnableCredSSP If you have already do this, it is helpful to run ansible module with -v option. ansible windows -m win_ping -v

Re: [ansible-project] command_warnings fails in 2.3.0?

2017-08-01 Thread Kai Stian Olstad
On 01. aug. 2017 14:09, Stéphane M wrote: It seems to me that command_warnings works fine with ansible-2.2.1.0 but not in 2.3.0.0 nor 2.3.1.0 Is anybody experiencing the same issue? Can't confirm this with

[ansible-project] command_warnings fails in 2.3.0?

2017-08-01 Thread Stéphane M
Hello, It seems to me that command_warnings (http://docs.ansible.com/ansible/latest/intro_configuration.html#command-warnings ) works fine with ansible-2.2.1.0 but not in 2.3.0.0 nor 2.3.1.0 Is anybody

[ansible-project] How do you manage your git repository when you use public Ansible recipes like Ceph-Ansible or OpenShift-Ansible?

2017-08-01 Thread Stéphane Klein
Hi, I use Ceph-Ansible (https://github.com/ceph/ceph-ansible) and OpenShift-Ansible (https://github.com/openshift/openshift-ansible) to install this stuffs on our servers. I would like to keep my configuration in a private Git repository. For now, I use a private repository with this

[ansible-project] updating JIRA using ansible playbooks

2017-08-01 Thread anoop vc
I am a beginner in ansible and getting the below error while trying to update an issue in JIRA using a playbook. Can anyone help ERROR! 'jira' is not a valid attribute for a Play I am using the below ansible version: [ansible@bitbucket playbooks]$* ansible --version* /usr/bin/ansible:26:

[ansible-project] Re: Using docker_* modules on Windows

2017-08-01 Thread Yuriy Ostapenko
Thanks, I'm running @devel. I'm new to Ansible. I _did_ read that running control machine on Windows is a non-goal, but do you maybe know if running python modules (given python is present) is? On Tuesday, August 1, 2017 at 10:32:43 AM UTC+2, Jordan Borean wrote: > > The docker modules won't

Re: [ansible-project] Remove '^#' comments from lookup(file)

2017-08-01 Thread Dick Visser
For this you will need a multiline matching regular expression. This flag isn't something that you can set with the ansible filter. Instead, you have to use a somewhat obscure feature of python re module, namely inline modifiers. See https://docs.python.org/2/library/re.html, the "(?iLmsux)" part.

Re: [ansible-project] Remove '^#' comments from lookup(file)

2017-08-01 Thread 'Thorsten Scheurer' via Ansible Project
Hello, thanks for your answer. When i remove the '^' it will be removed everywhere in the stream. My goal is just to remove all lines beginning with '#'. Do you know how can i do that? 2017-07-31 21:18 GMT+02:00 Kai Stian Olstad : > On 31. juli 2017 17:10,

[ansible-project] Re: Install Docker on Windows Server 2016 using win_shell module

2017-08-01 Thread Jordan Borean
It's interesting that is worked over a PSSession but still failed with Ansible. PSSession is run over WinRM which is the same protocol Ansible uses so if it didn't fail there there must be something else going on. -- You received this message because you are subscribed to the Google Groups

[ansible-project] Using docker_* modules on Windows

2017-08-01 Thread Jordan Borean
The docker modules won't run on a Windows host as they are written in Python and Windows runs Powershell modules. The error does seem to indicate something else is wrong but you won't be able to do this regardless. Are you on a particular version or are you just running from devel? Thanks

[ansible-project] Re: Best practice to change root pass

2017-08-01 Thread Cev Ing
Am Montag, 31. Juli 2017 23:10:01 UTC+2 schrieb Daniel Cure: > > what is the best method for changing root password in linux redhat env. > > Probably the user module. http://docs.ansible.com/ansible/latest/user_module.html But the problem with the user module is, that it is quite hard the

[ansible-project] Not able to ping windows machine through Ansible (winrm using credential option as CredSSP is being used)

2017-08-01 Thread Soniya panwar
Hi I am running ansible 2.3.1.0 on centos7. The host(windows) machine is windows 8 with powershell. I have installed pywinrm[credssp] (Authentication method credSSP is being used) on centos and included windows hostnames in the inventory file. Below are the settings in group variables file: