Re: [ansible-project] purestorage sdk missing

2019-04-06 Thread Kai Stian Olstad
On 07.04.2019 05:09, Lucas Possamai wrote: It is definitely a Python problem than Ansible. [root@db2 ~]# /usr/bin/python -c 'import sys; print sys.path; import purestorage' ['', '/usr/lib64/python26.zip', '/usr/lib64/python2.6', '/usr/lib64/python2.6/plat-linux2',

[ansible-project] Re: regex_replace filter

2019-04-06 Thread Sri Krishna G
Please ignore this issue. It was a mistake in the next part of the play book that is causing the port to come twice. On Sunday, April 7, 2019 at 1:03:34 AM UTC+5:30, Sri Krishna G wrote: > > I have a list of strings like : > > [hosts] > 10.100.0.1 > 10.100.0.2 > 10.100.0.3 > > I am following

Re: [ansible-project] purestorage sdk missing

2019-04-06 Thread Lucas Possamai
On Sun, 7 Apr 2019 at 01:32, Kai Stian Olstad < ansible-project+l...@olstad.com> wrote: > On 06.04.2019 13:20, Lucas Possamai wrote: > >> > >> Or just keep "hosts: dbservers" and add "delegate_to: localhost" on > >> the > >> purefa_snap task. > >> Then you don't have to deal the SDK on the remote

[ansible-project] cannot get this playbook to work with inventory file

2019-04-06 Thread Tony Wong
I am having an issue with ansible/vmware. Trying to clone vms from an inventory file and playbook inventory file: [test-vms] ans-test[01:05] 'disk'='60' 'memory'='2048' 'cpucount'='1' 'datastore'='VOL1-TEST' 'osid='windows9Server64Guest' playbook yml file: vars_prompt: - name:

[ansible-project] Re: ssh transport and windows

2019-04-06 Thread Jordan Borean
Until you upgrade to Ansible 2.8 (currently has an alpha1 release) this won’t work. Experimental support for using SSH with Windows was added with https://github.com/ansible/ansible/pull/47732. Be aware that this is experimental and if you want something more solid then I advise that you

[ansible-project] regex_replace filter

2019-04-06 Thread Sri Krishna G
I have a list of strings like : [hosts] 10.100.0.1 10.100.0.2 10.100.0.3 I am following the example under : https://docs.ansible.com/ansible/latest/user_guide/playbooks_filters.html to "add "https://; prefix to each item in a list" In my case I am appending the port number at the end of every

[ansible-project] Re: ssh transport and windows

2019-04-06 Thread Varun Chopra
SSH is not supported on Windows. On Saturday, April 6, 2019 at 1:44:27 PM UTC+5:30, sergey@gmail.com wrote: > > Hello. > > I am aware of the support for SSH in Windows 2019 and Windows 10. > I installed the OpenSSH in Windows 8.1 and tried to enter it. All is well. > But if you turn on ssh

Re: [ansible-project] purestorage sdk missing

2019-04-06 Thread Kai Stian Olstad
On 06.04.2019 13:20, Lucas Possamai wrote: Or just keep "hosts: dbservers" and add "delegate_to: localhost" on the purefa_snap task. Then you don't have to deal the SDK on the remote machine since the module Python code is run on localhost. The thing is... I want the playbook to be

Re: [ansible-project] purestorage sdk missing

2019-04-06 Thread Lucas Possamai
> > Or just keep "hosts: dbservers" and add "delegate_to: localhost" on the > purefa_snap task. > Then you don't have to deal the SDK on the remote machine since the > module Python code is run on localhost. > The thing is... I want the playbook to be executed on the host (not locally). Testing

Re: [ansible-project] purestorage sdk missing

2019-04-06 Thread Kai Stian Olstad
On 06.04.2019 07:03, Lucas Possamai wrote: So.. doing some tests. Playbook is as follow: --- - name: Oracle Database Snapshots hosts: dbservers remote_user: oracle sudo: true sudo_user: root vars_files: - vars/arrays.yaml - vars/database.yaml tasks: # Take Snapshot of

Re: [ansible-project] how to access debug stdout variable

2019-04-06 Thread Kunalsing Thakur
I was able to successfully do this task by following the instructions. Thanks for matt to give some logic. - name: searching the rpm into {{ reponame }} repo shell: pulp-admin rpm repo content rpm --repo-id={{reponame}} --match 'filename={{ item }}' loop: "{{ rpmname | default([]) }}"

Re: [ansible-project] Re: \e[0m comapre this string in failed_when condition

2019-04-06 Thread Kunalsing Thakur
Hello Matt, I was able to successfully do this task by following the instructions. Thanks for matt to give some logic. - name: searching the rpm into {{ reponame }} repo shell: pulp-admin rpm repo content rpm --repo-id={{reponame}} --match 'filename={{ item }}' loop: "{{ rpmname | default([])

Re: [ansible-project] Re: failed_when not working for empty sting output in task output

2019-04-06 Thread Kunalsing Thakur
Hi Brian, I was able to successfully do this task by following the instructions. Thanks for matt to give some logic. - name: searching the rpm into {{ reponame }} repo shell: pulp-admin rpm repo content rpm --repo-id={{reponame}} --match 'filename={{ item }}' loop: "{{ rpmname | default([])

Re: [ansible-project] Re: \e[0m comapre this string in failed_when condition

2019-04-06 Thread Kunalsing Thakur
Hello Matt, i tried with task - name: searching the rpm into {{ reponame }} repo shell: pulp-admin rpm repo content rpm --repo-id={{reponame}} --match 'filename={{ item }}' with_items: "{{ rpmname | default([]) }}" register: pulp when: search is defined failed_when: escape in

[ansible-project] ssh transport and windows

2019-04-06 Thread sergey . mihailov
Hello. I am aware of the support for SSH in Windows 2019 and Windows 10. I installed the OpenSSH in Windows 8.1 and tried to enter it. All is well. But if you turn on ssh transport in ansable, then nothing works :( 1. I have not done something in Windows 8.1 and it works in Windows 2019 and