# Latest

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

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

**Page:** 770

---

## [Escaping Json String](https://forum.ansible.com/t/escaping-json-string/21249)

<div class="topic-metadata">

**Author:** [@ben2](https://forum.ansible.com/u/ben2)\
**Replies:** 0\
**Last updated:** [April 24, 2016, 1:07pm UTC](https://forum.ansible.com/t/escaping-json-string/21249 "2016-04-24T13:07:08Z")

</div>

In version 2.0.2.0 (in version 2.0.0.2 it works fine) In a local action I’m generating the following json object https://gist.github.com/thebenwaters/7795d1cdead9280e0c5abcbc23b9ca59 Then registering it to standard ou…

---

## [Python API Documentation](https://forum.ansible.com/t/python-api-documentation/20395)

<div class="topic-metadata">

**Author:** [@Michael\_Mattioli](https://forum.ansible.com/u/Michael_Mattioli)\
**Replies:** 23\
**Last updated:** [April 23, 2016, 7:42pm UTC](https://forum.ansible.com/t/python-api-documentation/20395 "2016-04-23T19:42:18Z")

</div>

Documentation for the Python API is very sparse; aside from this page, there’s really nothing else to offer aside from “read the source code and figure it out”. While the source code is generously commented, it would be …

---

## [Ansible hangs](https://forum.ansible.com/t/ansible-hangs/21182)

<div class="topic-metadata">

**Author:** [@Vivek\_Aggarwal](https://forum.ansible.com/u/Vivek_Aggarwal)\
**Replies:** 1\
**Last updated:** [April 23, 2016, 6:44pm UTC](https://forum.ansible.com/t/ansible-hangs/21182 "2016-04-23T18:44:49Z")

</div>

While running my ansible playbook on 350 hosts, the ansible process hangs in between & shows a couple of defunct processes. Is there any way out i can resolve this,Please suggest i m using below version :-

---

## [passign arguments to the handler](https://forum.ansible.com/t/passign-arguments-to-the-handler/21248)

<div class="topic-metadata">

**Author:** [@Pathangi\_Janardhanan](https://forum.ansible.com/u/Pathangi_Janardhanan)\
**Replies:** 1\
**Last updated:** [April 23, 2016, 12:24am UTC](https://forum.ansible.com/t/passign-arguments-to-the-handler/21248 "2016-04-23T00:24:55Z")

</div>

Hi, I see many thread of discussion on this topic, but I am not able to find any resolution on this. I want to be able to pass parameters to my handler. I am managing a set of Redis DB on a node, and if the configurati…

---

## [Variable "role" in play is undefined](https://forum.ansible.com/t/variable-role-in-play-is-undefined/21244)

<div class="topic-metadata">

**Author:** [@Jeff\_Hardy](https://forum.ansible.com/u/Jeff_Hardy)\
**Replies:** 5\
**Last updated:** [April 22, 2016, 9:46pm UTC](https://forum.ansible.com/t/variable-role-in-play-is-undefined/21244 "2016-04-22T21:46:14Z")

</div>

I have a static inventory setup with the hope of applying different roles to different hosts, but am finding that this playbook is not achieving what I would like: hosts: “{{target}}” pre\_tasks: debug: var=role roles…

---

## [Create exception for service on a host](https://forum.ansible.com/t/create-exception-for-service-on-a-host/21230)

<div class="topic-metadata">

**Author:** [@Pogan](https://forum.ansible.com/u/Pogan)\
**Replies:** 2\
**Last updated:** [April 22, 2016, 6:38pm UTC](https://forum.ansible.com/t/create-exception-for-service-on-a-host/21230 "2016-04-22T18:38:51Z")

</div>

Hi, I guess this is fairly simple question, but I’m stuck with it… I have a playbook that checks whether services are up on hosts and starts them if they are not in started state, for example: hosts: mailservers ta…

---

## [with\_dict keys with "." was working in Ansible 1.9.4 but not with 2.1.0](https://forum.ansible.com/t/with-dict-keys-with-was-working-in-ansible-1-9-4-but-not-with-2-1-0/21245)

<div class="topic-metadata">

**Author:** [@Ryan\_Groten](https://forum.ansible.com/u/Ryan_Groten)\
**Replies:** 0\
**Last updated:** [April 22, 2016, 2:55pm UTC](https://forum.ansible.com/t/with-dict-keys-with-was-working-in-ansible-1-9-4-but-not-with-2-1-0/21245 "2016-04-22T14:55:49Z")

</div>

When setting sysctl parameters I use the following variable: kernel\_params: kernel.sem: 250 32000 100 128 kernel.shmmni: 4096 net.core.rmem\_max: 4194304 net.core.rmem\_default: 262144 net.core.wmem\_max: 1048576 net.core.…

---

## [binary module seems does not work](https://forum.ansible.com/t/binary-module-seems-does-not-work/12713)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 10\
**Last updated:** [April 22, 2016, 2:55pm UTC](https://forum.ansible.com/t/binary-module-seems-does-not-work/12713 "2016-04-22T14:55:24Z")

</div>

I don’t think there’s going to be that many needs where the system will require a native binary module for speed reasons, though I would support patches that detected the file was binary and attempted to /not/ process i…

---

## [Async and expect module](https://forum.ansible.com/t/async-and-expect-module/21139)

<div class="topic-metadata">

**Author:** [@David\_Gonzalez\_Marti](https://forum.ansible.com/u/David_Gonzalez_Marti)\
**Replies:** 3\
**Last updated:** [April 22, 2016, 12:34pm UTC](https://forum.ansible.com/t/async-and-expect-module/21139 "2016-04-22T12:34:37Z")

</div>

I’m trying to use expect Ansible module to perform an interactive task in a virtual machine. The module works, but the task is very long and I have problems with the timeout. I get an error like this. I tried to use asyn…

---

## [Patch Management by Ansible](https://forum.ansible.com/t/patch-management-by-ansible/21243)

<div class="topic-metadata">

**Author:** [@Deepak\_Pradhan](https://forum.ansible.com/u/Deepak_Pradhan)\
**Replies:** 0\
**Last updated:** [April 22, 2016, 10:20am UTC](https://forum.ansible.com/t/patch-management-by-ansible/21243 "2016-04-22T10:20:44Z")

</div>

Hi Team, How we can do? Patching as a maintenance task to maintain various images as compared to a master golden image – How can we use Ansible to do the patch management and ensure both images are alike. Thanks, Dee…

---

## [Issue with using raw module with double quoted parameters under Windows](https://forum.ansible.com/t/issue-with-using-raw-module-with-double-quoted-parameters-under-windows/21234)

<div class="topic-metadata">

**Author:** [@Alexey\_Larsky](https://forum.ansible.com/u/Alexey_Larsky)\
**Replies:** 3\
**Last updated:** [April 22, 2016, 6:31am UTC](https://forum.ansible.com/t/issue-with-using-raw-module-with-double-quoted-parameters-under-windows/21234 "2016-04-22T06:31:49Z")

</div>

I’ve stuck with using raw module with double quoted parameters under Windows. According with http://docs.ansible.com/ansible/intro\_windows.html raw: cmd /c “net use \\server\\share & second\_command” works, but how to us…

---

## [Best practices for provisioning multiple interconnecting environments](https://forum.ansible.com/t/best-practices-for-provisioning-multiple-interconnecting-environments/21207)

<div class="topic-metadata">

**Author:** [@Yuri\_Lukyanov](https://forum.ansible.com/u/Yuri_Lukyanov)\
**Replies:** 4\
**Last updated:** [April 22, 2016, 3:50am UTC](https://forum.ansible.com/t/best-practices-for-provisioning-multiple-interconnecting-environments/21207 "2016-04-22T03:50:09Z")

</div>

Hi, Here is what I’m trying to achieve. There are several environments (or clusters) that are relatively independent but still have some connections in between. Let’s say I have ‘production’, ‘staging’ and ‘general’ en…

---

## ["Simple" set\_fact issue](https://forum.ansible.com/t/simple-set-fact-issue/21241)

<div class="topic-metadata">

**Author:** [@Moshe\_Suberri](https://forum.ansible.com/u/Moshe_Suberri)\
**Replies:** 0\
**Last updated:** [April 22, 2016, 3:10am UTC](https://forum.ansible.com/t/simple-set-fact-issue/21241 "2016-04-22T03:10:18Z")

</div>

I am trying to create a list from a set of variables and have some problem doing that. I must admit I do not understand why it is not easy to manipulate list/dict/vars in Ansible. I must be missing somthing. So here is…

---

## [Appending a variable to a list, howto?  - "Error was can only concatenat e list (not \\"unicode\\") to list"}"](https://forum.ansible.com/t/appending-a-variable-to-a-list-howto-error-was-can-only-concatenat-e-list-not-unicode-to-list/21240)

<div class="topic-metadata">

**Author:** [@Moshe\_Suberri](https://forum.ansible.com/u/Moshe_Suberri)\
**Replies:** 0\
**Last updated:** [April 22, 2016, 2:23am UTC](https://forum.ansible.com/t/appending-a-variable-to-a-list-howto-error-was-can-only-concatenat-e-list-not-unicode-to-list/21240 "2016-04-22T02:23:10Z")

</div>

Error message: fatal: \[localhost\]: FAILED! =\> {“failed”: true, “msg”: “an unexpected type error occurred. Error was can only concatenate list (not "unicode") to list”} Example: my\_list= my\_var=“var1” my\_list= mylist+…

---

## [fact module return values](https://forum.ansible.com/t/fact-module-return-values/21239)

<div class="topic-metadata">

**Author:** [@Tim1](https://forum.ansible.com/u/Tim1)\
**Replies:** 2\
**Last updated:** [April 22, 2016, 1:56am UTC](https://forum.ansible.com/t/fact-module-return-values/21239 "2016-04-22T01:56:12Z")

</div>

Hey all, Can anyone provide any guidance on how a fact module should return an optional fact that is empty? Is it better to not list that fact at all in the response? So one could use “'fact in foo” Or to list it, but…

---

## [Installing Ansible on Control Machine with Multiple Versions of Python](https://forum.ansible.com/t/installing-ansible-on-control-machine-with-multiple-versions-of-python/21218)

<div class="topic-metadata">

**Author:** [@asilver](https://forum.ansible.com/u/asilver)\
**Replies:** 3\
**Last updated:** [April 22, 2016, 1:18am UTC](https://forum.ansible.com/t/installing-ansible-on-control-machine-with-multiple-versions-of-python/21218 "2016-04-22T01:18:12Z")

</div>

Hello, I have a Redhat 6.7 system with two versions of Python. The version that came with the OS installation and used by the system (2.6) and a second one that I installed (2.7.11). If I want ansible to use the 2.7.11 …

---

## [Script runs but ansible fails?](https://forum.ansible.com/t/script-runs-but-ansible-fails/21153)

<div class="topic-metadata">

**Author:** [@richard\_kappler](https://forum.ansible.com/u/richard_kappler)\
**Replies:** 2\
**Last updated:** [April 21, 2016, 10:48pm UTC](https://forum.ansible.com/t/script-runs-but-ansible-fails/21153 "2016-04-21T22:48:56Z")

</div>

This is a continuation of an earlier thread “Can Ansible interact with an Application.” If Edgars is reading, I went a little different route. Parted won’t quite work as I’m adding two partitions to /dev/sda which alrea…

---

## [pass ec2 tag to a task conditional](https://forum.ansible.com/t/pass-ec2-tag-to-a-task-conditional/21134)

<div class="topic-metadata">

**Author:** [@Paul\_Stivers](https://forum.ansible.com/u/Paul_Stivers)\
**Replies:** 2\
**Last updated:** [April 21, 2016, 10:11pm UTC](https://forum.ansible.com/t/pass-ec2-tag-to-a-task-conditional/21134 "2016-04-21T22:11:54Z")

</div>

Is there a way to pass the value of an ec2 tag to a conditional in an ansible task? Boto is installed and used to determine which tagged ec2 servers the playbook is run against. For example: ec2 server with tag name “A…

---

## [ec2\_vpc :: Different output format when using with\_items](https://forum.ansible.com/t/ec2-vpc-different-output-format-when-using-with-items/21238)

<div class="topic-metadata">

**Author:** [@Gustavo\_Aguiar](https://forum.ansible.com/u/Gustavo_Aguiar)\
**Replies:** 0\
**Last updated:** [April 21, 2016, 9:41pm UTC](https://forum.ansible.com/t/ec2-vpc-different-output-format-when-using-with-items/21238 "2016-04-21T21:41:49Z")

</div>

Hi All, I have noticed a “strange” behaviour in one of my playbooks that use the ec2\_vpc module. After changing how to input data the output format changed. I’m not sure if this is expected or not but couldn’t find any…

---

## [Allowing user to interact with dynamic inventory script?  (to provide CMDB credentials)](https://forum.ansible.com/t/allowing-user-to-interact-with-dynamic-inventory-script-to-provide-cmdb-credentials/21156)

<div class="topic-metadata">

**Author:** [@Aleksey\_Tsalolikhin](https://forum.ansible.com/u/Aleksey_Tsalolikhin)\
**Replies:** 1\
**Last updated:** [April 21, 2016, 7:58pm UTC](https://forum.ansible.com/t/allowing-user-to-interact-with-dynamic-inventory-script-to-provide-cmdb-credentials/21156 "2016-04-21T19:58:55Z")

</div>

Hello, I’m feeding Ansible 2.0.0.2 dynamic inventory from an enterprise CMDB system. I’ve worked through two issues already: inject empty \_meta hostvars to be able to read in large JSON objects without killing RAM & …

---

## [Problems setting DEFAULT\_LOG\_PATH in Python](https://forum.ansible.com/t/problems-setting-default-log-path-in-python/21237)

<div class="topic-metadata">

**Author:** [@Locom](https://forum.ansible.com/u/Locom)\
**Replies:** 0\
**Last updated:** [April 21, 2016, 6:38pm UTC](https://forum.ansible.com/t/problems-setting-default-log-path-in-python/21237 "2016-04-21T18:38:55Z")

</div>

Hello folks, I’m new to Python/Ansible and I’m running into a problem that’s stumped me for 2 days. I’m trying to modify the DEFAULT\_LOG\_PATH variable in Python (the log file name will be date based). The setup below wo…

---

## [Assign to a variable a string with the same name as the variable name does not work (i.e: var1="var1"   does not work)](https://forum.ansible.com/t/assign-to-a-variable-a-string-with-the-same-name-as-the-variable-name-does-not-work-i-e-var1-var1-does-not-work/21236)

<div class="topic-metadata">

**Author:** [@Moshe\_Suberri](https://forum.ansible.com/u/Moshe_Suberri)\
**Replies:** 0\
**Last updated:** [April 21, 2016, 6:37pm UTC](https://forum.ansible.com/t/assign-to-a-variable-a-string-with-the-same-name-as-the-variable-name-does-not-work-i-e-var1-var1-does-not-work/21236 "2016-04-21T18:37:41Z")

</div>

playbook file : #var-test.yml

---

## [adding brands](https://forum.ansible.com/t/adding-brands/21235)

<div class="topic-metadata">

**Author:** [@Guy\_Matz1](https://forum.ansible.com/u/Guy_Matz1)\
**Replies:** 0\
**Last updated:** [April 21, 2016, 5:56pm UTC](https://forum.ansible.com/t/adding-brands/21235 "2016-04-21T17:56:11Z")

</div>

Hello! We have used ansible to deploy an app and all is well. We now need to deploy the app as two separate “branded” apps, i.e. different set of servers, new RPM name, etc., and are experiencing some growing pains . . .…

---

## [Ansible Docker Module and JSON](https://forum.ansible.com/t/ansible-docker-module-and-json/21233)

<div class="topic-metadata">

**Author:** [@Mike\_Albert](https://forum.ansible.com/u/Mike_Albert)\
**Replies:** 0\
**Last updated:** [April 21, 2016, 4:02pm UTC](https://forum.ansible.com/t/ansible-docker-module-and-json/21233 "2016-04-21T16:02:25Z")

</div>

Hi, I’m running into an issue with how the Ansible Docker module handles JSON data passed in as an environment variable. I’m currently running Ansible 2.0.2.0. My docker env variable is defined like this: dockerhub\_aut…

---

## [\[DEPRECATION WARNING\]: Skipping task due to undefined Error](https://forum.ansible.com/t/deprecation-warning-skipping-task-due-to-undefined-error/21229)

<div class="topic-metadata">

**Author:** [@Julien\_Tognazzi](https://forum.ansible.com/u/Julien_Tognazzi)\
**Replies:** 2\
**Last updated:** [April 21, 2016, 12:04pm UTC](https://forum.ansible.com/t/deprecation-warning-skipping-task-due-to-undefined-error/21229 "2016-04-21T12:04:02Z")

</div>

Hi, running the following play generate this not so useful DEPRECATION WARNING \`

---

## ['shell' module gets 'stuck' in Docker container with this task configuration.](https://forum.ansible.com/t/shell-module-gets-stuck-in-docker-container-with-this-task-configuration/21228)

<div class="topic-metadata">

**Author:** [@James\_Stephenson](https://forum.ansible.com/u/James_Stephenson)\
**Replies:** 0\
**Last updated:** [April 21, 2016, 10:48am UTC](https://forum.ansible.com/t/shell-module-gets-stuck-in-docker-container-with-this-task-configuration/21228 "2016-04-21T10:48:33Z")

</div>

Hi, This has been driving me mad :). Ansible 2.0.2 Ubuntu 14.04 The following task ‘hangs’ whilst executing in a Docker container: \` shell: \> echo $(cat /dev/urandom | tr -dc ‘a-zA-Z0-9’ | fold -w 16 | head -n 1) …

---

## [fact caching refreshing?](https://forum.ansible.com/t/fact-caching-refreshing/21195)

<div class="topic-metadata">

**Author:** [@Darragh\_Bailey](https://forum.ansible.com/u/Darragh_Bailey)\
**Replies:** 7\
**Last updated:** [April 21, 2016, 9:50am UTC](https://forum.ansible.com/t/fact-caching-refreshing/21195 "2016-04-21T09:50:49Z")

</div>

Hi, Been making good usage of smart fact gathering, as sometimes we have 30-40 plays grouped together and find that needing to gather facts for each one is a bit time consuming. We’ve been combining this with fact cachi…

---

## [PXE booting and kickstarting bare-metal servers or VMs](https://forum.ansible.com/t/pxe-booting-and-kickstarting-bare-metal-servers-or-vms/21225)

<div class="topic-metadata">

**Author:** [@Dibyendu\_Paul](https://forum.ansible.com/u/Dibyendu_Paul)\
**Replies:** 0\
**Last updated:** [April 21, 2016, 6:31am UTC](https://forum.ansible.com/t/pxe-booting-and-kickstarting-bare-metal-servers-or-vms/21225 "2016-04-21T06:31:39Z")

</div>

Hi I am very New to Ansible. hence please forgive if it is stupid on my part. Now I would like to outline the requirement I am working on for last few days: Deploy ESXi on a HP server and vCenter on top of it Spin up…

---

## [Ansible up and running](https://forum.ansible.com/t/ansible-up-and-running/21208)

<div class="topic-metadata">

**Author:** [@John\_Thingstad](https://forum.ansible.com/u/John_Thingstad)\
**Replies:** 1\
**Last updated:** [April 20, 2016, 8:15pm UTC](https://forum.ansible.com/t/ansible-up-and-running/21208 "2016-04-20T20:15:02Z")

</div>

I have a cluster. It has one PowerEdge T110 II server and 10 PI II’s. I need to install ldap and Kerberos. I am nearly complete but I have not succeeded. Any debugging suggestions?

---

## [Agenda for Public Core Meeting - 2016-04-21 @ 15:00 UTC](https://forum.ansible.com/t/agenda-for-public-core-meeting-2016-04-21-15-00-utc/21223)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [April 20, 2016, 7:30pm UTC](https://forum.ansible.com/t/agenda-for-public-core-meeting-2016-04-21-15-00-utc/21223 "2016-04-20T19:30:50Z")

</div>

If you have a topic/issue/PR you wish to discuss, you can add it as a comment here so we can keep track of things. If you don’t show up for the meeting, your issue will be skipped and dropped, so please be sure to attend…

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

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