# Archives

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

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

**Page:** 203

---

## [Shutting Down Windows with Ansible](https://forum.ansible.com/t/shutting-down-windows-with-ansible/32917)

<div class="topic-metadata">

**Author:** [@Jeremy\_Thompson](https://forum.ansible.com/u/Jeremy_Thompson)\
**Replies:** 2\
**Last updated:** [May 12, 2020, 10:00pm UTC](https://forum.ansible.com/t/shutting-down-windows-with-ansible/32917 "2020-05-12T22:00:56Z")

</div>

I’m simply wanting to create a playbook that will shutdown a windows computer. I’ve got my ansible server talking to my windows and can ping it, but my playbook gives the below error when trying to run. Any ideas? Playb…

---

## [how to start specific windows service with ansible?](https://forum.ansible.com/t/how-to-start-specific-windows-service-with-ansible/32914)

<div class="topic-metadata">

**Author:** [@vinod\_devops](https://forum.ansible.com/u/vinod_devops)\
**Replies:** 3\
**Last updated:** [May 12, 2020, 7:39pm UTC](https://forum.ansible.com/t/how-to-start-specific-windows-service-with-ansible/32914 "2020-05-12T19:39:44Z")

</div>

Thanks, vinod

---

## [New Ansible releases 2.9.8, 2.8.12, and 2.7.18](https://forum.ansible.com/t/new-ansible-releases-2-9-8-2-8-12-and-2-7-18/32913)

<div class="topic-metadata">

**Author:** [@Matt\_Clay1](https://forum.ansible.com/u/Matt_Clay1)\
**Replies:** 0\
**Last updated:** [May 12, 2020, 3:41pm UTC](https://forum.ansible.com/t/new-ansible-releases-2-9-8-2-8-12-and-2-7-18/32913 "2020-05-12T15:41:04Z")

</div>

Hi all- we’re happy to announce that the general release of Ansible 2.9.8, 2.8.12, and 2.7.18 are now available! How do you get it?

---

## [New Ansible releases 2.9.8, 2.8.12, and 2.7.18](https://forum.ansible.com/t/new-ansible-releases-2-9-8-2-8-12-and-2-7-18/32912)

<div class="topic-metadata">

**Author:** [@Matt\_Clay1](https://forum.ansible.com/u/Matt_Clay1)\
**Replies:** 0\
**Last updated:** [May 12, 2020, 3:41pm UTC](https://forum.ansible.com/t/new-ansible-releases-2-9-8-2-8-12-and-2-7-18/32912 "2020-05-12T15:41:01Z")

</div>

Hi all- we’re happy to announce that the general release of Ansible 2.9.8, 2.8.12, and 2.7.18 are now available! How do you get it?

---

## [Window patch module not working on 2.9 Ansible](https://forum.ansible.com/t/window-patch-module-not-working-on-2-9-ansible/32908)

<div class="topic-metadata">

**Author:** [@Amit\_Kumar](https://forum.ansible.com/u/Amit_Kumar)\
**Replies:** 3\
**Last updated:** [May 12, 2020, 9:03am UTC](https://forum.ansible.com/t/window-patch-module-not-working-on-2-9-ansible/32908 "2020-05-12T09:03:52Z")

</div>

Hi , I tried to installed the window patch with below yml but it’s not installing the found patch. It just search the patch and skipped that patch, kindly please suggest Where i am doing wrong. I have mention the Yml…

---

## [Unable to parse Ansible inventory file as an inventory source in Azure CLI](https://forum.ansible.com/t/unable-to-parse-ansible-inventory-file-as-an-inventory-source-in-azure-cli/32909)

<div class="topic-metadata">

**Author:** [@Render](https://forum.ansible.com/u/Render)\
**Replies:** 0\
**Last updated:** [May 12, 2020, 7:07am UTC](https://forum.ansible.com/t/unable-to-parse-ansible-inventory-file-as-an-inventory-source-in-azure-cli/32909 "2020-05-12T07:07:42Z")

</div>

Hi there, I am trying to manage Azure Vms using Ansible from Azure CLI. The first thing is to parse inventory file where the managed VMs are listed. I uploaded the inventory file “azure\_rm.yml” and checked it is there: …

---

## [Create user with ssh key, error deploying key](https://forum.ansible.com/t/create-user-with-ssh-key-error-deploying-key/32879)

<div class="topic-metadata">

**Author:** [@Joe\_G2](https://forum.ansible.com/u/Joe_G2)\
**Replies:** 9\
**Last updated:** [May 11, 2020, 11:08pm UTC](https://forum.ansible.com/t/create-user-with-ssh-key-error-deploying-key/32879 "2020-05-11T23:08:49Z")

</div>

Need help with the error I’m getting trying to create users with ssh keys. It creates the user fine but when it comes time to deploy the ssh key it fails. I’ve tried this using a couple different playbooks and both simil…

---

## [Ansible can't access my network devices. Getting :    FAILED! =\> {"changed": false, "msg": "Connection type ssh is not valid for this module"}](https://forum.ansible.com/t/ansible-cant-access-my-network-devices-getting-failed-changed-false-msg-connection-type-ssh-is-not-valid-for-this-module/31657)

<div class="topic-metadata">

**Author:** [@Palmer](https://forum.ansible.com/u/Palmer)\
**Replies:** 9\
**Last updated:** [May 11, 2020, 8:53pm UTC](https://forum.ansible.com/t/ansible-cant-access-my-network-devices-getting-failed-changed-false-msg-connection-type-ssh-is-not-valid-for-this-module/31657 "2020-05-11T20:53:30Z")

</div>

Hi, I’m new to Ansible and trying to write my first playbook. But i keep getting an error: fatal: \[RTR1\]: FAILED! =\> {“changed”: false, “msg”: “Connection type ssh is not valid for this module”} I’m suspecting Ansible…

---

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

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

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