# Ansible Project

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

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

**Page:** 127

---

## [Questions about collections and issue tracking](https://forum.ansible.com/t/questions-about-collections-and-issue-tracking/32890)

<div class="topic-metadata">

**Author:** [@Nick\_Kakouros](https://forum.ansible.com/u/Nick_Kakouros)\
**Replies:** 2\
**Last updated:** [May 11, 2020, 2:27pm UTC](https://forum.ansible.com/t/questions-about-collections-and-issue-tracking/32890 "2020-05-11T14:27:49Z")

</div>

My questions: - Should I close issues and PRs on ansible's main project and open new ones on collections' issue trackers? - Will there be a massive issue/PR migration from ansible's main project to the new collections? …

---

## [Line in file](https://forum.ansible.com/t/line-in-file/32907)

<div class="topic-metadata">

**Author:** [@Sivaraman\_P](https://forum.ansible.com/u/Sivaraman_P)\
**Replies:** 2\
**Last updated:** [May 11, 2020, 12:54pm UTC](https://forum.ansible.com/t/line-in-file/32907 "2020-05-11T12:54:20Z")

</div>

Hi All, I am using Line in file nodule to write a list output in ansible to a file in the target machine. Below is the code i have used. hosts: localhost tasks: - lineinfile: create: yes regexp: "NON…

---

## [Question on win\_lineinfile replace/deleting the values with-in config file](https://forum.ansible.com/t/question-on-win-lineinfile-replace-deleting-the-values-with-in-config-file/32905)

<div class="topic-metadata">

**Author:** [@Kumaresh\_kulal](https://forum.ansible.com/u/Kumaresh_kulal)\
**Replies:** 1\
**Last updated:** [May 11, 2020, 11:16am UTC](https://forum.ansible.com/t/question-on-win-lineinfile-replace-deleting-the-values-with-in-config-file/32905 "2020-05-11T11:16:16Z")

</div>

Hello, I have got a task to configure the config file by removing the not required text from the config file. Sample Config File: \<?xml version="1.0" encoding="utf-8" ?\> Text to Remove: ${time} ${level} So…

---

## [strange variable behaviour/error](https://forum.ansible.com/t/strange-variable-behaviour-error/32897)

<div class="topic-metadata">

**Author:** [@Alfredo\_De\_Luca](https://forum.ansible.com/u/Alfredo_De_Luca)\
**Replies:** 7\
**Last updated:** [May 11, 2020, 11:02am UTC](https://forum.ansible.com/t/strange-variable-behaviour-error/32897 "2020-05-11T11:02:28Z")

</div>

Hi all. I have ansible 2.9.7 running on ubuntu. I am just running some test and one is to create an inventory by a template. All good except when I use the template it says fatal: \[instance\]: FAILED! =\> {“changed”: fa…

---

## [how to run the python script from ansible to Windows 2019?](https://forum.ansible.com/t/how-to-run-the-python-script-from-ansible-to-windows-2019/32884)

<div class="topic-metadata">

**Author:** [@Dhilipsingh\_G](https://forum.ansible.com/u/Dhilipsingh_G)\
**Replies:** 7\
**Last updated:** [May 11, 2020, 10:42am UTC](https://forum.ansible.com/t/how-to-run-the-python-script-from-ansible-to-windows-2019/32884 "2020-05-11T10:42:20Z")

</div>

hi Team , i am getting error while run the python script from ansible to windows 2019. kindly help me to fix the issue error : “Traceback (most recent call last):”, " File "deploy.py", line 866, in “, " DatabaseCrea…

---

## [Create VM from ISO on ESXI](https://forum.ansible.com/t/create-vm-from-iso-on-esxi/32904)

<div class="topic-metadata">

**Author:** [@Karther](https://forum.ansible.com/u/Karther)\
**Replies:** 2\
**Last updated:** [May 11, 2020, 10:36am UTC](https://forum.ansible.com/t/create-vm-from-iso-on-esxi/32904 "2020-05-11T10:36:20Z")

</div>

Hello Guy !! :wink: I am trying to create an Eyes Of Network virtual machine from an ISO on an ESXI through a vCenter. I try to use the task below but it doesn’t work :frowning: Can you tell me if this is the right mo…

---

## [SSh-passwdless login](https://forum.ansible.com/t/ssh-passwdless-login/32900)

<div class="topic-metadata">

**Author:** [@Mahendra\_gaddam](https://forum.ansible.com/u/Mahendra_gaddam)\
**Replies:** 1\
**Last updated:** [May 11, 2020, 10:34am UTC](https://forum.ansible.com/t/ssh-passwdless-login/32900 "2020-05-11T10:34:38Z")

</div>

Hi , I’m trying to setup passwdless authentication for remote machine , when i’m doing manually it’s working fine when i’m doing by shell script it’s not working could you please help me out this. below is the shell scr…

---

## [Range function in Ansible?](https://forum.ansible.com/t/range-function-in-ansible/32887)

<div class="topic-metadata">

**Author:** [@Albert\_Short](https://forum.ansible.com/u/Albert_Short)\
**Replies:** 3\
**Last updated:** [May 11, 2020, 7:41am UTC](https://forum.ansible.com/t/range-function-in-ansible/32887 "2020-05-11T07:41:02Z")

</div>

Can anyone tell me there is a solution I can use to do the same thing a Python range function in Ansible? Scenario: Variables I am using \` access\_hostname: name: dariusz\_access1 nodeid\_access: 1001 from\_port: ‘0…

---

## [About loop and regex](https://forum.ansible.com/t/about-loop-and-regex/32902)

<div class="topic-metadata">

**Author:** [@Umut\_Cokbilir](https://forum.ansible.com/u/Umut_Cokbilir)\
**Replies:** 1\
**Last updated:** [May 11, 2020, 7:11am UTC](https://forum.ansible.com/t/about-loop-and-regex/32902 "2020-05-11T07:11:24Z")

</div>

Hi All, I have a question about the loop. As You know, loopback and main interface aren’t any vlan so i need to add ‘null’ for intf\_vlan’s item How can I handle this problem? Here is my ‘.\*.yml’ part and output; Than…

---

## [ios\_config error: unable to set terminal parameters](https://forum.ansible.com/t/ios-config-error-unable-to-set-terminal-parameters/32901)

<div class="topic-metadata">

**Author:** [@Steve\_G](https://forum.ansible.com/u/Steve_G)\
**Replies:** 0\
**Last updated:** [May 11, 2020, 6:19am UTC](https://forum.ansible.com/t/ios-config-error-unable-to-set-terminal-parameters/32901 "2020-05-11T06:19:11Z")

</div>

Hi, I’m trying to test enable mode privilege escalation on a Cisco router. I have created a simple playbook to update the hostname of the router, as shown below -

---

## [gcp\_compute\_disk shows service account not implemented](https://forum.ansible.com/t/gcp-compute-disk-shows-service-account-not-implemented/32899)

<div class="topic-metadata">

**Author:** [@nik\_chakraborty](https://forum.ansible.com/u/nik_chakraborty)\
**Replies:** 0\
**Last updated:** [May 11, 2020, 4:16am UTC](https://forum.ansible.com/t/gcp-compute-disk-shows-service-account-not-implemented/32899 "2020-05-11T04:16:32Z")

</div>

ansible --version ansible 2.7.12 config file = /etc/ansible/ansible.cfg configured module search path = \['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'\] ansible python module location = /usr…

---

## [Ansible lininfile behavior](https://forum.ansible.com/t/ansible-lininfile-behavior/32845)

<div class="topic-metadata">

**Author:** [@Justin\_Nelson](https://forum.ansible.com/u/Justin_Nelson)\
**Replies:** 22\
**Last updated:** [May 10, 2020, 12:47pm UTC](https://forum.ansible.com/t/ansible-lininfile-behavior/32845 "2020-05-10T12:47:50Z")

</div>

I have a simple playbook that I’m testing with in an attempt to update a file that has some test strings mapped to mac addresses. When I run my playbook I can only seem to get one of my two hosts to write the test string…

---

## [aireos\_config with prompts](https://forum.ansible.com/t/aireos-config-with-prompts/32876)

<div class="topic-metadata">

**Author:** [@Scott\_Fella](https://forum.ansible.com/u/Scott_Fella)\
**Replies:** 2\
**Last updated:** [May 9, 2020, 4:31pm UTC](https://forum.ansible.com/t/aireos-config-with-prompts/32876 "2020-05-09T16:31:24Z")

</div>

Hello everyone, Wanted to see if someone has a fix for what I’m trying to do. First off, the aireos\_command allows for “prompt” and “answer”, but the aireos\_config does not. I have tried using the following: “”/r/ny/r/…

---

## [Ansible kickstart playbook](https://forum.ansible.com/t/ansible-kickstart-playbook/32895)

<div class="topic-metadata">

**Author:** [@Bhanu\_Prakash1](https://forum.ansible.com/u/Bhanu_Prakash1)\
**Replies:** 0\
**Last updated:** [May 9, 2020, 10:34am UTC](https://forum.ansible.com/t/ansible-kickstart-playbook/32895 "2020-05-09T10:34:00Z")

</div>

Hello Team, I am looking Ansible kickstart playbook or roles. Any one can support … Thanks. Bhanu

---

## [Writing/Augmenting Host Variables from a Playbook.](https://forum.ansible.com/t/writing-augmenting-host-variables-from-a-playbook/32788)

<div class="topic-metadata">

**Author:** [@Marc\_Haber](https://forum.ansible.com/u/Marc_Haber)\
**Replies:** 10\
**Last updated:** [May 9, 2020, 8:28am UTC](https://forum.ansible.com/t/writing-augmenting-host-variables-from-a-playbook/32788 "2020-05-09T08:28:49Z")

</div>

Let's assume I have a service that can listen on different combinations or host/port:

---

## [Docker Compose Module Issue - Trying to Stop Some Services](https://forum.ansible.com/t/docker-compose-module-issue-trying-to-stop-some-services/32893)

<div class="topic-metadata">

**Author:** [@Kernel\_Panic](https://forum.ansible.com/u/Kernel_Panic)\
**Replies:** 1\
**Last updated:** [May 9, 2020, 5:51am UTC](https://forum.ansible.com/t/docker-compose-module-issue-trying-to-stop-some-services/32893 "2020-05-09T05:51:54Z")

</div>

Hello there, hope this is the right place to ask. Im trying to accomplish the following using docker\_compose module, the idea is, I have a compose file which runs some services and I want to stop some of them but not a…

---

## [Need ideas how to reflect progress os ansible job in web page](https://forum.ansible.com/t/need-ideas-how-to-reflect-progress-os-ansible-job-in-web-page/32886)

<div class="topic-metadata">

**Author:** [@Meir\_Yanovich](https://forum.ansible.com/u/Meir_Yanovich)\
**Replies:** 1\
**Last updated:** [May 8, 2020, 10:38pm UTC](https://forum.ansible.com/t/need-ideas-how-to-reflect-progress-os-ansible-job-in-web-page/32886 "2020-05-08T22:38:05Z")

</div>

hello all i have a simple web page that invokes the ansible job via command line as high level idea how can i reflect some progress from the ansible job to the web page can i set some callbacks or any other idea? I’m…

---

## [Windows service recovery on failure with ansible?](https://forum.ansible.com/t/windows-service-recovery-on-failure-with-ansible/32880)

<div class="topic-metadata">

**Author:** [@vinod\_devops](https://forum.ansible.com/u/vinod_devops)\
**Replies:** 4\
**Last updated:** [May 8, 2020, 7:37pm UTC](https://forum.ansible.com/t/windows-service-recovery-on-failure-with-ansible/32880 "2020-05-08T19:37:57Z")

</div>

Hi Friends, How do I set windows service recovery on. failure, suppose x service stopped due to failure, it needs to started automatically by creating recovery condition with. ansible windows service? How do I do that…

---

## [Problem copying a file from a network drive to a another directory (Windows 10)](https://forum.ansible.com/t/problem-copying-a-file-from-a-network-drive-to-a-another-directory-windows-10/32889)

<div class="topic-metadata">

**Author:** [@rwarken](https://forum.ansible.com/u/rwarken)\
**Replies:** 1\
**Last updated:** [May 8, 2020, 6:38pm UTC](https://forum.ansible.com/t/problem-copying-a-file-from-a-network-drive-to-a-another-directory-windows-10/32889 "2020-05-08T18:38:17Z")

</div>

Hi all. As a beginner, one of the first playbooks I am developing is to copy a file from a network drive to the windows host. \` \[warken1@ansible-controller windows-projects\]$ ansible --version ansible 2.9.7 config f…

---

## [Loop range format quick question](https://forum.ansible.com/t/loop-range-format-quick-question/32852)

<div class="topic-metadata">

**Author:** [@Dave\_Zarei](https://forum.ansible.com/u/Dave_Zarei)\
**Replies:** 2\
**Last updated:** [May 8, 2020, 4:35pm UTC](https://forum.ansible.com/t/loop-range-format-quick-question/32852 "2020-05-08T16:35:16Z")

</div>

HI, quick question about how to use a variable in loop range: I got this: loop: “{{range (0, 2+1) | list}}” and this is what i want to use: loop: “{{range (0, myvariable +1) | list}}” where “myvaribale” contains nu…

---

## [How does Ansible handle IP address duplication?](https://forum.ansible.com/t/how-does-ansible-handle-ip-address-duplication/32862)

<div class="topic-metadata">

**Author:** [@Gary\_Barber](https://forum.ansible.com/u/Gary_Barber)\
**Replies:** 3\
**Last updated:** [May 8, 2020, 9:58am UTC](https://forum.ansible.com/t/how-does-ansible-handle-ip-address-duplication/32862 "2020-05-08T09:58:20Z")

</div>

In my network I manage multiple customers on seperate networks. Many of which are owned by the customer. I want to use Ansible to manage servers in these networks from a single managament network that has connectivity t…

---

## [how to map network drive by ansible?](https://forum.ansible.com/t/how-to-map-network-drive-by-ansible/32885)

<div class="topic-metadata">

**Author:** [@Dhilipsingh\_G](https://forum.ansible.com/u/Dhilipsingh_G)\
**Replies:** 0\
**Last updated:** [May 8, 2020, 6:57am UTC](https://forum.ansible.com/t/how-to-map-network-drive-by-ansible/32885 "2020-05-08T06:57:45Z")

</div>

I am trying to map the drive , drive has been mapped but status as unavailable .Any idea ?

---

## [How to pass params from Ansible to Jenkins Job triggered by Ansible Playbook?](https://forum.ansible.com/t/how-to-pass-params-from-ansible-to-jenkins-job-triggered-by-ansible-playbook/32881)

<div class="topic-metadata">

**Author:** [@Mimo](https://forum.ansible.com/u/Mimo)\
**Replies:** 4\
**Last updated:** [May 7, 2020, 9:08pm UTC](https://forum.ansible.com/t/how-to-pass-params-from-ansible-to-jenkins-job-triggered-by-ansible-playbook/32881 "2020-05-07T21:08:12Z")

</div>

Hello everyone, I checked Ansible documentation, I did not find answers there or anywhere of how I can pass params to the Jenkins Job,so these params should be as an input params to this Jenkins Job and they will be use…

---

## [include\_vars - variable is not Serializable](https://forum.ansible.com/t/include-vars-variable-is-not-serializable/32878)

<div class="topic-metadata">

**Author:** [@Robert\_Wagner](https://forum.ansible.com/u/Robert_Wagner)\
**Replies:** 1\
**Last updated:** [May 7, 2020, 5:53pm UTC](https://forum.ansible.com/t/include-vars-variable-is-not-serializable/32878 "2020-05-07T17:53:33Z")

</div>

Hi all. Wondering if somebody can point me in the right direction - Google has led me on bit of a wild goose chase. I’m using ansible 2.9.6 on CentOS 7.7. I have some vaulted vars that if I put in vars/main.yml work fi…

---

## [rpm--import issues](https://forum.ansible.com/t/rpm-import-issues/32860)

<div class="topic-metadata">

**Author:** [@Quad\_Zero](https://forum.ansible.com/u/Quad_Zero)\
**Replies:** 11\
**Last updated:** [May 7, 2020, 4:22pm UTC](https://forum.ansible.com/t/rpm-import-issues/32860 "2020-05-07T16:22:57Z")

</div>

Hi all, Thank you for your help in my last post. I have come quite a way (small compared to many of you) but nevertheless making good progress each day. I hit roadblocks quite a bit and thankfully google has helped me …

---

## [Include Vars, with\_items , returned data with .results values](https://forum.ansible.com/t/include-vars-with-items-returned-data-with-results-values/32877)

<div class="topic-metadata">

**Author:** [@Adam\_McGill](https://forum.ansible.com/u/Adam_McGill)\
**Replies:** 0\
**Last updated:** [May 7, 2020, 4:00pm UTC](https://forum.ansible.com/t/include-vars-with-items-returned-data-with-results-values/32877 "2020-05-07T16:00:31Z")

</div>

I am using a include\_vars file to pipe the variable to a libary/ps1/py file which will return results / verification. Is there a way to not include the item data /ansible loop information in the .results data. As I figur…

---

## [unable to ssh](https://forum.ansible.com/t/unable-to-ssh/32875)

<div class="topic-metadata">

**Author:** [@Hitesh\_Kumar](https://forum.ansible.com/u/Hitesh_Kumar)\
**Replies:** 1\
**Last updated:** [May 7, 2020, 3:58pm UTC](https://forum.ansible.com/t/unable-to-ssh/32875 "2020-05-07T15:58:11Z")

</div>

Hi All I am facing ssh connection issues with my network switch, need help to establish ssh connection root@VPC0000260:/etc/ansible# ssh 10.25.200.1 Unable to negotiate with 10.25.200.1 port 22: no matching key exchan…

---

## [Cisco interface state change](https://forum.ansible.com/t/cisco-interface-state-change/32874)

<div class="topic-metadata">

**Author:** [@sayantan\_laha1](https://forum.ansible.com/u/sayantan_laha1)\
**Replies:** 0\
**Last updated:** [May 7, 2020, 12:11pm UTC](https://forum.ansible.com/t/cisco-interface-state-change/32874 "2020-05-07T12:11:35Z")

</div>

Dear all, I am newbie in ansible. My requirment is like when i see an interface in suspended mode want to bring back to UP for all cisco device. Please help how do i apply conditional way.

---

## [Directories create twice](https://forum.ansible.com/t/directories-create-twice/32873)

<div class="topic-metadata">

**Author:** [@Quentin\_Aveno](https://forum.ansible.com/u/Quentin_Aveno)\
**Replies:** 2\
**Last updated:** [May 7, 2020, 11:39am UTC](https://forum.ansible.com/t/directories-create-twice/32873 "2020-05-07T11:39:13Z")

</div>

Hello ! I have an issue concerning modules find then copy (with relpath filter) I have a role : \` name: “Test” hosts: localhost vars: archive\_name: “/opt/archive.tgz” local\_tmp\_dir: path: “/tmp/tmp” dest\_dire…

---

## [how can i execute the following oracle sql commands using ansible and get the value back to be stored in variable](https://forum.ansible.com/t/how-can-i-execute-the-following-oracle-sql-commands-using-ansible-and-get-the-value-back-to-be-stored-in-variable/26868)

<div class="topic-metadata">

**Author:** [@Gopi\_Krishna](https://forum.ansible.com/u/Gopi_Krishna)\
**Replies:** 3\
**Last updated:** [May 7, 2020, 11:04am UTC](https://forum.ansible.com/t/how-can-i-execute-the-following-oracle-sql-commands-using-ansible-and-get-the-value-back-to-be-stored-in-variable/26868 "2020-05-07T11:04:44Z")

</div>

HI, MY playbook: sample.sh: . /u05/oracle/VISEBS/12.1.0/VISEBS\_sal-devtl10.env val=‘v$archived\_log’ R=sqlplus '/as sysdba'\<\<EOF set numw 1 lines 80 pages 0; select max(NEXT\_CHANGE#) "RMAN\_SCN" from $val where BACKUP…

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

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