# Ansible Project

**URL:** https://forum.ansible.com/c/archives/ansible-project/30.md?page=55

[Latest](https://forum.ansible.com/latest.md) · [Categories](https://forum.ansible.com/categories.md) · [Tags](https://forum.ansible.com/tags.md)

**Page:** 56

---

## [run task based on host network](https://forum.ansible.com/t/run-task-based-on-host-network/36177)

<div class="topic-metadata">

**Author:** [@user88](https://forum.ansible.com/u/user88)\
**Replies:** 0\
**Last updated:** [January 5, 2022, 7:51pm UTC](https://forum.ansible.com/t/run-task-based-on-host-network/36177 "2022-01-05T19:51:12Z")

</div>

Hi I am trying to run a task based on ansible facts ipv4 of the host currently I am able to do so with “when” and regex it works when I am trying to match this for example: “192.168.\[1,2\].” but I need another subnet…

---

## [Regular expression and Linux command in Ansible](https://forum.ansible.com/t/regular-expression-and-linux-command-in-ansible/36175)

<div class="topic-metadata">

**Author:** [@Marian\_Saldhana](https://forum.ansible.com/u/Marian_Saldhana)\
**Replies:** 0\
**Last updated:** [January 5, 2022, 3:21pm UTC](https://forum.ansible.com/t/regular-expression-and-linux-command-in-ansible/36175 "2022-01-05T15:21:27Z")

</div>

Hi All, I am trying to run a playbook where when I entre standard ansible modules using regular expressions it works fine ( Thanks to Todd for helping me with it), however when I entre a Linux command in place of an ans…

---

## [OpenSSH\_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017\\r\\ndebug1: Reading configuration data /etc/ssh/ssh\_config\\r\\ndebug1: /etc/ssh/ssh\_config line 58: Appl ying options for \*\\r\\ndebug1: auto-mux: Trying existing master\\r\\ndebug2: fd 3 setting O\_NONBLOCK\\r](https://forum.ansible.com/t/openssh-7-4p1-openssl-1-0-2k-fips-26-jan-2017-r-ndebug1-reading-configuration-data-etc-ssh-ssh-config-r-ndebug1-etc-ssh-ssh-config-line-58-appl-ying-options-for-r-ndebug1-auto-mux-trying-existing-master-r-ndebug2-fd-3-setting-o-nonblock-r/36168)

<div class="topic-metadata">

**Author:** [@Akshay\_Kumar1](https://forum.ansible.com/u/Akshay_Kumar1)\
**Replies:** 2\
**Last updated:** [January 5, 2022, 12:51pm UTC](https://forum.ansible.com/t/openssh-7-4p1-openssl-1-0-2k-fips-26-jan-2017-r-ndebug1-reading-configuration-data-etc-ssh-ssh-config-r-ndebug1-etc-ssh-ssh-config-line-58-appl-ying-options-for-r-ndebug1-auto-mux-trying-existing-master-r-ndebug2-fd-3-setting-o-nonblock-r/36168 "2022-01-05T12:51:20Z")

</div>

I am getting below error while trying to run the ansible playbook for AIX patching. Could someone please help me out? OpenSSH\_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\\r\\ndebug1: Reading configuration data /etc/ssh/ssh\_con…

---

## [Telemetry for ansible collections and plugins](https://forum.ansible.com/t/telemetry-for-ansible-collections-and-plugins/36172)

<div class="topic-metadata">

**Author:** [@Victor\_Martinez](https://forum.ansible.com/u/Victor_Martinez)\
**Replies:** 0\
**Last updated:** [January 5, 2022, 10:14am UTC](https://forum.ansible.com/t/telemetry-for-ansible-collections-and-plugins/36172 "2022-01-05T10:14:42Z")

</div>

Hi all, As a contributor and maintainer for some plugins in one of the ansible collections, I’d like to know how it’s the adoption for those plugins. Is there any place that I could query how many people install any giv…

---

## [Need to understand how I can write a ansible role so that it compares input / output value.](https://forum.ansible.com/t/need-to-understand-how-i-can-write-a-ansible-role-so-that-it-compares-input-output-value/36138)

<div class="topic-metadata">

**Author:** [@Marian\_Saldhana](https://forum.ansible.com/u/Marian_Saldhana)\
**Replies:** 16\
**Last updated:** [January 4, 2022, 5:10pm UTC](https://forum.ansible.com/t/need-to-understand-how-i-can-write-a-ansible-role-so-that-it-compares-input-output-value/36138 "2022-01-04T17:10:43Z")

</div>

Hi All, As I am new to ansible i need to write a role which compares input /output value. Let me elaborate. I need to write a role where I already have expected value, for eg hostname of ansible remote node - abc. No…

---

## [lineinfile should have an option to remove duplicate lines matched by regexp](https://forum.ansible.com/t/lineinfile-should-have-an-option-to-remove-duplicate-lines-matched-by-regexp/36165)

<div class="topic-metadata">

**Author:** [@ComeEasy](https://forum.ansible.com/u/ComeEasy)\
**Replies:** 2\
**Last updated:** [January 4, 2022, 7:35am UTC](https://forum.ansible.com/t/lineinfile-should-have-an-option-to-remove-duplicate-lines-matched-by-regexp/36165 "2022-01-04T07:35:25Z")

</div>

Hello there! there was a request to enhance the lineinfile module so that it ensures that only one line matching the regexp is left in the file. https://github.com/ansible/ansible/issues/30235 This issue was closed wi…

---

## [Anyone can explain "false" below](https://forum.ansible.com/t/anyone-can-explain-false-below/36159)

<div class="topic-metadata">

**Author:** [@davidy](https://forum.ansible.com/u/davidy)\
**Replies:** 3\
**Last updated:** [January 3, 2022, 9:57pm UTC](https://forum.ansible.com/t/anyone-can-explain-false-below/36159 "2022-01-03T21:57:39Z")

</div>

Hi Anyone can explain “false” below. Thank you sudo nano ansible.cfg \[defaults\] inventory = ./hosts host\_key checking = false

---

## [Raw command cannot work](https://forum.ansible.com/t/raw-command-cannot-work/36166)

<div class="topic-metadata">

**Author:** [@davidy](https://forum.ansible.com/u/davidy)\
**Replies:** 0\
**Last updated:** [January 3, 2022, 9:56pm UTC](https://forum.ansible.com/t/raw-command-cannot-work/36166 "2022-01-03T21:56:18Z")

</div>

Hi Please see the below command lines. Raw command line highlighted below cannot work. After entering the command, it shows some error message. It looks like the access is refused. Did I missed some things? The routers …

---

## [Retrieve facts from Ansible Setup module using JQ](https://forum.ansible.com/t/retrieve-facts-from-ansible-setup-module-using-jq/36161)

<div class="topic-metadata">

**Author:** [@Dennis\_McCarthy1](https://forum.ansible.com/u/Dennis_McCarthy1)\
**Replies:** 2\
**Last updated:** [January 3, 2022, 4:07pm UTC](https://forum.ansible.com/t/retrieve-facts-from-ansible-setup-module-using-jq/36161 "2022-01-03T16:07:11Z")

</div>

Is anyone good with ./JQ? I’m trying to pull out data from the setup output from Ansible. I can do most of what I need to but I’m stuck on something that is probably quite simple. I’m trying to generate a list of hosts…

---

## [Nice Playlist](https://forum.ansible.com/t/nice-playlist/36164)

<div class="topic-metadata">

**Author:** [@lee](https://forum.ansible.com/u/lee)\
**Replies:** 0\
**Last updated:** [January 3, 2022, 7:30am UTC](https://forum.ansible.com/t/nice-playlist/36164 "2022-01-03T07:30:00Z")

</div>

https://youtube.com/playlist?list=PL2\_OBreMn7FqZkvMYt6ATmgC0KAGGJNAN

---

## [access to a remote router is refused via ansible ssh](https://forum.ansible.com/t/access-to-a-remote-router-is-refused-via-ansible-ssh/36163)

<div class="topic-metadata">

**Author:** [@Kevin\_Y](https://forum.ansible.com/u/Kevin_Y)\
**Replies:** 0\
**Last updated:** [January 2, 2022, 4:47pm UTC](https://forum.ansible.com/t/access-to-a-remote-router-is-refused-via-ansible-ssh/36163 "2022-01-02T16:47:43Z")

</div>

I have a question. I am not sure -u is followed by ansible user or the remote router username? The ansible server is at the windows8 desktop. The router can be reached via ssh from the PC, but when using command " ansibl…

---

## [Simple script to install python 3 (with framework) succeeds manually but fails via ansible](https://forum.ansible.com/t/simple-script-to-install-python-3-with-framework-succeeds-manually-but-fails-via-ansible/36162)

<div class="topic-metadata">

**Author:** [@maspotts](https://forum.ansible.com/u/maspotts)\
**Replies:** 6\
**Last updated:** [January 2, 2022, 2:17am UTC](https://forum.ansible.com/t/simple-script-to-install-python-3-with-framework-succeeds-manually-but-fails-via-ansible/36162 "2022-01-02T02:17:25Z")

</div>

I wonder if anyone can help resolve this for me? I’m trying to install python 3 (using already-installed pyenv) on a (Catalina) Mac: the install goes fine if I don’t try to build it with PYTHON\_CONFIGURE\_OPTS=“–enable-fr…

---

## [how can i get around this error?](https://forum.ansible.com/t/how-can-i-get-around-this-error/36160)

<div class="topic-metadata">

**Author:** [@Kerem\_Kalayci](https://forum.ansible.com/u/Kerem_Kalayci)\
**Replies:** 5\
**Last updated:** [December 30, 2021, 12:15pm UTC](https://forum.ansible.com/t/how-can-i-get-around-this-error/36160 "2021-12-30T12:15:09Z")

</div>

Hi everyone, i’m newbie at ansible yml. I am trying to run a command like below. But I am getting an error as below. where am i doing wrong? gather\_facts: False name: LINGO’da komut hosts: xxx remote\_user: xxx tas…

---

## [create multiple vlan port groups on 5 esxi servers](https://forum.ansible.com/t/create-multiple-vlan-port-groups-on-5-esxi-servers/36130)

<div class="topic-metadata">

**Author:** [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Replies:** 6\
**Last updated:** [December 30, 2021, 10:17am UTC](https://forum.ansible.com/t/create-multiple-vlan-port-groups-on-5-esxi-servers/36130 "2021-12-30T10:17:17Z")

</div>

i got following task to create mul;tiple vlan ports groups on a vswitch on 5 esxi hosts task playbok is

---

## [Extract nmon](https://forum.ansible.com/t/extract-nmon/36158)

<div class="topic-metadata">

**Author:** [@kanna3k6](https://forum.ansible.com/u/kanna3k6)\
**Replies:** 1\
**Last updated:** [December 29, 2021, 6:38am UTC](https://forum.ansible.com/t/extract-nmon/36158 "2021-12-29T06:38:42Z")

</div>

Hi all,

---

## [Ansible command output](https://forum.ansible.com/t/ansible-command-output/36157)

<div class="topic-metadata">

**Author:** [@Dip\_Giri](https://forum.ansible.com/u/Dip_Giri)\
**Replies:** 1\
**Last updated:** [December 27, 2021, 8:31pm UTC](https://forum.ansible.com/t/ansible-command-output/36157 "2021-12-27T20:31:42Z")

</div>

name: start ping shell: ping google.com i want to show live output of ping command when i execute the playbook. How to do it? If anyone have any idea plz replay

---

## [Run podman container in a pod](https://forum.ansible.com/t/run-podman-container-in-a-pod/36155)

<div class="topic-metadata">

**Author:** [@Sudheer\_S](https://forum.ansible.com/u/Sudheer_S)\
**Replies:** 1\
**Last updated:** [December 26, 2021, 6:40pm UTC](https://forum.ansible.com/t/run-podman-container-in-a-pod/36155 "2021-12-26T18:40:36Z")

</div>

Hello, I came across the documentation for podman\_container: https://docs.ansible.com/ansible/latest/collections/containers/podman/podman\_container\_module.html#ansible-collections-containers-podman-podman-container-modu…

---

## [Print stout of failed task in recap](https://forum.ansible.com/t/print-stout-of-failed-task-in-recap/36154)

<div class="topic-metadata">

**Author:** [@Jitender\_J](https://forum.ansible.com/u/Jitender_J)\
**Replies:** 3\
**Last updated:** [December 25, 2021, 7:39am UTC](https://forum.ansible.com/t/print-stout-of-failed-task-in-recap/36154 "2021-12-25T07:39:43Z")

</div>

Hi Team, Hope everyone is doing good, I am wondering if there is a way to print stdout of a failed task in playbook recap PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Not able to detach kibana service using nohup](https://forum.ansible.com/t/not-able-to-detach-kibana-service-using-nohup/36153)

<div class="topic-metadata">

**Author:** [@Aman\_Choudhary](https://forum.ansible.com/u/Aman_Choudhary)\
**Replies:** 0\
**Last updated:** [December 24, 2021, 12:52pm UTC](https://forum.ansible.com/t/not-able-to-detach-kibana-service-using-nohup/36153 "2021-12-24T12:52:21Z")

</div>

Hi Everyone, i need to start kibana service using ansible. This service can’t be encoded in system services due to access issues. We are running kibana on a remote linux server. This is the shell command we are trying to…

---

## [Shell Module Code Not Executing](https://forum.ansible.com/t/shell-module-code-not-executing/36149)

<div class="topic-metadata">

**Author:** [@Jitender\_J](https://forum.ansible.com/u/Jitender_J)\
**Replies:** 4\
**Last updated:** [December 24, 2021, 12:48pm UTC](https://forum.ansible.com/t/shell-module-code-not-executing/36149 "2021-12-24T12:48:32Z")

</div>

Hi Team, Need you help on below issue I am facing issue where code inside shell module is not getting executed over some remote server, ansible just passing the got without executing without any error,

---

## [Switch Interface UP then playbook should end with error msg](https://forum.ansible.com/t/switch-interface-up-then-playbook-should-end-with-error-msg/36148)

<div class="topic-metadata">

**Author:** [@Akshay\_Jadhav](https://forum.ansible.com/u/Akshay_Jadhav)\
**Replies:** 4\
**Last updated:** [December 23, 2021, 1:29pm UTC](https://forum.ansible.com/t/switch-interface-up-then-playbook-should-end-with-error-msg/36148 "2021-12-23T13:29:27Z")

</div>

Hi all, I need a help from you guys for writing a play if Switch Interface UP then playbook should end with error msg using when condition. I am kind of new to ansible. So please help me out for writing this task. Than…

---

## [Clean up debug output](https://forum.ansible.com/t/clean-up-debug-output/36150)

<div class="topic-metadata">

**Author:** [@lee](https://forum.ansible.com/u/lee)\
**Replies:** 2\
**Last updated:** [December 23, 2021, 11:59am UTC](https://forum.ansible.com/t/clean-up-debug-output/36150 "2021-12-23T11:59:00Z")

</div>

Hi, I have a small Ansible playbook. -----------------%\<----------------- hosts: localhost tasks: name: Populate service facts ansible.builtin.service\_facts: name: Print service facts loop: postfix rs…

---

## [How to pass dynamic value of Ansible variable to Shell script variable and vice versa.](https://forum.ansible.com/t/how-to-pass-dynamic-value-of-ansible-variable-to-shell-script-variable-and-vice-versa/36144)

<div class="topic-metadata">

**Author:** [@Girish\_Attarde](https://forum.ansible.com/u/Girish_Attarde)\
**Replies:** 1\
**Last updated:** [December 23, 2021, 7:56am UTC](https://forum.ansible.com/t/how-to-pass-dynamic-value-of-ansible-variable-to-shell-script-variable-and-vice-versa/36144 "2021-12-23T07:56:35Z")

</div>

Can anyone help to for syntax or logic. Thanks in advance.

---

## [ansible-galaxy and git verify-tag](https://forum.ansible.com/t/ansible-galaxy-and-git-verify-tag/36146)

<div class="topic-metadata">

**Author:** [@Michael\_Stroder](https://forum.ansible.com/u/Michael_Stroder)\
**Replies:** 3\
**Last updated:** [December 22, 2021, 5:43pm UTC](https://forum.ansible.com/t/ansible-galaxy-and-git-verify-tag/36146 "2021-12-22T17:43:15Z")

</div>

HI! Is it possible to make ansible-galaxy invoke 'git verify-tag' with a locally configured GPG public key on tags specified as version: in requirements.yml? Thx in advance for any hint. Ciao, Michael.

---

## [Deploy a Firewall in Ansible](https://forum.ansible.com/t/deploy-a-firewall-in-ansible/36131)

<div class="topic-metadata">

**Author:** [@Liliana\_Achig](https://forum.ansible.com/u/Liliana_Achig)\
**Replies:** 5\
**Last updated:** [December 22, 2021, 1:12pm UTC](https://forum.ansible.com/t/deploy-a-firewall-in-ansible/36131 "2021-12-22T13:12:02Z")

</div>

Please have a playbook template to deploy a Firewall in Ansible, there are not many on the internet, I have tried with them but they don’t work for me, not Ansible firewallD, I was trying with UFW but I have not had any …

---

## [Ansible 5.1.0 has been released](https://forum.ansible.com/t/ansible-5-1-0-has-been-released/36143)

<div class="topic-metadata">

**Author:** [@David\_Moreau\_Simard2](https://forum.ansible.com/u/David_Moreau_Simard2)\
**Replies:** 0\
**Last updated:** [December 21, 2021, 6:34pm UTC](https://forum.ansible.com/t/ansible-5-1-0-has-been-released/36143 "2021-12-21T18:34:41Z")

</div>

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…

---

## [automate ansible pull to remote repository](https://forum.ansible.com/t/automate-ansible-pull-to-remote-repository/36142)

<div class="topic-metadata">

**Author:** [@Emanuel\_Gonzalez](https://forum.ansible.com/u/Emanuel_Gonzalez)\
**Replies:** 0\
**Last updated:** [December 21, 2021, 5:51pm UTC](https://forum.ansible.com/t/automate-ansible-pull-to-remote-repository/36142 "2021-12-21T17:51:12Z")

</div>

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…

---

## [WinRM Slowness - ansible](https://forum.ansible.com/t/winrm-slowness-ansible/36141)

<div class="topic-metadata">

**Author:** [@RAJ\_SPEED](https://forum.ansible.com/u/RAJ_SPEED)\
**Replies:** 0\
**Last updated:** [December 21, 2021, 2:44pm UTC](https://forum.ansible.com/t/winrm-slowness-ansible/36141 "2021-12-21T14:44:17Z")

</div>

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

---

## [Error while copying the file](https://forum.ansible.com/t/error-while-copying-the-file/36139)

<div class="topic-metadata">

**Author:** [@Kumar\_Rahul](https://forum.ansible.com/u/Kumar_Rahul)\
**Replies:** 1\
**Last updated:** [December 21, 2021, 10:18am UTC](https://forum.ansible.com/t/error-while-copying-the-file/36139 "2021-12-21T10:18:47Z")

</div>

Hello all , I am new to this please help and reply when i was trying to copy one file to other location i am getting

---

## [Execute an .sql script on mysql with secure installation](https://forum.ansible.com/t/execute-an-sql-script-on-mysql-with-secure-installation/36136)

<div class="topic-metadata">

**Author:** [@Mythicale](https://forum.ansible.com/u/Mythicale)\
**Replies:** 5\
**Last updated:** [December 20, 2021, 7:17pm UTC](https://forum.ansible.com/t/execute-an-sql-script-on-mysql-with-secure-installation/36136 "2021-12-20T19:17:29Z")

</div>

Hi, I am trying to use an sql script to create a database in mariadb on a openbsd server with ansible. My playbook first create the script with the name of the database to create and then uses expect to give the comman…

[Previous page](https://forum.ansible.com/c/archives/ansible-project/30.md?page=54)

[Next page](https://forum.ansible.com/c/archives/ansible-project/30.md?page=56)
