Re: [ansible-project] Bash to ansible

2021-10-18 Thread Dick Visser
What is the reason you want to use ansible? On Tue, 19 Oct 2021 at 03:01, Mario Procopio wrote: > Hi there. > > I'm trying to use ansible to automate standard controls on redhat servers, > I have several bash scripts that I currently run locally on each server so > I can control them. > >

[ansible-project] Bash to ansible

2021-10-18 Thread Mario Procopio
Hi there. I'm trying to use ansible to automate standard controls on redhat servers, I have several bash scripts that I currently run locally on each server so I can control them. Script in bash [image: pbash.PNG] today=`date` host=`hostname` version=`cat /etc/redhat-release`

Re: [ansible-project] DNS module

2021-10-18 Thread Jorge RĂșa
First and foremost, this is a general recommendation when writing to mailing list: avoid screenshots as they are not accessible for everyone, plus avoid searching for similar issues. Second, i only see that you are trying to render an erb template with some parameters. So you should learn about

Re: [ansible-project] FORKS --- not working as expected and also discrepecies in playbook profile task prints

2021-10-18 Thread Matt Martz
The problem isn't really with forking, or with how many cores you have. The problem is more related to the fact that a single process that is bound to a single core is responsible for spawning forks, monitoring the processes, and handling responses back from all of the forks. As a result, that

Re: [ansible-project] FORKS --- not working as expected and also discrepecies in playbook profile task prints

2021-10-18 Thread nds.ap...@gmail.com
Hi Matt, Thanks for the reply. We have 8 cores. Should help in achieving the same? When we do it with a python script (forking processes) 200 ssh sessions are achievable. Its not working when used through ansible. Is there a way? Can you also please comment on the second query too? Regards

Re: [ansible-project] Re: windows patching playbook

2021-10-18 Thread Wei-Yen Tan
Yes you can. I created a custom ansible module that handles windows patching as scaling in Windows patching can be a pain especially on long duration times. Which ever way you choose ansible has an answer for it Get Outlook for iOS From:

Re: [ansible-project] Re: windows patching playbook

2021-10-18 Thread Tony Wong
i like to know too On Mon, Oct 18, 2021 at 8:17 AM Jitendra Ingale wrote: > In context of this. I would like to ask if I can use Ansible controller to > automate Windows hosts patching ? > > I am trying to understand what all steps I need to consider and if it can > be done without any 3rd

[ansible-project] Re: windows patching playbook

2021-10-18 Thread Jitendra Ingale
In context of this. I would like to ask if I can use Ansible controller to automate Windows hosts patching ? I am trying to understand what all steps I need to consider and if it can be done without any 3rd party tool (WSUS, Patch Manager Plus etc.) than Ansible ? On Tuesday, March 23, 2021

Re: [ansible-project] Help needed to alter my code to achieve when condition in loop in stdout

2021-10-18 Thread Hareesh Vn
my code with reference to passing when condition against stdout is not working as expected. May be we can chat or have internet call? On Monday, 18 October 2021 at 20:08:40 UTC+5:30 dick@geant.org wrote: > What is your actual question? > > On Mon, 18 Oct 2021 at 16:34, Hareesh Vn wrote: >

Re: [ansible-project] Help needed to alter my code to achieve when condition in loop in stdout

2021-10-18 Thread Dick Visser
What is your actual question? On Mon, 18 Oct 2021 at 16:34, Hareesh Vn wrote: > Hi Team > > I am installing Mongo on n number of nodes. I have written ansible code > for it and its working. > > When it comes to beatification, like > 1. Pass the result of installation to variable (example:

Re: [ansible-project] installing postgresql -- permission problem with initdb

2021-10-18 Thread Dick Visser
This proves there is some permissions issue. So best to solve that and make initdb work manually, and then ansiblize the process. On Mon, 18 Oct 2021 at 12:04, dulhaver via Ansible Project < ansible-project@googlegroups.com> wrote: > thx, > > > On 10/17/2021 7:28 PM Dick Visser wrote: > > > >

[ansible-project] Help needed to alter my code to achieve when condition in loop in stdout

2021-10-18 Thread Hareesh Vn
Hi Team I am installing Mongo on n number of nodes. I have written ansible code for it and its working. When it comes to beatification, like 1. Pass the result of installation to variable (example: result). So this result variable will have output of installation of all nodes. 2. So in case of

Re: [ansible-project] FORKS --- not working as expected and also discrepecies in playbook profile task prints

2021-10-18 Thread Matt Martz
200 forks will likely not be achievable. Although we attempt to spawn that many forks based on your setting, you will create too much CPU contention on the single core that manages all of the forks, that you are likely to never see that many. Somewhere between 50-75 is often the max that most

Re: [ansible-project] installing postgresql -- permission problem with initdb

2021-10-18 Thread dulhaver via Ansible Project
thx, > On 10/17/2021 7:28 PM Dick Visser wrote: > > > > > On Sun, 17 Oct 2021 at 17:47, dulhaver via Ansible Project > mailto:ansible-project@googlegroups.com > > wrote: > > > > I have a task to create an initial postgres databa > (initdb) in a playbook

[ansible-project] FORKS --- not working as expected and also discrepecies in playbook profile task prints

2021-10-18 Thread nds.ap...@gmail.com
Hi, We have about 500 hosts and we were testing the ssh connections that run in parallel at a given point before running the actual playbooks as we were hitting bottlenecks. Ansible version being used: 2.10.5 Its a simple playbook which runs "ls" command on all the hosts. QUERY 1:

[ansible-project] Re: Need info on the commands used by ios_facts module

2021-10-18 Thread Sagar Paul
Hey Vikram, Facts for IOS facts are collectively made of legacy facts and resource-specific facts, specific commands based on a resource contribute to the creation of the facts, all at once. As per your query to understand the command that is being used to produce the facts you can find them

[ansible-project] Generate docs from ansible argspec

2021-10-18 Thread ProfHase
Is there any way to generate a markdown documentation from ansible role argument spec? https://docs.ansible.com/ansible/latest/user_guide/playbooks_reuse_roles.html#role-argument-validation I could not find anything in ansible-doc, the format itself suggests that there is a way Thanks a