# Archives

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

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

**Page:** 599

---

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

---

## [Use group\_vars with Dynamic Inventory](https://forum.ansible.com/t/use-group-vars-with-dynamic-inventory/21222)

<div class="topic-metadata">

**Author:** [@rajat.gupta712](https://forum.ansible.com/u/rajat.gupta712)\
**Replies:** 0\
**Last updated:** [April 20, 2016, 4:23pm UTC](https://forum.ansible.com/t/use-group-vars-with-dynamic-inventory/21222 "2016-04-20T16:23:22Z")

</div>

Hello all, I am trying to use group vars with dynamic inventory file ec2.py and It is not working. Can anyone help me how can I use group vars with dynamic inventory? i am doing like hosts: my\_host:tag\_env\_uat and i…

---

## [bare variables deprecated, what am I suppose to use instead?](https://forum.ansible.com/t/bare-variables-deprecated-what-am-i-suppose-to-use-instead/21219)

<div class="topic-metadata">

**Author:** [@Willjw1](https://forum.ansible.com/u/Willjw1)\
**Replies:** 0\
**Last updated:** [April 20, 2016, 2:12pm UTC](https://forum.ansible.com/t/bare-variables-deprecated-what-am-i-suppose-to-use-instead/21219 "2016-04-20T14:12:18Z")

</div>

I’d posted this in Ansible Project but didn’t get a response. Is there another valid way of building a variable in ansible? So first I’ll point out that we probably aren’t using this the standard way. I get that. But pl…

---

## [Emulating host\_vars and group\_vars for files](https://forum.ansible.com/t/emulating-host-vars-and-group-vars-for-files/18013)

<div class="topic-metadata">

**Author:** [@Anand\_Buddhdev2](https://forum.ansible.com/u/Anand_Buddhdev2)\
**Replies:** 8\
**Last updated:** [April 20, 2016, 10:15am UTC](https://forum.ansible.com/t/emulating-host-vars-and-group-vars-for-files/18013 "2016-04-20T10:15:09Z")

</div>

Dear Ansible developers and users, I really like the groups\_vars and host\_vars concept of Ansible, and I was thinking of a way to emulate this for files. So here’s an example playbook: hosts: all tasks: debug: var=it…

---

## [Impossible to use "with\_subelements"...](https://forum.ansible.com/t/impossible-to-use-with-subelements/21217)

<div class="topic-metadata">

**Author:** [@Clement\_VALENTIN](https://forum.ansible.com/u/Clement_VALENTIN)\
**Replies:** 1\
**Last updated:** [April 20, 2016, 9:30am UTC](https://forum.ansible.com/t/impossible-to-use-with-subelements/21217 "2016-04-20T09:30:17Z")

</div>

Hi, I try to use function “with\_subelements” with module mysql\_user to create an user with multiple host with a dict. But i can’t do this :frowning: roles/vars/main.yml : TEST: name: TEST300 app\_MySQLHost: “127.0…

---

## [How to change active directory using ansible](https://forum.ansible.com/t/how-to-change-active-directory-using-ansible/21216)

<div class="topic-metadata">

**Author:** [@Mick\_st\_john](https://forum.ansible.com/u/Mick_st_john)\
**Replies:** 1\
**Last updated:** [April 20, 2016, 9:15am UTC](https://forum.ansible.com/t/how-to-change-active-directory-using-ansible/21216 "2016-04-20T09:15:11Z")

</div>

I am trying to change my active directory to a directory which has a script that I want to run. Playbook:

---

## [Can't get os\_network to work.](https://forum.ansible.com/t/cant-get-os-network-to-work/21206)

<div class="topic-metadata">

**Author:** [@Cees\_Moerkerken](https://forum.ansible.com/u/Cees_Moerkerken)\
**Replies:** 2\
**Last updated:** [April 20, 2016, 9:08am UTC](https://forum.ansible.com/t/cant-get-os-network-to-work/21206 "2016-04-20T09:08:17Z")

</div>

Hi all, I have successfully managed to deploy some cloud servers with ansible 2.0 on openstack, but seem to get stuck on creating the network. State should not be required according to http://docs.ansible.com/ansible/o…

---

## [ansible connection failure](https://forum.ansible.com/t/ansible-connection-failure/21202)

<div class="topic-metadata">

**Author:** [@John.1209](https://forum.ansible.com/u/John.1209)\
**Replies:** 1\
**Last updated:** [April 20, 2016, 8:09am UTC](https://forum.ansible.com/t/ansible-connection-failure/21202 "2016-04-20T08:09:04Z")

</div>

I issue the following command on a host: ssh remote-host uptime and I get the expected answer. I issue the following command on a host: ansible remote-host -m command -a uptime -vvvvv and I get a no hosts matched. I…

---

## [ansible with azure](https://forum.ansible.com/t/ansible-with-azure/21213)

<div class="topic-metadata">

**Author:** [@yaniv\_refael](https://forum.ansible.com/u/yaniv_refael)\
**Replies:** 1\
**Last updated:** [April 20, 2016, 7:51am UTC](https://forum.ansible.com/t/ansible-with-azure/21213 "2016-04-20T07:51:04Z")

</div>

I started to work with Ansible with azure. I need to use dynamic inventory. I provision new vm image using Ansible and its work fine. but when I try to do it with image that I capture it failed with error "OSImage tmpl…

---

## [not able to import dispay module](https://forum.ansible.com/t/not-able-to-import-dispay-module/21214)

<div class="topic-metadata">

**Author:** [@prakul\_singhal](https://forum.ansible.com/u/prakul_singhal)\
**Replies:** 0\
**Last updated:** [April 20, 2016, 4:35am UTC](https://forum.ansible.com/t/not-able-to-import-dispay-module/21214 "2016-04-20T04:35:05Z")

</div>

Hi, I develop a security module for adding firewall rules irrespective of OS centos 6/centos7 or Ubuntu.But for ubuntu user i am try to give some warning using " from ansible.utils.display import Display" module in ansi…

---

## [Any way to gather localhost information to use in templates for remote hosts?](https://forum.ansible.com/t/any-way-to-gather-localhost-information-to-use-in-templates-for-remote-hosts/21212)

<div class="topic-metadata">

**Author:** [@Brian\_Huddleston](https://forum.ansible.com/u/Brian_Huddleston)\
**Replies:** 1\
**Last updated:** [April 20, 2016, 3:01am UTC](https://forum.ansible.com/t/any-way-to-gather-localhost-information-to-use-in-templates-for-remote-hosts/21212 "2016-04-20T03:01:43Z")

</div>

I’m trying to write a task that updates the MODT (Message of the Day) for the target host the playbook is touching. I’m trying to capture localhost information and the and add those to the MOTD for each target host th…

---

## [copy module with hard link destination](https://forum.ansible.com/t/copy-module-with-hard-link-destination/16693)

<div class="topic-metadata">

**Author:** [@Sean\_McGowan](https://forum.ansible.com/u/Sean_McGowan)\
**Replies:** 5\
**Last updated:** [April 19, 2016, 11:53pm UTC](https://forum.ansible.com/t/copy-module-with-hard-link-destination/16693 "2016-04-19T23:53:02Z")

</div>

Background: I am using Ansible 1.5 on RedHat. Apparently system-config-network creates a hard link to /etc/hosts and /etc/resolve.conf. I want to be able to copy the correct hosts file in place if is not there, whether o…

---

## [Ansible 2.0.2.0 has been released](https://forum.ansible.com/t/ansible-2-0-2-0-has-been-released/21210)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [April 19, 2016, 10:14pm UTC](https://forum.ansible.com/t/ansible-2-0-2-0-has-been-released/21210 "2016-04-19T22:14:23Z")

</div>

Hi all, 2.0.2.0 has been released, and is now available. This release continues to fix bugs introduced in the 2.0 release, as well as one security bug: SECURITY: Fix lxc\_container module having predictable temp file n…

---

## [Skip tag 'always' in a role if no tasks in that role are executed](https://forum.ansible.com/t/skip-tag-always-in-a-role-if-no-tasks-in-that-role-are-executed/21179)

<div class="topic-metadata">

**Author:** [@Strahinja\_Kustudic](https://forum.ansible.com/u/Strahinja_Kustudic)\
**Replies:** 10\
**Last updated:** [April 19, 2016, 6:24pm UTC](https://forum.ansible.com/t/skip-tag-always-in-a-role-if-no-tasks-in-that-role-are-executed/21179 "2016-04-19T18:24:52Z")

</div>

For example if I have a playbook like this: \` // site.yml

---

## [Use results from facts](https://forum.ansible.com/t/use-results-from-facts/21205)

<div class="topic-metadata">

**Author:** [@lunser](https://forum.ansible.com/u/lunser)\
**Replies:** 1\
**Last updated:** [April 19, 2016, 4:56pm UTC](https://forum.ansible.com/t/use-results-from-facts/21205 "2016-04-19T16:56:27Z")

</div>

Hi, I am getting facts from the ec2\_vpc\_net\_facts module which I’m trying to grab the vpc-id from the output and use it as a variable to create a security group. This seems that it should be easy enough and I’ve read th…

---

## [set\_fact is not a valid attribute for a Play](https://forum.ansible.com/t/set-fact-is-not-a-valid-attribute-for-a-play/21197)

<div class="topic-metadata">

**Author:** [@darknight](https://forum.ansible.com/u/darknight)\
**Replies:** 3\
**Last updated:** [April 19, 2016, 4:15pm UTC](https://forum.ansible.com/t/set-fact-is-not-a-valid-attribute-for-a-play/21197 "2016-04-19T16:15:16Z")

</div>

Hi Everyone, I am a newbie using ansible and trying to write a playbook. I was encountering an issue with using set\_fact variable in my play and not sure where i am going wrong . could any one correct me on this error. …

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

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