# Archives

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

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

**Page:** 264

---

## [How Do I Conditionally Import a Playbook?](https://forum.ansible.com/t/how-do-i-conditionally-import-a-playbook/31121)

<div class="topic-metadata">

**Author:** [@Chrono\_7](https://forum.ansible.com/u/Chrono_7)\
**Replies:** 2\
**Last updated:** [August 26, 2019, 1:46am UTC](https://forum.ansible.com/t/how-do-i-conditionally-import-a-playbook/31121 "2019-08-26T01:46:28Z")

</div>

I’d like to know how to conditionally import a playbook. I have a master playbook which calls several others The master looks like this: \`

---

## [Kerberos authentication for Windows hosts only works with -vv or enabling logging in /etc/ansible/ansible.conf](https://forum.ansible.com/t/kerberos-authentication-for-windows-hosts-only-works-with-vv-or-enabling-logging-in-etc-ansible-ansible-conf/31122)

<div class="topic-metadata">

**Author:** [@Ronald\_van\_Vugt](https://forum.ansible.com/u/Ronald_van_Vugt)\
**Replies:** 0\
**Last updated:** [August 25, 2019, 7:58pm UTC](https://forum.ansible.com/t/kerberos-authentication-for-windows-hosts-only-works-with-vv-or-enabling-logging-in-etc-ansible-ansible-conf/31122 "2019-08-25T19:58:30Z")

</div>

Hello, I have a very strange problem: The situation: One Microsoft domain controller (Windows 2012R2) and several Windows member servers joining this domain (also Windows 2012R2). The ansible server is installed/confi…

---

## [Error downloading a 5 GB file with get\_url on http](https://forum.ansible.com/t/error-downloading-a-5-gb-file-with-get-url-on-http/31103)

<div class="topic-metadata">

**Author:** [@Daniel\_Cure](https://forum.ansible.com/u/Daniel_Cure)\
**Replies:** 6\
**Last updated:** [August 25, 2019, 5:41am UTC](https://forum.ansible.com/t/error-downloading-a-5-gb-file-with-get-url-on-http/31103 "2019-08-25T05:41:43Z")

</div>

Good afternoon dear contributors of ansible. Thank you very much for your kindly answer. I have a situation with a playbook, which takes the following error when the task of downloading a 5GB file runs: after some minu…

---

## [win\_file\_version](https://forum.ansible.com/t/win-file-version/31117)

<div class="topic-metadata">

**Author:** [@Manish\_Kumar](https://forum.ansible.com/u/Manish_Kumar)\
**Replies:** 2\
**Last updated:** [August 25, 2019, 4:46am UTC](https://forum.ansible.com/t/win-file-version/31117 "2019-08-25T04:46:54Z")

</div>

Hi All, Is there any solution to know why ansible is throwing below error even after correct syntax ? It has become very difficult to find as there is no clue even after referring ansible document , everything seems to …

---

## [\[question\] run logstash shell script in ansible playbooks](https://forum.ansible.com/t/question-run-logstash-shell-script-in-ansible-playbooks/31037)

<div class="topic-metadata">

**Author:** [@seungdols](https://forum.ansible.com/u/seungdols)\
**Replies:** 5\
**Last updated:** [August 24, 2019, 2:11pm UTC](https://forum.ansible.com/t/question-run-logstash-shell-script-in-ansible-playbooks/31037 "2019-08-24T14:11:04Z")

</div>

Hi, I like ansible. I have one question. I have the role of setup-logstash. I want to execute the logstash process. (it doesn’t registration in service of centos) setup-logstash role is download logstash.tar.gz and th…

---

## [hcloud plugin - working with dynamic inventory](https://forum.ansible.com/t/hcloud-plugin-working-with-dynamic-inventory/31118)

<div class="topic-metadata">

**Author:** [@Alexey\_Lesovsky](https://forum.ansible.com/u/Alexey_Lesovsky)\
**Replies:** 0\
**Last updated:** [August 24, 2019, 10:36am UTC](https://forum.ansible.com/t/hcloud-plugin-working-with-dynamic-inventory/31118 "2019-08-24T10:36:06Z")

</div>

Hi, Trying to create a dynamic inventory using hcloud plugin and have some issues. Hetzner servers might have user-defined labels and I’m trying to define servers into groups using labels. As I can see my test server …

---

## [hanging ad-hoc gather-facts](https://forum.ansible.com/t/hanging-ad-hoc-gather-facts/31116)

<div class="topic-metadata">

**Author:** [@Libor\_Nenadal](https://forum.ansible.com/u/Libor_Nenadal)\
**Replies:** 0\
**Last updated:** [August 24, 2019, 7:44am UTC](https://forum.ansible.com/t/hanging-ad-hoc-gather-facts/31116 "2019-08-24T07:44:13Z")

</div>

Hi, I am trying to debug playbook that keeps hanging for one machine by running ad-hoc command on that machine: ansible -i hosts -m setup -a ‘gather\_subset=!hardware’ rpi4 It hangs with following debug output: 1059 1…

---

## [setup.exe and enter value then click next](https://forum.ansible.com/t/setup-exe-and-enter-value-then-click-next/31111)

<div class="topic-metadata">

**Author:** [@Manish\_Kumar](https://forum.ansible.com/u/Manish_Kumar)\
**Replies:** 0\
**Last updated:** [August 23, 2019, 12:20pm UTC](https://forum.ansible.com/t/setup-exe-and-enter-value-then-click-next/31111 "2019-08-23T12:20:46Z")

</div>

Dear All, Looking for a ansible module name which invoke setup.exe and capture the value i.e build number and then click next so on … how to achieve it using playbook for window server configuration management . Thank…

---

## [win\_mapped\_drive, drive not found](https://forum.ansible.com/t/win-mapped-drive-drive-not-found/31110)

<div class="topic-metadata">

**Author:** [@uday1kiran](https://forum.ansible.com/u/uday1kiran)\
**Replies:** 0\
**Last updated:** [August 23, 2019, 12:09pm UTC](https://forum.ansible.com/t/win-mapped-drive-drive-not-found/31110 "2019-08-23T12:09:38Z")

</div>

I mapped a network drive using win\_mapped\_drive. But it is not available for next tasks in the play. My Playbook:

---

## [How to add string along with variable in Ansible lineinfile](https://forum.ansible.com/t/how-to-add-string-along-with-variable-in-ansible-lineinfile/31108)

<div class="topic-metadata">

**Author:** [@Easy\_King](https://forum.ansible.com/u/Easy_King)\
**Replies:** 3\
**Last updated:** [August 23, 2019, 10:27am UTC](https://forum.ansible.com/t/how-to-add-string-along-with-variable-in-ansible-lineinfile/31108 "2019-08-23T10:27:27Z")

</div>

I want my filedet.yaml to look like 10.9.75.78: /app/tmp/tmp.log, /vars/tmp/test.out 10.9.55.74: /app/tmp/tmp1.log, /vars/tmp/admin.out The below works fine and logs the data correctly but when i add ': ’ the syntax…

---

## ['Unknown host key error' only happens when running a playbook](https://forum.ansible.com/t/unknown-host-key-error-only-happens-when-running-a-playbook/31101)

<div class="topic-metadata">

**Author:** [@Mauricio\_Tavares](https://forum.ansible.com/u/Mauricio_Tavares)\
**Replies:** 3\
**Last updated:** [August 23, 2019, 7:35am UTC](https://forum.ansible.com/t/unknown-host-key-error-only-happens-when-running-a-playbook/31101 "2019-08-23T07:35:43Z")

</div>

So I want to reach out to my router. I first try raub@desktop:~/dev/ansible$ ssh janitor@uranus.example.com janitor@uranus. example.com's password: which is expected since I have ssh'd into the router quite many time…

---

## [playbook question](https://forum.ansible.com/t/playbook-question/31109)

<div class="topic-metadata">

**Author:** [@Matt\_Luk](https://forum.ansible.com/u/Matt_Luk)\
**Replies:** 0\
**Last updated:** [August 23, 2019, 7:11am UTC](https://forum.ansible.com/t/playbook-question/31109 "2019-08-23T07:11:47Z")

</div>

I want use AWX to shut down the VM in hyper-V. powershell query: $a = Get-ClusterGroup | Where-Object {$.Name -like “server1” -and $.State -eq ‘Online’} $b = $a.OwnerNode Stop-VM -Name “vm1” -ComputerName $b may I…

---

## [Anyway to get output without all the "!"?](https://forum.ansible.com/t/anyway-to-get-output-without-all-the/31102)

<div class="topic-metadata">

**Author:** [@Steven\_Williams](https://forum.ansible.com/u/Steven_Williams)\
**Replies:** 6\
**Last updated:** [August 23, 2019, 6:58am UTC](https://forum.ansible.com/t/anyway-to-get-output-without-all-the/31102 "2019-08-23T06:58:53Z")

</div>

---

## [Ansible variables jinja and facts](https://forum.ansible.com/t/ansible-variables-jinja-and-facts/31107)

<div class="topic-metadata">

**Author:** [@vbotka](https://forum.ansible.com/u/vbotka)\
**Replies:** 0\
**Last updated:** [August 23, 2019, 5:18am UTC](https://forum.ansible.com/t/ansible-variables-jinja-and-facts/31107 "2019-08-23T05:18:37Z")

</div>

So it’s confusing between all the rules on these three is there a good resource to go over this? Or maybe someone willing to help me this weekend figure out when you use quotes when you don’t and when you’re able to use…

---

## [Unable to get value of variable from another Play in Ansible](https://forum.ansible.com/t/unable-to-get-value-of-variable-from-another-play-in-ansible/31104)

<div class="topic-metadata">

**Author:** [@Easy\_King](https://forum.ansible.com/u/Easy_King)\
**Replies:** 4\
**Last updated:** [August 22, 2019, 9:35pm UTC](https://forum.ansible.com/t/unable-to-get-value-of-variable-from-another-play-in-ansible/31104 "2019-08-22T21:35:19Z")

</div>

I wish to obtain the value of “f\_APP” variable of Play 2 into Play 3. Below is my playbook which case be used as a testcase: \` name: “Play 1” hosts: localhost tasks: add\_host: name={{ item }} groups=dest\_nodes …

---

## [win\_nssm](https://forum.ansible.com/t/win-nssm/31097)

<div class="topic-metadata">

**Author:** [@Manish\_Kumar](https://forum.ansible.com/u/Manish_Kumar)\
**Replies:** 4\
**Last updated:** [August 22, 2019, 4:24pm UTC](https://forum.ansible.com/t/win-nssm/31097 "2019-08-22T16:24:27Z")

</div>

Hi All, getting below error so you have any idea about it ? ERROR! Syntax Error while loading YAML. mapping values are not allowed in this context The error appears to be in ‘/home/manish/mk/ansible/install\_exe.yml’:…

---

## [More dynamic variables](https://forum.ansible.com/t/more-dynamic-variables/31094)

<div class="topic-metadata">

**Author:** [@mark.tovey](https://forum.ansible.com/u/mark.tovey)\
**Replies:** 4\
**Last updated:** [August 22, 2019, 3:25pm UTC](https://forum.ansible.com/t/more-dynamic-variables/31094 "2019-08-22T15:25:55Z")

</div>

I hate having to constantly go here to solve issues like this, especially when the issues I keep presenting are all so similar, but eventually I have to just give up trying to solve this on my own and ask. I want to def…

---

## [Ansible for Cisco CallManager](https://forum.ansible.com/t/ansible-for-cisco-callmanager/31030)

<div class="topic-metadata">

**Author:** [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Replies:** 1\
**Last updated:** [August 22, 2019, 12:56pm UTC](https://forum.ansible.com/t/ansible-for-cisco-callmanager/31030 "2019-08-22T12:56:48Z")

</div>

Hi Team, Anybody using Ansible for cisco call manager? thanks

---

## [winrm-install](https://forum.ansible.com/t/winrm-install/31100)

<div class="topic-metadata">

**Author:** [@Manish\_Kumar](https://forum.ansible.com/u/Manish_Kumar)\
**Replies:** 1\
**Last updated:** [August 22, 2019, 12:54pm UTC](https://forum.ansible.com/t/winrm-install/31100 "2019-08-22T12:54:15Z")

</div>

Hi , What could be the reason for below error ? any idea ?

---

## [When yum succeeds, boot?](https://forum.ansible.com/t/when-yum-succeeds-boot/31065)

<div class="topic-metadata">

**Author:** [@Mike\_Eggleston](https://forum.ansible.com/u/Mike_Eggleston)\
**Replies:** 3\
**Last updated:** [August 22, 2019, 12:52pm UTC](https://forum.ansible.com/t/when-yum-succeeds-boot/31065 "2019-08-22T12:52:48Z")

</div>

I am working on a playbook that uses yum. When yum does an update of all installed packages I want to do a conditional shutdown -r. What condition do I check from the yum task succeeding? Mike

---

## [Issues with an jinja and magic variables script any help would be awesome](https://forum.ansible.com/t/issues-with-an-jinja-and-magic-variables-script-any-help-would-be-awesome/31099)

<div class="topic-metadata">

**Author:** [@S\_C\_Rigler](https://forum.ansible.com/u/S_C_Rigler)\
**Replies:** 0\
**Last updated:** [August 22, 2019, 11:53am UTC](https://forum.ansible.com/t/issues-with-an-jinja-and-magic-variables-script-any-help-would-be-awesome/31099 "2019-08-22T11:53:36Z")

</div>

I’m going to guess that you probably don’t have facts cached (or the cache has expired) for the hosts where the variable is undefined.

---

## [get indice in csv file](https://forum.ansible.com/t/get-indice-in-csv-file/31090)

<div class="topic-metadata">

**Author:** [@Karther](https://forum.ansible.com/u/Karther)\
**Replies:** 2\
**Last updated:** [August 22, 2019, 8:37am UTC](https://forum.ansible.com/t/get-indice-in-csv-file/31090 "2019-08-22T08:37:57Z")

</div>

Hey, I have on file csv “clef\_applicatives.csv” with this content : 13,my\_user,my\_host,gis 14,my\_user,my\_host,gis I have next tasks with this content : set\_fact: indice: “{{ item.split(‘,’)\[0\] }}” with\_lines: ca…

---

## [Eliminate /bin/sh -c environment from any ssh command sending.](https://forum.ansible.com/t/eliminate-bin-sh-c-environment-from-any-ssh-command-sending/31083)

<div class="topic-metadata">

**Author:** [@Tom\_Van\_de\_Velde](https://forum.ansible.com/u/Tom_Van_de_Velde)\
**Replies:** 3\
**Last updated:** [August 22, 2019, 6:11am UTC](https://forum.ansible.com/t/eliminate-bin-sh-c-environment-from-any-ssh-command-sending/31083 "2019-08-22T06:11:53Z")

</div>

Hi, I"m writing a module for Ansible, executing ssh commands on the a remote secured shell. Python is not installed and the installation is not possible. But It seams that there is always an attempt to discover the py…

---

## [Issues running playbook in my EVE-NG lab](https://forum.ansible.com/t/issues-running-playbook-in-my-eve-ng-lab/31096)

<div class="topic-metadata">

**Author:** [@Steven\_Williams](https://forum.ansible.com/u/Steven_Williams)\
**Replies:** 0\
**Last updated:** [August 21, 2019, 9:00pm UTC](https://forum.ansible.com/t/issues-running-playbook-in-my-eve-ng-lab/31096 "2019-08-21T21:00:22Z")

</div>

Stevens-MacBook-Pro:ansible stevenwiliams$ cat getver1.yml name: show version and other user level commands hosts: IOL\_Routers gather\_facts: false connection: local tasks: name: run multiple commands on remote no…

---

## [Cant save output to file?](https://forum.ansible.com/t/cant-save-output-to-file/31095)

<div class="topic-metadata">

**Author:** [@Steven\_Williams](https://forum.ansible.com/u/Steven_Williams)\
**Replies:** 2\
**Last updated:** [August 21, 2019, 8:59pm UTC](https://forum.ansible.com/t/cant-save-output-to-file/31095 "2019-08-21T20:59:10Z")

</div>

Stevens-MacBook-Pro:ansible stevenwiliams$ ansible IOL\_Routers -i ./hosts -m raw -a “show run” -u cisco -k \> filetest -bash: filetest: Permission denied Stevens-MacBook-Pro:ansible stevenwiliams$ what am I missing her…

---

## [error in import playbook](https://forum.ansible.com/t/error-in-import-playbook/31092)

<div class="topic-metadata">

**Author:** [@Dmitriy\_Trubov](https://forum.ansible.com/u/Dmitriy_Trubov)\
**Replies:** 1\
**Last updated:** [August 21, 2019, 7:27pm UTC](https://forum.ansible.com/t/error-in-import-playbook/31092 "2019-08-21T19:27:14Z")

</div>

hi, here is simple example: wrapper play book

---

## [Dynamic Inventory Script - Groups in Groups](https://forum.ansible.com/t/dynamic-inventory-script-groups-in-groups/31074)

<div class="topic-metadata">

**Author:** [@A\_Drew](https://forum.ansible.com/u/A_Drew)\
**Replies:** 6\
**Last updated:** [August 21, 2019, 4:41pm UTC](https://forum.ansible.com/t/dynamic-inventory-script-groups-in-groups/31074 "2019-08-21T16:41:19Z")

</div>

Hello, I am running into a problem with trying to create Dynamic Inventories via a Python Script, when the structure has Groups that belong to Groups. If I just have a list of servers in each group, I do not have any p…

---

## [error message in import playbook: this task 'import\_playbook' has extra params](https://forum.ansible.com/t/error-message-in-import-playbook-this-task-import-playbook-has-extra-params/31091)

<div class="topic-metadata">

**Author:** [@Dmitriy\_Trubov](https://forum.ansible.com/u/Dmitriy_Trubov)\
**Replies:** 0\
**Last updated:** [August 21, 2019, 4:39pm UTC](https://forum.ansible.com/t/error-message-in-import-playbook-this-task-import-playbook-has-extra-params/31091 "2019-08-21T16:39:22Z")

</div>

Hi I have error in importing playbook TASK \[Perform storage console playbook test\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Some user of ansible\_user](https://forum.ansible.com/t/some-user-of-ansible-user/31088)

<div class="topic-metadata">

**Author:** [@Karther](https://forum.ansible.com/u/Karther)\
**Replies:** 3\
**Last updated:** [August 21, 2019, 3:38pm UTC](https://forum.ansible.com/t/some-user-of-ansible-user/31088 "2019-08-21T15:38:17Z")

</div>

Hey all !! Ok thanks very much community ansible for your help !! :slight\_smile: It’s very pity that ansible not can play the same playbook on the same host with different user … Thanks very much for your help !! …

---

## [Execute full workflow template per remote host](https://forum.ansible.com/t/execute-full-workflow-template-per-remote-host/31087)

<div class="topic-metadata">

**Author:** [@Andre\_Trindade](https://forum.ansible.com/u/Andre_Trindade)\
**Replies:** 2\
**Last updated:** [August 21, 2019, 3:32pm UTC](https://forum.ansible.com/t/execute-full-workflow-template-per-remote-host/31087 "2019-08-21T15:32:17Z")

</div>

Good morning. I have something that i don´t know if it is possible or not. I have on inventory with multiple remote hosts and i need to execute a Workflow template for them. The problem is i need to execute the full wo…

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

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