[ansible-project] How to pass dynamic value of Ansible variable to Shell script variable and vice versa.

2021-12-21 Thread Girish Attarde
Can anyone help to for syntax or logic. Thanks in advance. -- 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

Re: [ansible-project] Need to understand how I can write a ansible role so that it compares input / output value.

2021-12-21 Thread Roberto Paz
That kind of info can be obtained with "gather facts" step, which is the first step when running a playbook. You just have to comparte returned info in ansible variables like "ansible_distribution" and "ansible_distribution_version" with the expected value. You can store expected value in a

[ansible-project] Re: Check for existing installed software

2021-12-21 Thread Nitrous
any suggestions? On Monday, December 20, 2021 at 9:09:51 AM UTC-6 Nitrous wrote: > How can I incorporate this registry check before my playbook runs to > install .net 4.8: > > (Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\NET Framework > Setup\NDP\v4\Full").version -lt 4.8 > > The above should

Re: [ansible-project] Deploy a Firewall in Ansible

2021-12-21 Thread Liliana Achig
Excuse me, I'm new to ansible. I don't know if you can help me, how can I check that the port of the firewall that I implemented was blocked or the change was made in the host node, the playbook has already run but I need to know how to do the rest El martes, 21 de diciembre de 2021 a las

[ansible-project] Ansible 5.1.0 has been released

2021-12-21 Thread David Moreau Simard
Hi all, We're happy to announce that the Ansible 5.1.0 package has been released ! Ansible 5.1.0 includes the newly released ansible-core 2.12.1 as well as a curated set of Ansible collections to provide a vast number of modules and plugins. This is a major version update from Ansible 4.x which

[ansible-project] automate ansible pull to remote repository

2021-12-21 Thread Emanuel Gonzalez
Hello, i new with Ansible, very very very newbie, I am reading a book of approximately 400 pages, haven’t finished reading yet, but I need to automate a process as soon as possible, so I request your help. I’m trying to automate deploys. I have two repositories. First I am cloning the

[ansible-project] WinRM Slowness - ansible

2021-12-21 Thread RAJ SPEED
Hi All, I'm facing huge slowness, for any task to perform on windows machines(through Ansible AWX). Does anyone had any success in overcoming WINRM slowness. Thanks -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this

Re: [ansible-project] Need to understand how I can write a ansible role so that it compares input / output value.

2021-12-21 Thread Marian Saldhana
Thanks for your reply. I want to automate tasks such as verifying the OS version of remote nodes. The customer has given me the expected value i.e. Centos version 8.2 Through automation I wish to get the OS version of the remotes nodes and then compare that value with the value that I have

Re: [ansible-project] Deploy a Firewall in Ansible

2021-12-21 Thread Dick Visser
Sounds like ansible is totally irrelevant to you. First pick a firewall that suits your requirements and only then look how to automate it. On Sun, 19 Dec 2021 at 22:43, Liliana Achig wrote: > Please have a playbook template to deploy a Firewall in Ansible, there are > not many on the

Re: [ansible-project] Need to understand how I can write a ansible role so that it compares input / output value.

2021-12-21 Thread Dick Visser
You need to elaborate some more, I can't make anything of your story. Give some real world examples of the tasks that you're trying to automate. On Tue, 21 Dec 2021 at 07:22, Marian Saldhana wrote: > Hi All, > > As I am new to ansible i need to write a role which compares input /output > value.

Re: [ansible-project] Error while copying the file

2021-12-21 Thread Stefan Hornburg (Racke)
On 21/12/2021 11:15, Kumar Rahul wrote: Hello all , I am new to this please help and reply 1. when i was trying to copy one file to other location i am getting ERROR! this task 'copy' has extra params, which is only allowed in the following modules: add_host, win_command, shell,

[ansible-project] Error while copying the file

2021-12-21 Thread Kumar Rahul
Hello all , I am new to this please help and reply 1. when i was trying to copy one file to other location i am getting ERROR! this task 'copy' has extra params, which is only allowed in the following modules: add_host, win_command, shell, raw, include_role, command, win_shell,