# Latest

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

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

**Page:** 995

---

## [How to use the JSON part of an HTTP response in the subsequent tasks?](https://forum.ansible.com/t/how-to-use-the-json-part-of-an-http-response-in-the-subsequent-tasks/14173)

<div class="topic-metadata">

**Author:** [@Roman\_Revyakin](https://forum.ansible.com/u/Roman_Revyakin)\
**Replies:** 6\
**Last updated:** [January 30, 2014, 3:44am UTC](https://forum.ansible.com/t/how-to-use-the-json-part-of-an-http-response-in-the-subsequent-tasks/14173 "2014-01-30T03:44:20Z")

</div>

Hi guys, I am facing the problem of not being able to use the JSON part of the HTTP response in my subsequent tasks in an Ansible playbook. Here are the relevant tasks from the playbook: name: Login to account as the…

---

## [Issue with Ansible user and sudo user](https://forum.ansible.com/t/issue-with-ansible-user-and-sudo-user/14454)

<div class="topic-metadata">

**Author:** [@Emmanuel\_Pinault](https://forum.ansible.com/u/Emmanuel_Pinault)\
**Replies:** 2\
**Last updated:** [January 30, 2014, 2:25am UTC](https://forum.ansible.com/t/issue-with-ansible-user-and-sudo-user/14454 "2014-01-30T02:25:19Z")

</div>

I am trying to deploy on Fedora 18 (target) from my Mac with ansible version 1.4.3 I am trying to the following command where my ssh user is also my sudo user ansible-playbook -i hosts ctas\_install.yml -u preseed -K -U…

---

## [uri module following redirects even after follow\_redirects=no has been set](https://forum.ansible.com/t/uri-module-following-redirects-even-after-follow-redirects-no-has-been-set/14388)

<div class="topic-metadata">

**Author:** [@bennett\_ponder](https://forum.ansible.com/u/bennett_ponder)\
**Replies:** 3\
**Last updated:** [January 30, 2014, 12:27am UTC](https://forum.ansible.com/t/uri-module-following-redirects-even-after-follow-redirects-no-has-been-set/14388 "2014-01-30T00:27:16Z")

</div>

Here’s my ansible version: ansible --version ansible 1.4.4 I’m trying to get ansible to submit an http request for specific a url, and verify it gets a 301. It does not need to follow the location header and make the …

---

## [Issues trying to get dry run(--check) to play out cleanly](https://forum.ansible.com/t/issues-trying-to-get-dry-run-check-to-play-out-cleanly/14457)

<div class="topic-metadata">

**Author:** [@Chris\_DiGiovanni](https://forum.ansible.com/u/Chris_DiGiovanni)\
**Replies:** 0\
**Last updated:** [January 29, 2014, 10:44pm UTC](https://forum.ansible.com/t/issues-trying-to-get-dry-run-check-to-play-out-cleanly/14457 "2014-01-29T22:44:27Z")

</div>

I’ve been trying to get my playbooks to play out cleanly during a dry run with the --check switch. I’ve ran into a problem where one of my tasks using the file module fails because a user does not exist yet. The user is …

---

## [python executable zip files as ansible modules](https://forum.ansible.com/t/python-executable-zip-files-as-ansible-modules/14455)

<div class="topic-metadata">

**Author:** [@Tim\_Butler1](https://forum.ansible.com/u/Tim_Butler1)\
**Replies:** 2\
**Last updated:** [January 29, 2014, 9:43pm UTC](https://forum.ansible.com/t/python-executable-zip-files-as-ansible-modules/14455 "2014-01-29T21:43:41Z")

</div>

If ansible modules truly can be written in any language, I would like that language to include “python executable zip files” :slight\_smile: so that my ansible modules can refer to python modules that I bundle with the…

---

## [Issue with Ansible 1.4.3, user in combination with sudo\_user](https://forum.ansible.com/t/issue-with-ansible-1-4-3-user-in-combination-with-sudo-user/14456)

<div class="topic-metadata">

**Author:** [@Emmanuel\_Pinault](https://forum.ansible.com/u/Emmanuel_Pinault)\
**Replies:** 0\
**Last updated:** [January 29, 2014, 9:04pm UTC](https://forum.ansible.com/t/issue-with-ansible-1-4-3-user-in-combination-with-sudo-user/14456 "2014-01-29T21:04:54Z")

</div>

I am trying to install git client package on Fedora 18 as a target from OSX. I am running the following ansible-playbook -i hosts install.yml -u preseed -K -U preseed -vvv where the ssh user and the sudo user are the …

---

## [AnsibleWorks is now just Ansible!](https://forum.ansible.com/t/ansibleworks-is-now-just-ansible/14449)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 4\
**Last updated:** [January 29, 2014, 4:57pm UTC](https://forum.ansible.com/t/ansibleworks-is-now-just-ansible/14449 "2014-01-29T16:57:50Z")

</div>

Hi all, As you know we like to keep things simple around here. When we started the company, Ansible wasn’t quite available, so we named the company AnsibleWorks. We’ve finally arranged things so it was possible to chan…

---

## [Rackspace Private Cloud?](https://forum.ansible.com/t/rackspace-private-cloud/14370)

<div class="topic-metadata">

**Author:** [@Nick\_Irvine](https://forum.ansible.com/u/Nick_Irvine)\
**Replies:** 4\
**Last updated:** [January 29, 2014, 2:46pm UTC](https://forum.ansible.com/t/rackspace-private-cloud/14370 "2014-01-29T14:46:03Z")

</div>

Hi all, We’re starting up with a Rackspace Private Cloud soon, and am wondering if anyone has any experience with it and Ansible. Does the rax module work for private cloud? Or should I just use the generic OpenStack st…

---

## [transforming data from the inventory into role parameters](https://forum.ansible.com/t/transforming-data-from-the-inventory-into-role-parameters/14441)

<div class="topic-metadata">

**Author:** [@Nick](https://forum.ansible.com/u/Nick)\
**Replies:** 6\
**Last updated:** [January 29, 2014, 2:10pm UTC](https://forum.ansible.com/t/transforming-data-from-the-inventory-into-role-parameters/14441 "2014-01-29T14:10:26Z")

</div>

Hi, When writing roles, I try and keep them re-usable. This means avoiding making them dependent on any arrangement of vars in my inventory and playbooks. The problem I keep bumping into then is that ansible / jinja2 h…

---

## [tcp port assignments](https://forum.ansible.com/t/tcp-port-assignments/14452)

<div class="topic-metadata">

**Author:** [@Damjan\_Georgievski](https://forum.ansible.com/u/Damjan_Georgievski)\
**Replies:** 0\
**Last updated:** [January 29, 2014, 1:37pm UTC](https://forum.ansible.com/t/tcp-port-assignments/14452 "2014-01-29T13:37:30Z")

</div>

For some of my applications I need to generate a TCP port number, which then I would use in templates for config files. Since there are more than one of this application on a host the port number must be unique, and will…

---

## [error with vars\_files](https://forum.ansible.com/t/error-with-vars-files/14433)

<div class="topic-metadata">

**Author:** [@nORKy](https://forum.ansible.com/u/nORKy)\
**Replies:** 8\
**Last updated:** [January 29, 2014, 1:33pm UTC](https://forum.ansible.com/t/error-with-vars-files/14433 "2014-01-29T13:33:23Z")

</div>

Hi, I start a playbook like this : ansible-playbook ./srweb.yml -K -i ./clients/Myclient -e “client=Myclient” In my playbook, I have a vars\_files : vars\_files: “/home/me/ansible/clients/{{ client }}.{{ ansible\_ho…

---

## [Loading complex types from lookup plugins](https://forum.ansible.com/t/loading-complex-types-from-lookup-plugins/14448)

<div class="topic-metadata">

**Author:** [@Michael\_Porter](https://forum.ansible.com/u/Michael_Porter)\
**Replies:** 0\
**Last updated:** [January 29, 2014, 1:16am UTC](https://forum.ansible.com/t/loading-complex-types-from-lookup-plugins/14448 "2014-01-29T01:16:43Z")

</div>

I’ve been crafting a lookup plugin recently to fetch information from Hiera, as we’re heavily a Puppet shop but are investigating Ansible for managing small one-off systems that would be too complicated to manage with Pu…

---

## [Discrepancy between \`vars\_files\` and \`include\_vars\`](https://forum.ansible.com/t/discrepancy-between-vars-files-and-include-vars/14447)

<div class="topic-metadata">

**Author:** [@Michael\_Porter](https://forum.ansible.com/u/Michael_Porter)\
**Replies:** 0\
**Last updated:** [January 29, 2014, 12:29am UTC](https://forum.ansible.com/t/discrepancy-between-vars-files-and-include-vars/14447 "2014-01-29T00:29:21Z")

</div>

I recently came across include\_vars as a method of allowing roles to load variables files based on facts, etc. However, I’m encountering an odd combination of issues in trying to structure my variables in a way that allo…

---

## [dependency modeling](https://forum.ansible.com/t/dependency-modeling/14424)

<div class="topic-metadata">

**Author:** [@Xu\_Chen](https://forum.ansible.com/u/Xu_Chen)\
**Replies:** 2\
**Last updated:** [January 28, 2014, 11:53pm UTC](https://forum.ansible.com/t/dependency-modeling/14424 "2014-01-28T23:53:02Z")

</div>

I have a use case for Ansible where I have several code bases (say, C\_A and C\_B), and several services (S\_A1, S\_A2, S\_B1, S\_B2). Here S\_A1 and S\_A2 are essentially different executables from the same repo containing C\_A.…

---

## [VMware inventory available?](https://forum.ansible.com/t/vmware-inventory-available/13560)

<div class="topic-metadata">

**Author:** [@Oliver\_Heinz](https://forum.ansible.com/u/Oliver_Heinz)\
**Replies:** 8\
**Last updated:** [January 28, 2014, 6:42pm UTC](https://forum.ansible.com/t/vmware-inventory-available/13560 "2014-01-28T18:42:57Z")

</div>

Is there already an external VMware inventory script available? I would love to have vCenter grouping information such as Datacenter/Cluster/Pools as ansible groups - as they are hierarchical they would be probably group…

---

## [ansible\_ssh\_user and delegate\_to unexpected behavior](https://forum.ansible.com/t/ansible-ssh-user-and-delegate-to-unexpected-behavior/14445)

<div class="topic-metadata">

**Author:** [@Niku\_Toivola](https://forum.ansible.com/u/Niku_Toivola)\
**Replies:** 0\
**Last updated:** [January 28, 2014, 5:27pm UTC](https://forum.ansible.com/t/ansible-ssh-user-and-delegate-to-unexpected-behavior/14445 "2014-01-28T17:27:08Z")

</div>

Hello, I noticed that an ansible\_ssh\_user defined in the inventory for a host or group is used also when delegating to a host that does not have it set. This seems counterintuitive to me and makes it difficult to delega…

---

## [Not detecting whether variable for 'user' is setup.](https://forum.ansible.com/t/not-detecting-whether-variable-for-user-is-setup/13798)

<div class="topic-metadata">

**Author:** [@Marcin\_Praczko](https://forum.ansible.com/u/Marcin_Praczko)\
**Replies:** 4\
**Last updated:** [January 28, 2014, 5:24pm UTC](https://forum.ansible.com/t/not-detecting-whether-variable-for-user-is-setup/13798 "2014-01-28T17:24:22Z")

</div>

Hi, Ansible allows setup user in playbook which is used for connection with servers: Playbook: user: some-login-here This is working fine for one user who is responsible for deployment process, but is not working wel…

---

## [Drupal or Drush users in the house?](https://forum.ansible.com/t/drupal-or-drush-users-in-the-house/14415)

<div class="topic-metadata">

**Author:** [@Jurgen\_Haas](https://forum.ansible.com/u/Jurgen_Haas)\
**Replies:** 3\
**Last updated:** [January 28, 2014, 5:18pm UTC](https://forum.ansible.com/t/drupal-or-drush-users-in-the-house/14415 "2014-01-28T17:18:00Z")

</div>

Using Ansible for server management and Drush for Drupal maintenance makes for a nice toolbox and in some circumstances I wonder which one to use. Started to think about a Drush module for Ansible, so that everything cou…

---

## [How to use array of hash in yml?](https://forum.ansible.com/t/how-to-use-array-of-hash-in-yml/14443)

<div class="topic-metadata">

**Author:** [@howachen](https://forum.ansible.com/u/howachen)\
**Replies:** 1\
**Last updated:** [January 28, 2014, 3:49pm UTC](https://forum.ansible.com/t/how-to-use-array-of-hash-in-yml/14443 "2014-01-28T15:49:38Z")

</div>

I know we can use array in yml, e.g. web\_servers: “server.1=host1” “server.2=host2” “server.3=host3” However, will it be possible to use array of hash/dictionary? Thanks.

---

## [Dynamically including task files?](https://forum.ansible.com/t/dynamically-including-task-files/14439)

<div class="topic-metadata">

**Author:** [@Miguel\_Fonseca](https://forum.ansible.com/u/Miguel_Fonseca)\
**Replies:** 1\
**Last updated:** [January 28, 2014, 3:03am UTC](https://forum.ansible.com/t/dynamically-including-task-files/14439 "2014-01-28T03:03:33Z")

</div>

I’m trying to dynamically include multiple separated tasks files based on a list - I went straight to using include while iterating on with\_items until I saw the deprecation warning. Before everyone just jumps on me, I …

---

## [Soliciting volunteers for Southern California Linux Expo (SCaLE) Ansible Tutorial opportunity Friday February 21](https://forum.ansible.com/t/soliciting-volunteers-for-southern-california-linux-expo-scale-ansible-tutorial-opportunity-friday-february-21/14440)

<div class="topic-metadata">

**Author:** [@Lance\_Lakey](https://forum.ansible.com/u/Lance_Lakey)\
**Replies:** 0\
**Last updated:** [January 27, 2014, 11:15pm UTC](https://forum.ansible.com/t/soliciting-volunteers-for-southern-california-linux-expo-scale-ansible-tutorial-opportunity-friday-february-21/14440 "2014-01-27T23:15:00Z")

</div>

I’m a beginner Ansible user. I’m also participating in the Southern California Linux Expo this year. SCaLE has a 4 hour tutorial slot available Friday morning Feb 21st. I’m exploring the possibility of getting a couple …

---

## [1.4.4 accessing ansible\_hostname from a template](https://forum.ansible.com/t/1-4-4-accessing-ansible-hostname-from-a-template/14438)

<div class="topic-metadata">

**Author:** [@Ed\_Zarecor](https://forum.ansible.com/u/Ed_Zarecor)\
**Replies:** 1\
**Last updated:** [January 27, 2014, 10:44pm UTC](https://forum.ansible.com/t/1-4-4-accessing-ansible-hostname-from-a-template/14438 "2014-01-27T22:44:04Z")

</div>

We’ve recently upgraded to 1.4. In 1.3 this worked fine in a template host = {{ansible\_hostname}} In 1.4.4 I’m seeing this fatal: \[localhost\] =\> {‘msg’: “One or more undefined variables: ‘ansible\_hostname’ is undefi…

---

## [ansible\_host var no longer set in devel branch](https://forum.ansible.com/t/ansible-host-var-no-longer-set-in-devel-branch/14436)

<div class="topic-metadata">

**Author:** [@Paul\_Hassinger](https://forum.ansible.com/u/Paul_Hassinger)\
**Replies:** 2\
**Last updated:** [January 27, 2014, 9:41pm UTC](https://forum.ansible.com/t/ansible-host-var-no-longer-set-in-devel-branch/14436 "2014-01-27T21:41:13Z")

</div>

FYI, in the release1.4.4 branch, things are fine. In the devel branch, ansible\_fqdn is now empty when running the playbooks. I have “error\_on\_undefined\_vars = True” set in the cfg, so the error shows: fatal: \[host.myd…

---

## [question? is there an equivalent to fqdn\_rand?](https://forum.ansible.com/t/question-is-there-an-equivalent-to-fqdn-rand/14437)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [January 27, 2014, 9:22pm UTC](https://forum.ansible.com/t/question-is-there-an-equivalent-to-fqdn-rand/14437 "2014-01-27T21:22:49Z")

</div>

It seems the pull request to add a random filter never quite got merged in just yet, because I think it got over-wraught with a user’s particular use case for using it with a given module in cron (thus making it confusin…

---

## [Plugins included in pip package?](https://forum.ansible.com/t/plugins-included-in-pip-package/14429)

<div class="topic-metadata">

**Author:** [@Scott\_Anderson](https://forum.ansible.com/u/Scott_Anderson)\
**Replies:** 5\
**Last updated:** [January 27, 2014, 7:37pm UTC](https://forum.ansible.com/t/plugins-included-in-pip-package/14429 "2014-01-27T19:37:17Z")

</div>

Hi all, Is there a pip package that included the plugins directory (inventory plugins, etc)? The “ansible” package doesn’t seem to include the plugins, which makes automatic management a bit messier. I’d rather not have…

---

## [Vlan interfaces](https://forum.ansible.com/t/vlan-interfaces/14434)

<div class="topic-metadata">

**Author:** [@Jean-Pascal\_Tessier](https://forum.ansible.com/u/Jean-Pascal_Tessier)\
**Replies:** 2\
**Last updated:** [January 27, 2014, 1:40pm UTC](https://forum.ansible.com/t/vlan-interfaces/14434 "2014-01-27T13:40:06Z")

</div>

Hi, Usually vlan interfaces have a ‘.’ in their names. So it isn’t possible to get information (like address) from jinja form because ‘.’ is used to access attributes. Instead of having vlan interface like a physical i…

---

## [Includes from a secured file - can we continue if the file is unreadable?](https://forum.ansible.com/t/includes-from-a-secured-file-can-we-continue-if-the-file-is-unreadable/14425)

<div class="topic-metadata">

**Author:** [@Brent\_Langston1](https://forum.ansible.com/u/Brent_Langston1)\
**Replies:** 3\
**Last updated:** [January 27, 2014, 8:11am UTC](https://forum.ansible.com/t/includes-from-a-secured-file-can-we-continue-if-the-file-is-unreadable/14425 "2014-01-27T08:11:38Z")

</div>

So here’s the story: My team is managing some of our secure settings using a set of variables stored in a file, and encrypted using git-crypt. This has been working great under the push model, because we all have the ke…

---

## [creating yaml dictionary, converting to json and using in uri module causes UnboundLocalError](https://forum.ansible.com/t/creating-yaml-dictionary-converting-to-json-and-using-in-uri-module-causes-unboundlocalerror/14418)

<div class="topic-metadata">

**Author:** [@jim1](https://forum.ansible.com/u/jim1)\
**Replies:** 5\
**Last updated:** [January 26, 2014, 10:22pm UTC](https://forum.ansible.com/t/creating-yaml-dictionary-converting-to-json-and-using-in-uri-module-causes-unboundlocalerror/14418 "2014-01-26T22:22:54Z")

</div>

So I’m able to create the dictionary, and I can convert it to JSON in a debug statement, but when I try to convert it to JSON in the URI module it throws an unhandled exception. What’s going on here?

---

## [Comments on closed GitHub tickets](https://forum.ansible.com/t/comments-on-closed-github-tickets/14431)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [January 26, 2014, 9:06pm UTC](https://forum.ansible.com/t/comments-on-closed-github-tickets/14431 "2014-01-26T21:06:29Z")

</div>

Noticed an exchange on twitter today about someone commenting about comments made on a very old GitHub ticket that was closed over a year ago. Just wanted to say that comments on old tickets are going to get lost and we …

---

## [Is it possible to define a hash at the environment (i.e. inventory) level?](https://forum.ansible.com/t/is-it-possible-to-define-a-hash-at-the-environment-i-e-inventory-level/14403)

<div class="topic-metadata">

**Author:** [@Edd\_Grant](https://forum.ansible.com/u/Edd_Grant)\
**Replies:** 11\
**Last updated:** [January 26, 2014, 7:49pm UTC](https://forum.ansible.com/t/is-it-possible-to-define-a-hash-at-the-environment-i-e-inventory-level/14403 "2014-01-26T19:49:13Z")

</div>

Hi folks, I need to model some data on a per-inventory basis, i.e. each inventory would define the same variables with different values. This seems simple enough when using simple variables i.e. no lists or hashes e.g. …

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

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