# Latest

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

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

**Page:** 899

---

## [Unarchive and move](https://forum.ansible.com/t/unarchive-and-move/17382)

<div class="topic-metadata">

**Author:** [@Warren\_Seine](https://forum.ansible.com/u/Warren_Seine)\
**Replies:** 3\
**Last updated:** [January 29, 2015, 5:54am UTC](https://forum.ansible.com/t/unarchive-and-move/17382 "2015-01-29T05:54:22Z")

</div>

Hi, No matter what I do, I cannot find a proper way to extract the content of a directory of a .zip file to a specific directory, without breaking idempotence. Typically, wordpress-4.1.zip contains a “wordpress” direct…

---

## [Saving all --extra-vars parameters in file](https://forum.ansible.com/t/saving-all-extra-vars-parameters-in-file/17372)

<div class="topic-metadata">

**Author:** [@Wojciech\_Korzenny](https://forum.ansible.com/u/Wojciech_Korzenny)\
**Replies:** 1\
**Last updated:** [January 29, 2015, 4:41am UTC](https://forum.ansible.com/t/saving-all-extra-vars-parameters-in-file/17372 "2015-01-29T04:41:55Z")

</div>

Hi, What’s the easiest way to get the list of all --extra-vars parameters which are given for ansible-playbook playbook.yaml command? I’d like to write an ansible module/script which saves those parameters in some file…

---

## [Wait for output of command](https://forum.ansible.com/t/wait-for-output-of-command/17376)

<div class="topic-metadata">

**Author:** [@Mark\_Olliver1](https://forum.ansible.com/u/Mark_Olliver1)\
**Replies:** 1\
**Last updated:** [January 29, 2015, 4:36am UTC](https://forum.ansible.com/t/wait-for-output-of-command/17376 "2015-01-29T04:36:23Z")

</div>

Hi, I have a command that I need to wait for a completed output from which may take an hour how can I tell ansible to wait (ideally with a timeout so that if it does not get a completed status within the hour then it er…

---

## [ansible windows error](https://forum.ansible.com/t/ansible-windows-error/17291)

<div class="topic-metadata">

**Author:** [@lozair31](https://forum.ansible.com/u/lozair31)\
**Replies:** 3\
**Last updated:** [January 28, 2015, 10:33pm UTC](https://forum.ansible.com/t/ansible-windows-error/17291 "2015-01-28T22:33:32Z")

</div>

We attempt to use here ansible 1.8.2 to manage windows servers 2008 → 2012. We attempt to test actually on windows 2012 server with PowerShell 4 and using french LangPack We have followed the ansible documentation for …

---

## [ansible-playbook error using --su](https://forum.ansible.com/t/ansible-playbook-error-using-su/17266)

<div class="topic-metadata">

**Author:** [@Kessia\_Pinheiro](https://forum.ansible.com/u/Kessia_Pinheiro)\
**Replies:** 1\
**Last updated:** [January 28, 2015, 8:23pm UTC](https://forum.ansible.com/t/ansible-playbook-error-using-su/17266 "2015-01-28T20:23:08Z")

</div>

I’m trying to run a simple playbook (actually it’s another one, but I created that for tests), but it keep giving me the error below in any server I’ve tried: \`

---

## [Waiting for host name to be resolvable](https://forum.ansible.com/t/waiting-for-host-name-to-be-resolvable/17368)

<div class="topic-metadata">

**Author:** [@Yaroslav\_Tkachenko](https://forum.ansible.com/u/Yaroslav_Tkachenko)\
**Replies:** 3\
**Last updated:** [January 28, 2015, 3:11pm UTC](https://forum.ansible.com/t/waiting-for-host-name-to-be-resolvable/17368 "2015-01-28T15:11:52Z")

</div>

Hey guys, I’m writing very simple task - I have a web app that I start and it takes a few minutes before it goes online. I thought it can be done like this: name: Waiting for the new environment to be online uri: url…

---

## [How to get newline characters to be interpreted using debug and hipchat](https://forum.ansible.com/t/how-to-get-newline-characters-to-be-interpreted-using-debug-and-hipchat/17385)

<div class="topic-metadata">

**Author:** [@Kathy\_Allen](https://forum.ansible.com/u/Kathy_Allen)\
**Replies:** 1\
**Last updated:** [January 28, 2015, 2:38pm UTC](https://forum.ansible.com/t/how-to-get-newline-characters-to-be-interpreted-using-debug-and-hipchat/17385 "2015-01-28T14:38:37Z")

</div>

Hello. I’m trying to send output via debug and hipchat which I want to appear as multiple lines. But I’m failing. Can anyone advise? In my test below, I of course want the output to show up like this: i am a runon sente…

---

## [VmWare dynamic inventory - better facts](https://forum.ansible.com/t/vmware-dynamic-inventory-better-facts/17392)

<div class="topic-metadata">

**Author:** [@Vaclav\_Adamec](https://forum.ansible.com/u/Vaclav_Adamec)\
**Replies:** 1\
**Last updated:** [January 28, 2015, 1:45pm UTC](https://forum.ansible.com/t/vmware-dynamic-inventory-better-facts/17392 "2015-01-28T13:45:46Z")

</div>

Hi, actually gather facts are not very useful. Is it possible to also/instead include hosts facts which can we get via playbook and vsphere quest task? I think these informations will be useful for everyone I’m not a p…

---

## [Variable in defaults/main.yml not resolved](https://forum.ansible.com/t/variable-in-defaults-main-yml-not-resolved/17393)

<div class="topic-metadata">

**Author:** [@Lars\_Vonk](https://forum.ansible.com/u/Lars_Vonk)\
**Replies:** 0\
**Last updated:** [January 28, 2015, 1:31pm UTC](https://forum.ansible.com/t/variable-in-defaults-main-yml-not-resolved/17393 "2015-01-28T13:31:42Z")

</div>

Hi, I have a setup where I want to dynamically determine the name of a handler (we have multiple tomcat instances running on a machine). A simplified setup can be found here: https://github.com/lvonk/AnsibleTest The ex…

---

## [Call role multiple times with different tags](https://forum.ansible.com/t/call-role-multiple-times-with-different-tags/17380)

<div class="topic-metadata">

**Author:** [@Kevin\_Porter](https://forum.ansible.com/u/Kevin_Porter)\
**Replies:** 1\
**Last updated:** [January 28, 2015, 12:56pm UTC](https://forum.ansible.com/t/call-role-multiple-times-with-different-tags/17380 "2015-01-28T12:56:30Z")

</div>

From one ansible script I would like to call a single role multiple times passing different tags in. example: \` roles: role: service-name tags: install role: get-configs-from-git role: service-name tags: …

---

## [set\_fact and fact caching](https://forum.ansible.com/t/set-fact-and-fact-caching/17386)

<div class="topic-metadata">

**Author:** [@Giovanni\_Tirloni](https://forum.ansible.com/u/Giovanni_Tirloni)\
**Replies:** 1\
**Last updated:** [January 28, 2015, 11:52am UTC](https://forum.ansible.com/t/set-fact-and-fact-caching/17386 "2015-01-28T11:52:53Z")

</div>

Hi, I'm implementing Ansible on a legacy infrastructure and would like to use it first to assess the damage (i.e. run in check mode). There is some information that I've to gather by running commands, because it does…

---

## [Dynamic vars generation, overriding community roles' tasks, wrapper playbooks](https://forum.ansible.com/t/dynamic-vars-generation-overriding-community-roles-tasks-wrapper-playbooks/17390)

<div class="topic-metadata">

**Author:** [@Vladimir\_Sol](https://forum.ansible.com/u/Vladimir_Sol)\
**Replies:** 0\
**Last updated:** [January 28, 2015, 7:42am UTC](https://forum.ansible.com/t/dynamic-vars-generation-overriding-community-roles-tasks-wrapper-playbooks/17390 "2015-01-28T07:42:38Z")

</div>

Hi everyone, first of all, I’m new to Ansible and come from Chef background, so any Chef parallels are welcome. I also use the official ec2 dynamic inventory. To the problems. So, thanks to the ec2 inventory, I have “…

---

## [\`play\` module to group related tasks](https://forum.ansible.com/t/play-module-to-group-related-tasks/17384)

<div class="topic-metadata">

**Author:** [@Grzegorz\_Nosek](https://forum.ansible.com/u/Grzegorz_Nosek)\
**Replies:** 3\
**Last updated:** [January 28, 2015, 1:32am UTC](https://forum.ansible.com/t/play-module-to-group-related-tasks/17384 "2015-01-28T01:32:37Z")

</div>

Hi, I just wrote a module that allows for DRYer playbooks, without repeating sudo/when/with\_items etc. over and over again in a play (or making lots of small included files). It’s on github: https://github.com/gnosek/a…

---

## [Is the \_executor\_hook causing problems on apache2 ?](https://forum.ansible.com/t/is-the-executor-hook-causing-problems-on-apache2/17387)

<div class="topic-metadata">

**Author:** [@Ritesh\_Shetty](https://forum.ansible.com/u/Ritesh_Shetty)\
**Replies:** 0\
**Last updated:** [January 28, 2015, 12:02am UTC](https://forum.ansible.com/t/is-the-executor-hook-causing-problems-on-apache2/17387 "2015-01-28T00:02:07Z")

</div>

I use apache2 to host my REST api’s on pecan framework. I use the python api to run a playbook. I dont know if it is a problem with the ansible executor hooks, but 3 out of 5 times the playbook execution slows down and a…

---

## [How do I return data from powershell to ansible playbook](https://forum.ansible.com/t/how-do-i-return-data-from-powershell-to-ansible-playbook/17377)

<div class="topic-metadata">

**Author:** [@Jaime\_Banda](https://forum.ansible.com/u/Jaime_Banda)\
**Replies:** 1\
**Last updated:** [January 27, 2015, 9:06pm UTC](https://forum.ansible.com/t/how-do-i-return-data-from-powershell-to-ansible-playbook/17377 "2015-01-27T21:06:05Z")

</div>

We will use ansible to manage Windows servers, I want to return data from my powershell scripts to the playbook that is executing the script, How can I return data from the PS script? I only know that i need to return a …

---

## [Ansible copy file module to Windows host fails](https://forum.ansible.com/t/ansible-copy-file-module-to-windows-host-fails/17076)

<div class="topic-metadata">

**Author:** [@Jeff\_Liu](https://forum.ansible.com/u/Jeff_Liu)\
**Replies:** 4\
**Last updated:** [January 27, 2015, 7:45pm UTC](https://forum.ansible.com/t/ansible-copy-file-module-to-windows-host-fails/17076 "2015-01-27T19:45:37Z")

</div>

Hi All, I’m running Ansible 1.8.2 on a CentOS 6.6 server. I’m trying to copy a file to a windows host, but the copy module fails. The weird thing is that I do see that it does PUT the file over to the remote windows ho…

---

## [More on the "include : {{ foo }}.yml" matter - a long and concrete example](https://forum.ansible.com/t/more-on-the-include-foo-yml-matter-a-long-and-concrete-example/17231)

<div class="topic-metadata">

**Author:** [@jang](https://forum.ansible.com/u/jang)\
**Replies:** 1\
**Last updated:** [January 27, 2015, 6:28pm UTC](https://forum.ansible.com/t/more-on-the-include-foo-yml-matter-a-long-and-concrete-example/17231 "2015-01-27T18:28:12Z")

</div>

I've been stumbling over this, too. According to this: http://docs.ansible.com/playbooks\_roles.html#task-include-files-and-encouraging-reuse and specifically, this: \[\[\[ Note You can not conditionally path the locati…

---

## [Help with Idempotent lineinfile regex](https://forum.ansible.com/t/help-with-idempotent-lineinfile-regex/14946)

<div class="topic-metadata">

**Author:** [@Antonio\_Marin](https://forum.ansible.com/u/Antonio_Marin)\
**Replies:** 4\
**Last updated:** [January 27, 2015, 9:51am UTC](https://forum.ansible.com/t/help-with-idempotent-lineinfile-regex/14946 "2015-01-27T09:51:15Z")

</div>

Hello, I’m trying to create a lineinfile task to append a word in a line, when it’s not present, like the following: The line should start with AllowGroups Follows an unknown length sequence of “\\s\\w+” It’s possible to…

---

## [Evaluating 'or' in when: conditional](https://forum.ansible.com/t/evaluating-or-in-when-conditional/17381)

<div class="topic-metadata">

**Author:** [@Barry\_Morrison](https://forum.ansible.com/u/Barry_Morrison)\
**Replies:** 1\
**Last updated:** [January 27, 2015, 4:16am UTC](https://forum.ansible.com/t/evaluating-or-in-when-conditional/17381 "2015-01-27T04:16:11Z")

</div>

I have a task with a when: "'web' in group\_names" and it work as I expect it to, only running against servers in a web group. But now I want the conditional to match on web or db. I expected something like: when: "'…

---

## [Using variable to access specific node in dict](https://forum.ansible.com/t/using-variable-to-access-specific-node-in-dict/17357)

<div class="topic-metadata">

**Author:** [@cselden](https://forum.ansible.com/u/cselden)\
**Replies:** 3\
**Last updated:** [January 26, 2015, 10:05pm UTC](https://forum.ansible.com/t/using-variable-to-access-specific-node-in-dict/17357 "2015-01-26T22:05:16Z")

</div>

Greetings, I’m trying to use a variable to determine which node in a dictionary to get information from. I will later want to use this for iterating over lists of variables so that I can use specific nodes in a dict wit…

---

## [Ansible Web Configurator: is it interesting to someone?](https://forum.ansible.com/t/ansible-web-configurator-is-it-interesting-to-someone/17375)

<div class="topic-metadata">

**Author:** [@Slava\_Semushin](https://forum.ansible.com/u/Slava_Semushin)\
**Replies:** 0\
**Last updated:** [January 26, 2015, 8:43pm UTC](https://forum.ansible.com/t/ansible-web-configurator-is-it-interesting-to-someone/17375 "2015-01-26T20:43:29Z")

</div>

Hello, I have an idea about creating web app for constructing ansible play books. I've created an example that is semi-working but may be interesting and helpfull for someone. You could find a git repo here: https:/…

---

## [Find max value and run action based on a result only on one host](https://forum.ansible.com/t/find-max-value-and-run-action-based-on-a-result-only-on-one-host/17370)

<div class="topic-metadata">

**Author:** [@Karol\_Stepniewski](https://forum.ansible.com/u/Karol_Stepniewski)\
**Replies:** 1\
**Last updated:** [January 26, 2015, 7:42pm UTC](https://forum.ansible.com/t/find-max-value-and-run-action-based-on-a-result-only-on-one-host/17370 "2015-01-26T19:42:52Z")

</div>

Hello, I have a group of hosts named “db” with number of nodes that may vary. Each node has a fact (“seqno”) which is an integer number. I need to compare this fact among all hosts and choose maximum value, then run so…

---

## [Windows puzzler](https://forum.ansible.com/t/windows-puzzler/17296)

<div class="topic-metadata">

**Author:** [@dyioulos](https://forum.ansible.com/u/dyioulos)\
**Replies:** 5\
**Last updated:** [January 26, 2015, 7:41pm UTC](https://forum.ansible.com/t/windows-puzzler/17296 "2015-01-26T19:41:00Z")

</div>

All, I’m a newbie who’s trying to get Ansible to work on a Windows Server client. I followed instructions found here: http://docs.ansible.com/intro\_windows.html, and both the Linux-based Ansible control server and Windo…

---

## [Conditional Variable Based Off Fact](https://forum.ansible.com/t/conditional-variable-based-off-fact/17374)

<div class="topic-metadata">

**Author:** [@Chris\_Short](https://forum.ansible.com/u/Chris_Short)\
**Replies:** 0\
**Last updated:** [January 26, 2015, 6:51pm UTC](https://forum.ansible.com/t/conditional-variable-based-off-fact/17374 "2015-01-26T18:51:19Z")

</div>

I think I wrote the subject right… I am trying to define a variable (a different server IP address) in a task that is based off the network a system is in. If System A is in Network Z then the variable would be pulled fr…

---

## [Pulling out the output of a playbook called with in another playbook](https://forum.ansible.com/t/pulling-out-the-output-of-a-playbook-called-with-in-another-playbook/17373)

<div class="topic-metadata">

**Author:** [@Fazal-e-Rehman\_Khan](https://forum.ansible.com/u/Fazal-e-Rehman_Khan)\
**Replies:** 1\
**Last updated:** [January 26, 2015, 5:12pm UTC](https://forum.ansible.com/t/pulling-out-the-output-of-a-playbook-called-with-in-another-playbook/17373 "2015-01-26T17:12:01Z")

</div>

Dear All, Is there any way of pulling out the output of an ansible-playbook called by “command” module in another playbook? I’m doing it as a workaround against dynamic inventory. The first playbook actually runs a scr…

---

## [Which python?](https://forum.ansible.com/t/which-python/17371)

<div class="topic-metadata">

**Author:** [@Roy\_Smith](https://forum.ansible.com/u/Roy_Smith)\
**Replies:** 1\
**Last updated:** [January 26, 2015, 3:30pm UTC](https://forum.ansible.com/t/which-python/17371 "2015-01-26T15:30:37Z")

</div>

I notice that all the ansible .py files with shebang lines run /usr/bin/python, except for one, which picks up whatever python is on your $PATH: ./utils/module\_docs.py:#!/usr/bin/env python Is this intentional?

---

## [this module requires key=value arguments (\['\<\<INCLUDE\_ANSIBLE\_MODULE\_ARGS\>\>'\])](https://forum.ansible.com/t/this-module-requires-key-value-arguments-include-ansible-module-args/17361)

<div class="topic-metadata">

**Author:** [@Daniel\_Schroeder](https://forum.ansible.com/u/Daniel_Schroeder)\
**Replies:** 8\
**Last updated:** [January 26, 2015, 2:30pm UTC](https://forum.ansible.com/t/this-module-requires-key-value-arguments-include-ansible-module-args/17361 "2015-01-26T14:30:13Z")

</div>

Dear \*, trying to create a new plugin. It’s gonna be a variation of the lineinfile module, so I copied the code from there and placed it into my local action plugins folder, as configured in my ansible.cfg I didn’t cha…

---

## [\[Windows\] When executed locally, powershell script works, but over winrm I get errors](https://forum.ansible.com/t/windows-when-executed-locally-powershell-script-works-but-over-winrm-i-get-errors/17363)

<div class="topic-metadata">

**Author:** [@John-Paul\_Herold](https://forum.ansible.com/u/John-Paul_Herold)\
**Replies:** 5\
**Last updated:** [January 25, 2015, 10:30pm UTC](https://forum.ansible.com/t/windows-when-executed-locally-powershell-script-works-but-over-winrm-i-get-errors/17363 "2015-01-25T22:30:01Z")

</div>

Greetings, I am on the linux side of my company, but have been working with the windows team to increase their level of automation. I have been having our windows devs script out anything the native ansible windows modu…

---

## [Debconf / Exim](https://forum.ansible.com/t/debconf-exim/17369)

<div class="topic-metadata">

**Author:** [@Chris3](https://forum.ansible.com/u/Chris3)\
**Replies:** 0\
**Last updated:** [January 25, 2015, 4:35am UTC](https://forum.ansible.com/t/debconf-exim/17369 "2015-01-25T04:35:02Z")

</div>

Dear All, is there any issue with the following configuration file? http://pastebin.com/8ZcnY6tJ The Exim-Debconf variables aren't set. TIA!

---

## [module docker : dynamic port binding problem](https://forum.ansible.com/t/module-docker-dynamic-port-binding-problem/17348)

<div class="topic-metadata">

**Author:** [@Herve\_Leclerc1](https://forum.ansible.com/u/Herve_Leclerc1)\
**Replies:** 4\
**Last updated:** [January 24, 2015, 6:12pm UTC](https://forum.ansible.com/t/module-docker-dynamic-port-binding-problem/17348 "2015-01-24T18:12:24Z")

</div>

Hello Ansible 1.9 - docker-py 0.71 - docker version 1.4.1 I’m trying to do in a playbook this docker command line docker run --name projetx -d -v /Users/hleclerc/tmp/data/projetx/mysql:/var/lib/mysql -p :3306 -e MYSQL…

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

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