# Ansible Project

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

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

**Page:** 70

---

## [How to set become pass for become\_method: su?](https://forum.ansible.com/t/how-to-set-become-pass-for-become-method-su/35508)

<div class="topic-metadata">

**Author:** [@Joey\_Cheng](https://forum.ansible.com/u/Joey_Cheng)\
**Replies:** 0\
**Last updated:** [July 14, 2021, 5:46pm UTC](https://forum.ansible.com/t/how-to-set-become-pass-for-become-method-su/35508 "2021-07-14T17:46:18Z")

</div>

Hello folks, I was using --ask-become-pass and it worked fine. But now I’m going to run multiple playbooks at one time so I’m going to include become pass in plaintext for each group. I tried “ansible\_become\_pass” in in…

---

## [FRR in a Docker container: socket\_path must be a value](https://forum.ansible.com/t/frr-in-a-docker-container-socket-path-must-be-a-value/35504)

<div class="topic-metadata">

**Author:** [@Saqib\_Ilyas](https://forum.ansible.com/u/Saqib_Ilyas)\
**Replies:** 0\
**Last updated:** [July 13, 2021, 6:38pm UTC](https://forum.ansible.com/t/frr-in-a-docker-container-socket-path-must-be-a-value/35504 "2021-07-13T18:38:30Z")

</div>

Hi I used containerlab to set up a small topology with a few FRR routers running as Docker containers. Accordingly, I set ansible\_connection: Docker. However, when I run the following playbook: name: testing facts ho…

---

## [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…

---

## [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…

---

## [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.…

---

## [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…

---

## [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.

---

## [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…

---

## [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

---

## [\[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…

---

## [Ansible role for jaeger](https://forum.ansible.com/t/ansible-role-for-jaeger/35471)

<div class="topic-metadata">

**Author:** [@Zhang\_Zhao](https://forum.ansible.com/u/Zhang_Zhao)\
**Replies:** 1\
**Last updated:** [July 7, 2021, 7:23pm UTC](https://forum.ansible.com/t/ansible-role-for-jaeger/35471 "2021-07-07T19:23:48Z")

</div>

Hi Ansible gurus, I was trying to create a role for running Jaeger executables as service. However I received this error when I was running my playbook. Could you please advice where did I do wrong? fatal: \[jaeger\]: FA…

---

## [Convert with\_dict to loop - help!](https://forum.ansible.com/t/convert-with-dict-to-loop-help/35465)

<div class="topic-metadata">

**Author:** [@Piya\_Attapatto](https://forum.ansible.com/u/Piya_Attapatto)\
**Replies:** 2\
**Last updated:** [July 6, 2021, 11:19am UTC](https://forum.ansible.com/t/convert-with-dict-to-loop-help/35465 "2021-07-06T11:19:39Z")

</div>

Hello there! I’m trying (and failing) to convert a with\_dict to a loop (have referred to this section of the docs https://docs.ansible.com/ansible/latest/user\_guide/playbooks\_loops.html#with-dict) with no success. I’m l…

---

## [ec2\_vpc\_route\_table - how to configure a local route](https://forum.ansible.com/t/ec2-vpc-route-table-how-to-configure-a-local-route/35464)

<div class="topic-metadata">

**Author:** [@Gerald\_Preissler](https://forum.ansible.com/u/Gerald_Preissler)\
**Replies:** 2\
**Last updated:** [July 6, 2021, 11:11am UTC](https://forum.ansible.com/t/ec2-vpc-route-table-how-to-configure-a-local-route/35464 "2021-07-06T11:11:42Z")

</div>

Hi, I’m trying to set up a VPC in AWS using Ansible. I’m running into a problem when I try to create a route table that should route packets to local. The following does not work: name: create route table for private s…

---

## [Scheduler not working on AWX](https://forum.ansible.com/t/scheduler-not-working-on-awx/35463)

<div class="topic-metadata">

**Author:** [@Ankur\_Porwal](https://forum.ansible.com/u/Ankur_Porwal)\
**Replies:** 1\
**Last updated:** [July 5, 2021, 11:12am UTC](https://forum.ansible.com/t/scheduler-not-working-on-awx/35463 "2021-07-05T11:12:34Z")

</div>

Hi All, Am using AWX 15.0 version and on AWX found that scheduler is not scheduling the jobs … am running AWX on kubernetes … I created it via awx operator … this was all working till yesterday … but suddenly it stopped…

---

## [Question on force\_source in community.docker.docker\_image](https://forum.ansible.com/t/question-on-force-source-in-community-docker-docker-image/35462)

<div class="topic-metadata">

**Author:** [@Rafal\_Skolasinski](https://forum.ansible.com/u/Rafal_Skolasinski)\
**Replies:** 2\
**Last updated:** [July 5, 2021, 10:36am UTC](https://forum.ansible.com/t/question-on-force-source-in-community-docker-docker-image/35462 "2021-07-05T10:36:22Z")

</div>

Hi, I have a question on how the force\_source works in community.docker.docker\_image in case of pulling docker image. Assuming that I already have a my-awesome-stuff/my-image:my-tag locally and run ansible playbook wit…

---

## [deploy VM in ESXi using Ansible](https://forum.ansible.com/t/deploy-vm-in-esxi-using-ansible/35460)

<div class="topic-metadata">

**Author:** [@Orkhan\_Mammadov](https://forum.ansible.com/u/Orkhan_Mammadov)\
**Replies:** 6\
**Last updated:** [July 4, 2021, 9:11pm UTC](https://forum.ansible.com/t/deploy-vm-in-esxi-using-ansible/35460 "2021-07-04T21:11:16Z")

</div>

Hi guys, Could you please help me with the guidance to create VM in ESXi using ansible playbook? I tried to find proper one over forums, unfortunately could not find. Regards.

---

## [Reduce output of ansible-playbook command](https://forum.ansible.com/t/reduce-output-of-ansible-playbook-command/35459)

<div class="topic-metadata">

**Author:** [@rolandm](https://forum.ansible.com/u/rolandm)\
**Replies:** 4\
**Last updated:** [July 4, 2021, 7:52pm UTC](https://forum.ansible.com/t/reduce-output-of-ansible-playbook-command/35459 "2021-07-04T19:52:53Z")

</div>

Hello, is there some option to make ansible-playbook “quiet” about its own output and print only the explicit debug msg in line #17 . I tried to ‘use no\_log: True’ both on task and tasks level but it suppresses all outp…

---

## [How to start Ray cluster head node with ansible?](https://forum.ansible.com/t/how-to-start-ray-cluster-head-node-with-ansible/35458)

<div class="topic-metadata">

**Author:** [@Joey\_Cheng](https://forum.ansible.com/u/Joey_Cheng)\
**Replies:** 3\
**Last updated:** [July 3, 2021, 6:32pm UTC](https://forum.ansible.com/t/how-to-start-ray-cluster-head-node-with-ansible/35458 "2021-07-03T18:32:00Z")

</div>

Hello folks, I’m using ansible to deploy Ray cluster. I’m initializing head node as following: - name: Start Ray on head node ansible.builtin.command: ray start --head --port=6379 environment: PATH: /opt/anaconda3/b…

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

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