# Archives

**URL:** https://forum.ansible.com/c/archives/31.md?page=115

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

**Page:** 116

---

## [fatal: \[s1\]: FAILED! =\> {"msg": "Unable to automatically determine host network os. Please manually configure ansible\_network\_os value for this host"}](https://forum.ansible.com/t/fatal-s1-failed-msg-unable-to-automatically-determine-host-network-os-please-manually-configure-ansible-network-os-value-for-this-host/35501)

<div class="topic-metadata">

**Author:** [@sanjivy\_raja](https://forum.ansible.com/u/sanjivy_raja)\
**Replies:** 1\
**Last updated:** [July 13, 2021, 5:39pm UTC](https://forum.ansible.com/t/fatal-s1-failed-msg-unable-to-automatically-determine-host-network-os-please-manually-configure-ansible-network-os-value-for-this-host/35501 "2021-07-13T17:39:55Z")

</div>

Hello Everyone! I have been trying to run the below play book , I keep getting different kinds of errors whenever I try to change the syntax, I am guessing the errors are due to deprecated syntax. Can some one tell me t…

---

## [Request assistance to write script using Regex](https://forum.ansible.com/t/request-assistance-to-write-script-using-regex/35500)

<div class="topic-metadata">

**Author:** [@Vikram\_S](https://forum.ansible.com/u/Vikram_S)\
**Replies:** 1\
**Last updated:** [July 13, 2021, 5:36pm UTC](https://forum.ansible.com/t/request-assistance-to-write-script-using-regex/35500 "2021-07-13T17:36:07Z")

</div>

Hi Team, From the below output, i need to extract only the IP 10.1.1.10 (it is ok if the entire line starting from asterix is extracted). I wrote below script and it seemed to work when i tested in regex101.com but fai…

---

## [fatal: \[s1\]: FAILED! =\> {"msg": "Unable to automatically determine host network os. Please manually configure ansible\_network\_os value for this host"}](https://forum.ansible.com/t/fatal-s1-failed-msg-unable-to-automatically-determine-host-network-os-please-manually-configure-ansible-network-os-value-for-this-host/35503)

<div class="topic-metadata">

**Author:** [@sanjivy\_raja](https://forum.ansible.com/u/sanjivy_raja)\
**Replies:** 0\
**Last updated:** [July 13, 2021, 5:33pm UTC](https://forum.ansible.com/t/fatal-s1-failed-msg-unable-to-automatically-determine-host-network-os-please-manually-configure-ansible-network-os-value-for-this-host/35503 "2021-07-13T17:33:04Z")

</div>

Hello Everyone! I have been trying to run the below play book , I keep getting different kinds of errors whenever I try to change the syntax, I am guessing the errors are due to deprecated syntax. Can some one tell me t…

---

## [cutomize awx source code for login](https://forum.ansible.com/t/cutomize-awx-source-code-for-login/35496)

<div class="topic-metadata">

**Author:** [@kelly](https://forum.ansible.com/u/kelly)\
**Replies:** 1\
**Last updated:** [July 13, 2021, 4:46pm UTC](https://forum.ansible.com/t/cutomize-awx-source-code-for-login/35496 "2021-07-13T16:46:02Z")

</div>

Hello, I left a question about multi-factor authentication a few days ago. The answer I got through the mailing list was that awx does not support multifactor authentication. To be precise, it was to connect otp after…

---

## [NTLMv1 for Active Directory on Linux](https://forum.ansible.com/t/ntlmv1-for-active-directory-on-linux/35499)

<div class="topic-metadata">

**Author:** [@Subhi\_Andrews](https://forum.ansible.com/u/Subhi_Andrews)\
**Replies:** 0\
**Last updated:** [July 13, 2021, 4:34pm UTC](https://forum.ansible.com/t/ntlmv1-for-active-directory-on-linux/35499 "2021-07-13T16:34:47Z")

</div>

Hi, We use an active directory user to authenticate and login into remote Linux hosts using Ansible. It seems to be using NTLMv1 behind the scenes for authentication. We want to force it to use NTLMv2. Is there a way to…

---

## [Unable to export CLASSPATH for localhost on Ansible on Linux Redhat](https://forum.ansible.com/t/unable-to-export-classpath-for-localhost-on-ansible-on-linux-redhat/35495)

<div class="topic-metadata">

**Author:** [@Easy\_King](https://forum.ansible.com/u/Easy_King)\
**Replies:** 2\
**Last updated:** [July 13, 2021, 4:24pm UTC](https://forum.ansible.com/t/unable-to-export-classpath-for-localhost-on-ansible-on-linux-redhat/35495 "2021-07-13T16:24:34Z")

</div>

I get the below error while executing the shell command on ansible localhost $ java utils.dbping ORACLE\_THIN :: Error: Could not find or load main class utils.dbping Inorder, to resolve this error i set the classpath l…

---

## [port 7946 already in use when intalling AWX 19.2.2](https://forum.ansible.com/t/port-7946-already-in-use-when-intalling-awx-19-2-2/35498)

<div class="topic-metadata">

**Author:** [@Razer\_Zhang](https://forum.ansible.com/u/Razer_Zhang)\
**Replies:** 0\
**Last updated:** [July 13, 2021, 12:25pm UTC](https://forum.ansible.com/t/port-7946-already-in-use-when-intalling-awx-19-2-2/35498 "2021-07-13T12:25:16Z")

</div>

environment: tools: docker \_system :\_centos I have seen no process in port 7946 ，but the error still exist. and Its sure for port 7946 was not bind with process. code: \*\*netstat -an | grep 7946\*\* tcp6 0 0 :::7946 :…

---

## [Get all packages list in the following pattern"packagename-version-arch"](https://forum.ansible.com/t/get-all-packages-list-in-the-following-pattern-packagename-version-arch/35497)

<div class="topic-metadata">

**Author:** [@Julien](https://forum.ansible.com/u/Julien)\
**Replies:** 0\
**Last updated:** [July 13, 2021, 12:24pm UTC](https://forum.ansible.com/t/get-all-packages-list-in-the-following-pattern-packagename-version-arch/35497 "2021-07-13T12:24:37Z")

</div>

Hello everyone, I’d like to gather package facts and simply store them into a variable as a list with this pattern: packagename-version-arch. I’ve tried several things: mapping attributes, select attributes, for. Witho…

---

## [How to avoid matching string with the substring in group\_vars variable file](https://forum.ansible.com/t/how-to-avoid-matching-string-with-the-substring-in-group-vars-variable-file/35493)

<div class="topic-metadata">

**Author:** [@Gaurav\_Oberai](https://forum.ansible.com/u/Gaurav_Oberai)\
**Replies:** 3\
**Last updated:** [July 13, 2021, 10:43am UTC](https://forum.ansible.com/t/how-to-avoid-matching-string-with-the-substring-in-group-vars-variable-file/35493 "2021-07-13T10:43:26Z")

</div>

Hello, I have items defined with with\_items in ansible task and that item is not existing in the group\_vars/all file so it should be skipped. But it is matching to the substring of a string in the group\_vars file. e.g.…

---

## [Connection plugin with slow \_connect](https://forum.ansible.com/t/connection-plugin-with-slow-connect/35481)

<div class="topic-metadata">

**Author:** [@Roman\_Bolshakov](https://forum.ansible.com/u/Roman_Bolshakov)\
**Replies:** 3\
**Last updated:** [July 12, 2021, 6:15pm UTC](https://forum.ansible.com/t/connection-plugin-with-slow-connect/35481 "2021-07-12T18:15:27Z")

</div>

Hi all, I'm working on a guestfs \[1\] connection plugin and seeking for a design advice. libguestfs provides a set of command line tools that can be used to operate on virtual machine disk images and modify its conten…

---

## [How to connect to host from within POd/container](https://forum.ansible.com/t/how-to-connect-to-host-from-within-pod-container/35492)

<div class="topic-metadata">

**Author:** [@Bill\_Biker](https://forum.ansible.com/u/Bill_Biker)\
**Replies:** 0\
**Last updated:** [July 12, 2021, 5:24pm UTC](https://forum.ansible.com/t/how-to-connect-to-host-from-within-pod-container/35492 "2021-07-12T17:24:04Z")

</div>

Hello All, I have successfully installed the awx-operator complements of LondonAC. I have successuflly installed awx 19.2 complements to this link: https://www.linuxtechi.com/install-ansible-awx-kubernetes-minikube/ T…

---

## [How to apply ACL only if folder has really changed](https://forum.ansible.com/t/how-to-apply-acl-only-if-folder-has-really-changed/35491)

<div class="topic-metadata">

**Author:** [@Florent\_Loenix](https://forum.ansible.com/u/Florent_Loenix)\
**Replies:** 0\
**Last updated:** [July 12, 2021, 2:40pm UTC](https://forum.ansible.com/t/how-to-apply-acl-only-if-folder-has-really-changed/35491 "2021-07-12T14:40:11Z")

</div>

Hello, I have numerous folders containing a huge bunch of subfolders and files. For each folder, I am using ACL to configure the permission of my own user and the apache2 user (named web user). The web user can read r…

---

## [AWX 19.2.0 cant map LDAP groups as org admin](https://forum.ansible.com/t/awx-19-2-0-cant-map-ldap-groups-as-org-admin/35490)

<div class="topic-metadata">

**Author:** [@Isis\_Chien](https://forum.ansible.com/u/Isis_Chien)\
**Replies:** 1\
**Last updated:** [July 12, 2021, 10:00am UTC](https://forum.ansible.com/t/awx-19-2-0-cant-map-ldap-groups-as-org-admin/35490 "2021-07-12T10:00:58Z")

</div>

Hello i’m facing an issue with our ldap and awx 19.2, had opened a case which has been closed but still facing it ( https://github.com/ansible/awx/issues/10602 ) : Steps to reproduce Create an org and a team which it …

---

## [Ansible variables precedence](https://forum.ansible.com/t/ansible-variables-precedence/35489)

<div class="topic-metadata">

**Author:** [@nitjindal](https://forum.ansible.com/u/nitjindal)\
**Replies:** 0\
**Last updated:** [July 12, 2021, 7:18am UTC](https://forum.ansible.com/t/ansible-variables-precedence/35489 "2021-07-12T07:18:27Z")

</div>

Hi All having a query about variable precedence. Having roles calling like this: playbook/testplay.yml

---

## [how to use register as a key in yaml?](https://forum.ansible.com/t/how-to-use-register-as-a-key-in-yaml/35487)

<div class="topic-metadata">

**Author:** [@user49](https://forum.ansible.com/u/user49)\
**Replies:** 6\
**Last updated:** [July 10, 2021, 8:49am UTC](https://forum.ansible.com/t/how-to-use-register-as-a-key-in-yaml/35487 "2021-07-10T08:49:35Z")

</div>

ansible --version ansible \[core 2.11.1\]

---

## [How to transfer artifact (file) to artifactory using URI](https://forum.ansible.com/t/how-to-transfer-artifact-file-to-artifactory-using-uri/35486)

<div class="topic-metadata">

**Author:** [@Mateusz\_Panczyszyn](https://forum.ansible.com/u/Mateusz_Panczyszyn)\
**Replies:** 2\
**Last updated:** [July 9, 2021, 8:39pm UTC](https://forum.ansible.com/t/how-to-transfer-artifact-file-to-artifactory-using-uri/35486 "2021-07-09T20:39:36Z")

</div>

Hi, I try to make small improvement in my CI. Normally is done by REST API and curl, for example (https://www.jfrog.com/confluence/display/JFROG/Artifactory+REST+API) curl -u myUser:ABcdEF -X PUT “http://localhost:8081…

---

## [Ansible for SQL server deployments](https://forum.ansible.com/t/ansible-for-sql-server-deployments/35485)

<div class="topic-metadata">

**Author:** [@omoeko](https://forum.ansible.com/u/omoeko)\
**Replies:** 0\
**Last updated:** [July 9, 2021, 2:37pm UTC](https://forum.ansible.com/t/ansible-for-sql-server-deployments/35485 "2021-07-09T14:37:13Z")

</div>

I am looking at the possibility of deployments using ansible roles. The issue that I find is that ansible works at the host level within the defined inventory. SQL server on the other hand works differently, its a one to…

---

## [How to get a list of unreachable hosts](https://forum.ansible.com/t/how-to-get-a-list-of-unreachable-hosts/35438)

<div class="topic-metadata">

**Author:** [@omoeko](https://forum.ansible.com/u/omoeko)\
**Replies:** 6\
**Last updated:** [July 9, 2021, 2:36pm UTC](https://forum.ansible.com/t/how-to-get-a-list-of-unreachable-hosts/35438 "2021-07-09T14:36:26Z")

</div>

Hi All. I have the ansible role coded below.

---

## [](https://forum.ansible.com/t/35483)

<div class="topic-metadata">

**Author:** [@Chuck\_Payne](https://forum.ansible.com/u/Chuck_Payne)\
**Replies:** 1\
**Last updated:** [July 9, 2021, 10:11am UTC](https://forum.ansible.com/t/35483 "2021-07-09T10:11:46Z")

</div>

Greetings, I have a host that keeps saying the ECDSA host key has changed. Usually, I can edit the known\_hosts file, but I am not sure where to find it with the docker images. Can someone point in the right direction?

---

## [telnet config output is not complete](https://forum.ansible.com/t/telnet-config-output-is-not-complete/35484)

<div class="topic-metadata">

**Author:** [@Vincent\_Nambatac](https://forum.ansible.com/u/Vincent_Nambatac)\
**Replies:** 0\
**Last updated:** [July 9, 2021, 5:14am UTC](https://forum.ansible.com/t/telnet-config-output-is-not-complete/35484 "2021-07-09T05:14:58Z")

</div>

Hi I would like to ask if how can I make a conditional statement for waiting the output to be complete before registering it . I manage to get the config in my router using telnet but then the config output is not comple…

---

## [How to pass ssh args in ansible](https://forum.ansible.com/t/how-to-pass-ssh-args-in-ansible/35482)

<div class="topic-metadata">

**Author:** [@Vincent\_Nambatac](https://forum.ansible.com/u/Vincent_Nambatac)\
**Replies:** 1\
**Last updated:** [July 9, 2021, 2:27am UTC](https://forum.ansible.com/t/how-to-pass-ssh-args-in-ansible/35482 "2021-07-09T02:27:13Z")

</div>

Hi Guys , I want to pass ang ssh arguments since I cannot directly use ssh@IP, I want to add this arguments; ssh -o KexAlgorithms=diffie-hellman-group14-sha1 -o HostKeyAlgorithms=+ssh-dss -caes128-cbc@IP How can i conf…

---

## [how to use a variable from one task to another task](https://forum.ansible.com/t/how-to-use-a-variable-from-one-task-to-another-task/35475)

<div class="topic-metadata">

**Author:** [@Charles\_Daniel](https://forum.ansible.com/u/Charles_Daniel)\
**Replies:** 12\
**Last updated:** [July 8, 2021, 5:38pm UTC](https://forum.ansible.com/t/how-to-use-a-variable-from-one-task-to-another-task/35475 "2021-07-08T17:38:08Z")

</div>

Team, I would like to use the variable i got from one ansible task to another task where hosts are different. Please help me use the variable to use it on another task!!

---

## [Cisco Small Bussiness Switches Module SG500](https://forum.ansible.com/t/cisco-small-bussiness-switches-module-sg500/35480)

<div class="topic-metadata">

**Author:** [@Natalia\_Quijano](https://forum.ansible.com/u/Natalia_Quijano)\
**Replies:** 1\
**Last updated:** [July 8, 2021, 5:17pm UTC](https://forum.ansible.com/t/cisco-small-bussiness-switches-module-sg500/35480 "2021-07-08T17:17:38Z")

</div>

hi, greetings to all, I have looked for some configuration for the Ansible Cisco Small Bussiness Switches Module, specifically sg500, but I have not found one that if it works I tried the following: and none works for me…

---

## [download ISO from artifactory to F5](https://forum.ansible.com/t/download-iso-from-artifactory-to-f5/35477)

<div class="topic-metadata">

**Author:** [@Sharon\_Day](https://forum.ansible.com/u/Sharon_Day)\
**Replies:** 4\
**Last updated:** [July 8, 2021, 3:26pm UTC](https://forum.ansible.com/t/download-iso-from-artifactory-to-f5/35477 "2021-07-08T15:26:03Z")

</div>

I’m working on a playbook to upgrade all our F5 devices but having trouble with the download of the ISO from Artifactory to the F5. When I run the play the file is downloaded but its downloaded to the Ansible control nod…

---

## [Question about awx and nested roles](https://forum.ansible.com/t/question-about-awx-and-nested-roles/35479)

<div class="topic-metadata">

**Author:** [@Joao\_Carlos\_Heringer](https://forum.ansible.com/u/Joao_Carlos_Heringer)\
**Replies:** 0\
**Last updated:** [July 8, 2021, 3:11pm UTC](https://forum.ansible.com/t/question-about-awx-and-nested-roles/35479 "2021-07-08T15:11:16Z")

</div>

Hi, Im learning ansible and awx, and i have a doubt about a scenario: I created a two roles ‘up\_to\_date’ and ‘ssh\_hardened’. And after that a role ‘base\_server’, which (initially) just imports those two other roles. All…

---

## [Help, How can i multi factor authentication for login..?](https://forum.ansible.com/t/help-how-can-i-multi-factor-authentication-for-login/35476)

<div class="topic-metadata">

**Author:** [@kelly](https://forum.ansible.com/u/kelly)\
**Replies:** 3\
**Last updated:** [July 8, 2021, 1:53pm UTC](https://forum.ansible.com/t/help-how-can-i-multi-factor-authentication-for-login/35476 "2021-07-08T13:53:51Z")

</div>

I want to use multi factor authentication for login. like… use OTP after ldap login. is it possible ?? Help me

---

## [Remove deprecation warnings from playbook output](https://forum.ansible.com/t/remove-deprecation-warnings-from-playbook-output/35470)

<div class="topic-metadata">

**Author:** [@German\_Rincon](https://forum.ansible.com/u/German_Rincon)\
**Replies:** 1\
**Last updated:** [July 8, 2021, 10:51am UTC](https://forum.ansible.com/t/remove-deprecation-warnings-from-playbook-output/35470 "2021-07-08T10:51:30Z")

</div>

Hi, Is there any way to remove deprecation warnings from the output of the playbooks running inside AXW? I get something like the following: \[DEPRECATION WARNING\]: Distribution centos 8 on host R3 should use 6 /usr/l…

---

## [\[Errno 110\] Connection timed out with multiple ssh in router](https://forum.ansible.com/t/errno-110-connection-timed-out-with-multiple-ssh-in-router/35467)

<div class="topic-metadata">

**Author:** [@Vincent\_Nambatac](https://forum.ansible.com/u/Vincent_Nambatac)\
**Replies:** 18\
**Last updated:** [July 8, 2021, 6:39am UTC](https://forum.ansible.com/t/errno-110-connection-timed-out-with-multiple-ssh-in-router/35467 "2021-07-08T06:39:07Z")

</div>

Im having a trouble in getting config with 30 plus routers . I can ssh and get configs but the problem is , it is limited only with 7 ssh connections . how can I fix this issue ? i added already command time out and pers…

---

## [Setting facts from a loop](https://forum.ansible.com/t/setting-facts-from-a-loop/35474)

<div class="topic-metadata">

**Author:** [@harry\_devine](https://forum.ansible.com/u/harry_devine)\
**Replies:** 2\
**Last updated:** [July 7, 2021, 8:01pm UTC](https://forum.ansible.com/t/setting-facts-from-a-loop/35474 "2021-07-07T20:01:06Z")

</div>

I have a playbook where I’m trying to use the find module to find files owned by a certain user. I’m trying to do register a variable to hold the files found for each folder within the loop as follows: vars: folders: …

---

## [How have I made blockinfile not idempotent](https://forum.ansible.com/t/how-have-i-made-blockinfile-not-idempotent/35472)

<div class="topic-metadata">

**Author:** [@need\_abettername](https://forum.ansible.com/u/need_abettername)\
**Replies:** 1\
**Last updated:** [July 7, 2021, 7:42pm UTC](https://forum.ansible.com/t/how-have-i-made-blockinfile-not-idempotent/35472 "2021-07-07T19:42:10Z")

</div>

I’m always getting a ‘changed’ on running the play, though doing a diff between the two versions shows it hasn’t been. Changing the marker, beginning and end were an attempt to stop it changing but it hasn’t made a diff…

[Previous page](https://forum.ansible.com/c/archives/31.md?page=114)

[Next page](https://forum.ansible.com/c/archives/31.md?page=116)
