# Latest

**URL:** https://forum.ansible.com/latest.md?page=377

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

**Page:** 378

---

## [Problem using when condition for empty variable](https://forum.ansible.com/t/problem-using-when-condition-for-empty-variable/32871)

<div class="topic-metadata">

**Author:** [@dudu.c](https://forum.ansible.com/u/dudu.c)\
**Replies:** 7\
**Last updated:** [May 11, 2020, 8:50pm UTC](https://forum.ansible.com/t/problem-using-when-condition-for-empty-variable/32871 "2020-05-11T20:50:48Z")

</div>

i have a variable (domain\_name) located on external YML file, I wish to run a task in case the variable is empty. From some reason, it is always skipping no matter if i have a value or not External Yaml domain\_name: …

---

## [If unreachable - stop giving Failed out and move to next host](https://forum.ansible.com/t/if-unreachable-stop-giving-failed-out-and-move-to-next-host/32883)

<div class="topic-metadata">

**Author:** [@Work\_Email](https://forum.ansible.com/u/Work_Email)\
**Replies:** 8\
**Last updated:** [May 11, 2020, 7:53pm UTC](https://forum.ansible.com/t/if-unreachable-stop-giving-failed-out-and-move-to-next-host/32883 "2020-05-11T19:53:41Z")

</div>

Hi, Is it possible for the host that if it’s unreachable - stop giving Failed output and move to the next task. As of now, it just shows the output fails.

---

## [Ansible is ignoring my group vars, hoping I'm doing something obviously wrong...](https://forum.ansible.com/t/ansible-is-ignoring-my-group-vars-hoping-im-doing-something-obviously-wrong/32898)

<div class="topic-metadata">

**Author:** [@David\_Sudia](https://forum.ansible.com/u/David_Sudia)\
**Replies:** 4\
**Last updated:** [May 11, 2020, 5:17pm UTC](https://forum.ansible.com/t/ansible-is-ignoring-my-group-vars-hoping-im-doing-something-obviously-wrong/32898 "2020-05-11T17:17:32Z")

</div>

Here is my directory structure: \` dba.yml (a playbook) inventory/ union.gcp.yml (a dynamic gcp inventory) group\_vars/ all/ vars.yml vault.yml dba/ vars.yml roles/ someroleshere/ \` The command I’m running is …

---

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

---

## [ansible vm snapshot using ansible](https://forum.ansible.com/t/ansible-vm-snapshot-using-ansible/32906)

<div class="topic-metadata">

**Author:** [@Nasir\_Nasir](https://forum.ansible.com/u/Nasir_Nasir)\
**Replies:** 0\
**Last updated:** [May 11, 2020, 11:36am UTC](https://forum.ansible.com/t/ansible-vm-snapshot-using-ansible/32906 "2020-05-11T11:36:42Z")

</div>

Hi all, creating ansible vm snapshot using ansible , As per the given module https://docs.ansible.com/ansible/latest/modules/azure\_rm\_snapshot\_module.html it only Create, update and delete instance of Azure Snapshot, …

---

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

---

## [getting redis error for ansible tower upgrade through docker](https://forum.ansible.com/t/getting-redis-error-for-ansible-tower-upgrade-through-docker/32896)

<div class="topic-metadata">

**Author:** [@ramesh\_k](https://forum.ansible.com/u/ramesh_k)\
**Replies:** 0\
**Last updated:** [May 9, 2020, 11:07am UTC](https://forum.ansible.com/t/getting-redis-error-for-ansible-tower-upgrade-through-docker/32896 "2020-05-09T11:07:04Z")

</div>

Hi, I am upgrading ansible tower from 7.0.0 to 11.0.0 through Docker-Compose file, now when I run the docker-compose up command, I am getting below error. please help me what is the mistake I am doing hear in the config…

---

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

---

## [unable to pull from gitlab](https://forum.ansible.com/t/unable-to-pull-from-gitlab/32892)

<div class="topic-metadata">

**Author:** [@william.dossett](https://forum.ansible.com/u/william.dossett)\
**Replies:** 2\
**Last updated:** [May 8, 2020, 10:01pm UTC](https://forum.ansible.com/t/unable-to-pull-from-gitlab/32892 "2020-05-08T22:01:48Z")

</div>

Hi, I’m pretty much a newb to AWX… I am doing an Ansible-Tower PoC for my company, but I am somewhat limited as to what I can do in my companies network. So I have setup AWX and Gilab on my home lab so that I can do mo…

---

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

---

## [Copying file checked-in to project directory to remote machine](https://forum.ansible.com/t/copying-file-checked-in-to-project-directory-to-remote-machine/32749)

<div class="topic-metadata">

**Author:** [@karthik\_loganathan](https://forum.ansible.com/u/karthik_loganathan)\
**Replies:** 1\
**Last updated:** [May 8, 2020, 7:02am UTC](https://forum.ansible.com/t/copying-file-checked-in-to-project-directory-to-remote-machine/32749 "2020-05-08T07:02:43Z")

</div>

I have a powershell file checked-in to project directory. What is the best way to copy and execute it. When i use win\_copy. it expects the source to be on local machine. where can i find checked-in files on ansible to…

---

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

[Previous page](https://forum.ansible.com/latest.md?page=376)

[Next page](https://forum.ansible.com/latest.md?page=378)
