Re: [ansible-project] Setting Conditionals with Output

2020-08-11 Thread Jean-Yves LENHOF
Hi, Perhaps using the module which does this, you'll have the idempotence ;-) https://docs.ansible.com/ansible/latest/modules/win_share_module.html Regars, JYL Le 11/08/2020 à 17:00, jhix...@gmail.com a écrit : New at Ansible and still trying to get the hang of setting conditional based

Re: [ansible-project] how to compare lists whose elements are regular expressions in Ansible?

2020-08-11 Thread Vladimir Botka
On Tue, 11 Aug 2020 21:29:40 -0700 (PDT) rajthecomputerguy wrote: > ... compare two lists > > list1: >- linux.* >- 6.* >- mysql|python|gvim > > list2: >- linux >- 6.0.1 >- mysql See "Testing strings" and chose from “match”, “search” or “regex”.

[ansible-project] how to compare lists whose elements are regular expressions in Ansible?

2020-08-11 Thread rajthecomputerguy
Hi Team I wish to compare two lists, one list has regex expression and the second has ordinary data and return a match. Please help e.g. list1: - linux.* - 6.* - mysql|python|gvim list2: - linux - 6.0.1 - mysql Thanks -- You received this message because you are

Re: [ansible-project] Find VLAN in a range of VLAN (930-932)

2020-08-11 Thread Mauricio Tavares
On Tue, Aug 11, 2020 at 3:51 PM Spiro Mitsialis wrote: > > Using various methods, I can get a list of VLAN on a switch port. The list > looks like the following: > "vlans": > "1,134,170,175,540,605,819-820,911-912,930-932,945,952,955,959-960,1200-1201,1400" > > I would like to check to see if

Re: [ansible-project] Ansible failing to manage influxdb

2020-08-11 Thread Miroslav Todorovic
Hi, Thank you Luca, you were right. I was missing influxdb in targeted host. I was assuming all the time that dependency referred to host where ansible was running. Thank you a lot once again! Miroslav On Tuesday, August 11, 2020 at 2:52:18 PM UTC+2 lorenze...@gmail.com wrote: > Hello, > > >

[ansible-project] Find VLAN in a range of VLAN (930-932)

2020-08-11 Thread Spiro Mitsialis
Using various methods, I can get a list of VLAN on a switch port. The list looks like the following: "vlans": "1,134,170,175,540,605,819-820,911-912,*930-932* ,945,952,955,959-960,1200-1201,1400" I would like to check to see if VLAN 931 is in the list. In this case its between 930-932 in the

Re: [ansible-project] installing/upgrading vmwasre tools windows

2020-08-11 Thread david...@mycit.ie
It's best practice to, use Update manager within vSphere, Set install vmtools on next reboot on the Machines, you can use Powershell for that, Not sure why you want to use Ansible for This. On Tuesday, August 11, 2020 at 5:25:16 PM UTC+1 dick@geant.org wrote: > On Tue, 11 Aug 2020 at

[ansible-project] Upgrade Ansible from 2.9.10 to 2.9.11 on RHEL8

2020-08-11 Thread Jay Amin
Hello, Can anyone tell me how do I upgrade Ansible v2.9.10 to 2.9.11 or 2.9.12 on RHEL 8? I cannot use since system is not connected to any subscription manager or repo. I use local repo. I cannot use PIP either. I downloaded ansible-2.9.11-1.el8.noarch.rpm but now need help on how to upgrade

Re: [ansible-project] installing/upgrading vmwasre tools windows

2020-08-11 Thread Dick Visser
On Tue, 11 Aug 2020 at 17:28, Tony Wong wrote: > downloading the executable for each vm is not what i want to do Best to be less ambiguous and just say what you DO want. Continuing assuming/guessing, you probably want to download the binary to the controller node once (using get_url), then

[ansible-project] ignore_unreachable statement does not work with block/rescue?

2020-08-11 Thread Peter Gebirgslok
Hello guys, I'm trying to check if the server is still reachable with a block -rescue statement. If the server is no longer available, the rescue statement should do something. This is basically the simple playbook: --- - name: Verify if host is up hosts: Server2 gather_facts: no #

[ansible-project] installing/upgrading vmwasre tools windows

2020-08-11 Thread Tony Wong
can someone help me improve this playbook. downloading the executable for each vm is not what i want to do --- - name: testing win_get_url hosts: all tasks: - name: Create Directory if not exist win_file: path: C:\temp state: directory - name: Download exe to

[ansible-project] Setting Conditionals with Output

2020-08-11 Thread jhix...@gmail.com
New at Ansible and still trying to get the hang of setting conditional based upon output. I am setting Windows file shares with the below task. The initial run works fine; however, when you repeat the task, it fails stating that the shares already exist. How do I set a conditional that states

Re: [ansible-project] Re: Ansible failing to manage influxdb

2020-08-11 Thread Stefan Hornburg (Racke)
On 8/11/20 2:54 PM, Hrvoje Gašpar wrote: > Could you check versions of influxdb and python you are running on managed > host? > > Influx should be between versions 0.9 and 1.2.4, while python needs to be > version 2.6: >

[ansible-project] Re: Ansible failing to manage influxdb

2020-08-11 Thread Hrvoje Gašpar
Could you check versions of influxdb and python you are running on managed host? Influx should be between versions 0.9 and 1.2.4, while python needs to be version 2.6: https://docs.ansible.com/ansible/latest/modules/influxdb_database_module.html Dana utorak, 11. kolovoza 2020. u 14:45:15 UTC+2

Re: [ansible-project] Ansible failing to manage influxdb

2020-08-11 Thread Luca 'remix_tj' Lorenzetto
Hello, the error appears because you're missing influxdb python module on the host you're targeting with ansible. Luca On Tue, Aug 11, 2020 at 2:45 PM Miroslav Todorovic wrote: > > I am facing issue with managing inflluxdb on remote host using > influxdb_database module. > > - name: Create

[ansible-project] Ansible failing to manage influxdb

2020-08-11 Thread Miroslav Todorovic
I am facing issue with managing inflluxdb on remote host using influxdb_database module. - name: Create database influxdb_database: hostname: localhost database_name: miroslav It is failing with following error: "ImportError: No module named influxdb. Failed to import the required Python

[ansible-project] unable to install applications after downloading in VM using ansible

2020-08-11 Thread Mahmood Ali
Hi I am having an issue in installing an application using ansible automation. I tried to deploy an application from ansible server to the windows virtual machine in the same vnet. I tried to install git.exe and notepad++.exe files into the windows virtual machine using ansibleplaybooks.when i

[ansible-project] unable to install .exe files using win package module on a windows sever

2020-08-11 Thread surabhy vaishakh
--- - name: Install DXSDK hosts: win tasks: - name: Download DXSDK win_get_url: url: https://download.microsoft.com/download/3/A/5/3A53CE87-F5C9-4CE5-92E1-5E2AF4841741/DXSDK_Mar09.exe dest: C:\Program Files\ansibleinstaller\XSDK_Mar09.exe - name: Install exe

RE: [ansible-project] AWS EFS

2020-08-11 Thread sandy.hung
Thanks. BR Sandy From: ansible-project@googlegroups.com On Behalf Of Karl Auer Sent: Tuesday, August 11, 2020 3:27 PM To: ansible-project Subject: Re: [ansible-project] AWS EFS "botocore.exceptions.NoCredentialsError: Unable to locate credentials" Fix the credentials setup.

Re: [ansible-project] AWS EFS

2020-08-11 Thread Karl Auer
"botocore.exceptions.NoCredentialsError: Unable to locate credentials" Fix the credentials setup. On Tue, Aug 11, 2020 at 5:24 PM Sandy Hung wrote: > Hi all, > > I run efs playbook ,but show error message, I don't what happen > I run other machine is ok , it's python version problem? > > > The

[ansible-project] AWS EFS

2020-08-11 Thread Sandy Hung
Hi all, I run efs playbook ,but show error message, I don't what happen I run other machine is ok , it's python version problem? The full traceback is: Traceback (most recent call last): File "/root/.ansible/tmp/ansible-tmp-1597129962.45-1441-139369601493398/AnsiballZ_efs.py", line 102, in