# Latest

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

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

**Page:** 970

---

## [Nested looping with hash/dict so I can override values](https://forum.ansible.com/t/nested-looping-with-hash-dict-so-i-can-override-values/15173)

<div class="topic-metadata">

**Author:** [@David\_Reagan](https://forum.ansible.com/u/David_Reagan)\
**Replies:** 5\
**Last updated:** [May 14, 2014, 7:32am UTC](https://forum.ansible.com/t/nested-looping-with-hash-dict-so-i-can-override-values/15173 "2014-05-14T07:32:52Z")

</div>

tl;dr: is there a way to make with\_subelements work with dicts? Or something to that effect? I’ve been trying to figure out how to run a task over a dict, that also loops over a nested dict in order to run the actual co…

---

## [when conditional and IP address, is this a bug ?](https://forum.ansible.com/t/when-conditional-and-ip-address-is-this-a-bug/15223)

<div class="topic-metadata">

**Author:** [@Julien\_Tognazzi](https://forum.ansible.com/u/Julien_Tognazzi)\
**Replies:** 3\
**Last updated:** [May 14, 2014, 6:55am UTC](https://forum.ansible.com/t/when-conditional-and-ip-address-is-this-a-bug/15223 "2014-05-14T06:55:13Z")

</div>

Hello, Running this test playbook, I have the following error: hosts: localhost tasks: name: Test IP address debug: msg=“ok” when: “{{ ansible\_lo.ipv4.address }} == 127.0.0.1” \[WARNING\]: It is unneccessary to us…

---

## [Ansible test-module corrupting executable before execution](https://forum.ansible.com/t/ansible-test-module-corrupting-executable-before-execution/15205)

<div class="topic-metadata">

**Author:** [@Roberto\_Aloi](https://forum.ansible.com/u/Roberto_Aloi)\
**Replies:** 2\
**Last updated:** [May 14, 2014, 5:37am UTC](https://forum.ansible.com/t/ansible-test-module-corrupting-executable-before-execution/15205 "2014-05-14T05:37:37Z")

</div>

I’m working on a new Ansible module and I would like to use the Ansible test-module script to verify it works, as explained in the official ansible documentation. The executable is standalone and it works as expected on…

---

## [vsphere\_guest VM from template](https://forum.ansible.com/t/vsphere-guest-vm-from-template/15226)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 1\
**Last updated:** [May 13, 2014, 11:43pm UTC](https://forum.ansible.com/t/vsphere-guest-vm-from-template/15226 "2014-05-13T23:43:16Z")

</div>

“If there are no plans, currently, then I’m happy to work on it and submit a pull request when it’s done.” Make it so, #1!

---

## [Collecting setup facts from other servers when using --limit](https://forum.ansible.com/t/collecting-setup-facts-from-other-servers-when-using-limit/15224)

<div class="topic-metadata">

**Author:** [@Michael\_Peters](https://forum.ansible.com/u/Michael_Peters)\
**Replies:** 3\
**Last updated:** [May 13, 2014, 9:02pm UTC](https://forum.ansible.com/t/collecting-setup-facts-from-other-servers-when-using-limit/15224 "2014-05-13T21:02:35Z")

</div>

I have a playbook that sets up the application configuration on a server in a cluster. This configuration is based on other servers in the cluster and uses hostvars to great effect in the templated configuration. I'm …

---

## [Git clone no working after upgrade](https://forum.ansible.com/t/git-clone-no-working-after-upgrade/15212)

<div class="topic-metadata">

**Author:** [@James\_Goodhouse](https://forum.ansible.com/u/James_Goodhouse)\
**Replies:** 4\
**Last updated:** [May 13, 2014, 4:52pm UTC](https://forum.ansible.com/t/git-clone-no-working-after-upgrade/15212 "2014-05-13T16:52:52Z")

</div>

Hey All, I just upgraded from 1.5.5 to 1.6.1 and am seeing the following error happen when trying to clone a repo: failed: \[w4.website.net\] =\> {“failed”: true, “item”: “”, “parsed”: false} invalid output was: Tracebac…

---

## [Callback functions and local facts.](https://forum.ansible.com/t/callback-functions-and-local-facts/15220)

<div class="topic-metadata">

**Author:** [@Marcin\_Praczko](https://forum.ansible.com/u/Marcin_Praczko)\
**Replies:** 3\
**Last updated:** [May 13, 2014, 3:52pm UTC](https://forum.ansible.com/t/callback-functions-and-local-facts/15220 "2014-05-13T15:52:29Z")

</div>

Hello, I am trying to write my own callback function which logs information which I want to database, especially informations from local facts. We have localfacts in json mode and I can easly get access to them from An…

---

## [Includes playbooks not able to access variables from vars\_files](https://forum.ansible.com/t/includes-playbooks-not-able-to-access-variables-from-vars-files/15222)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 0\
**Last updated:** [May 13, 2014, 3:40pm UTC](https://forum.ansible.com/t/includes-playbooks-not-able-to-access-variables-from-vars-files/15222 "2014-05-13T15:40:59Z")

</div>

Please file a ticket at github.com/ansible/ansible. Thank you!

---

## [freebsd buildworld/buildkernel crashes host OS ??](https://forum.ansible.com/t/freebsd-buildworld-buildkernel-crashes-host-os/15139)

<div class="topic-metadata">

**Author:** [@Dimon](https://forum.ansible.com/u/Dimon)\
**Replies:** 6\
**Last updated:** [May 13, 2014, 3:40pm UTC](https://forum.ansible.com/t/freebsd-buildworld-buildkernel-crashes-host-os/15139 "2014-05-13T15:40:16Z")

</div>

Hi, I am trying to automate “jail” creation under FreeBSD which includes building the OS from sources which is rather lengthy. I’m using “polling” while doing it: name: build world shell: executable=/bin/sh chdir=/u…

---

## [Ansible upgrade testing - version number isn't tracking?](https://forum.ansible.com/t/ansible-upgrade-testing-version-number-isnt-tracking/15216)

<div class="topic-metadata">

**Author:** [@Ryan\_Mitchell](https://forum.ansible.com/u/Ryan_Mitchell)\
**Replies:** 2\
**Last updated:** [May 13, 2014, 3:39pm UTC](https://forum.ansible.com/t/ansible-upgrade-testing-version-number-isnt-tracking/15216 "2014-05-13T15:39:53Z")

</div>

Hi all - I’m testing out upgrading to a later version of Ansible and how my playbooks would need to be modified prior to actually doing the upgrade. In order to test this out, I’m doing the following: Deleting /usr/bi…

---

## [access inventory file name](https://forum.ansible.com/t/access-inventory-file-name/15165)

<div class="topic-metadata">

**Author:** [@Drew\_Gulino](https://forum.ansible.com/u/Drew_Gulino)\
**Replies:** 3\
**Last updated:** [May 13, 2014, 3:38pm UTC](https://forum.ansible.com/t/access-inventory-file-name/15165 "2014-05-13T15:38:06Z")

</div>

As suggested in the best practices doc, have two inventory files: qa and production I call these using the -i parameter: ansible-playbook -i qa … Is there a way I can determine in my playbook which inventory I am usin…

---

## [Jinga2  Integer substitution in YAML  task file](https://forum.ansible.com/t/jinga2-integer-substitution-in-yaml-task-file/15209)

<div class="topic-metadata">

**Author:** [@Oliver\_Heinz](https://forum.ansible.com/u/Oliver_Heinz)\
**Replies:** 3\
**Last updated:** [May 13, 2014, 3:31pm UTC](https://forum.ansible.com/t/jinga2-integer-substitution-in-yaml-task-file/15209 "2014-05-13T15:31:46Z")

</div>

I have a group var definition: vm\_disk\_size: 10 In the tasks main file I have the option (action is vsphere\_guest http://docs.ansible.com/vsphere\_guest\_module.html) size\_gb: “{{ vm\_disk\_size|int }}” The Error I get i…

---

## [Included playbooks able to access variables defined in "vars" but not from "vars\_files"](https://forum.ansible.com/t/included-playbooks-able-to-access-variables-defined-in-vars-but-not-from-vars-files/15219)

<div class="topic-metadata">

**Author:** [@Manu\_J](https://forum.ansible.com/u/Manu_J)\
**Replies:** 0\
**Last updated:** [May 13, 2014, 6:38am UTC](https://forum.ansible.com/t/included-playbooks-able-to-access-variables-defined-in-vars-but-not-from-vars-files/15219 "2014-05-13T06:38:37Z")

</div>

Variables defined in vars is available to included playbooks but variables included via vars\_files is not. Files to reproduce - https://github.com/j-manu/debug/tree/master/ansible Run command “ansible-playbook -i inven…

---

## [variable names of variables holding environment variables :)](https://forum.ansible.com/t/variable-names-of-variables-holding-environment-variables/15207)

<div class="topic-metadata">

**Author:** [@Dimon](https://forum.ansible.com/u/Dimon)\
**Replies:** 3\
**Last updated:** [May 13, 2014, 4:18am UTC](https://forum.ansible.com/t/variable-names-of-variables-holding-environment-variables/15207 "2014-05-13T04:18:40Z")

</div>

I know subject sounds kind of crazy, but here’s the code to explain it a bit: hosts: all vars: djbdns\_var: FOO: “DJ DNS” vnstat\_var: FOO: “VN, stat!” tasks: name: Test flexible vars command: echo “$FOO” environme…

---

## [Overriding value of 'hosts' playbook variable](https://forum.ansible.com/t/overriding-value-of-hosts-playbook-variable/15208)

<div class="topic-metadata">

**Author:** [@JC11](https://forum.ansible.com/u/JC11)\
**Replies:** 2\
**Last updated:** [May 12, 2014, 5:13pm UTC](https://forum.ansible.com/t/overriding-value-of-hosts-playbook-variable/15208 "2014-05-12T17:13:10Z")

</div>

Hi guys, Anyone know if you can completely override the hosts: value in a playbook? I don’t use inventory files so I always just have this set to ‘all’. But when I call a playbook from another playbook like this, for e…

---

## [Mixing sudo and dzdo](https://forum.ansible.com/t/mixing-sudo-and-dzdo/15210)

<div class="topic-metadata">

**Author:** [@Joseph\_Pelizaro](https://forum.ansible.com/u/Joseph_Pelizaro)\
**Replies:** 1\
**Last updated:** [May 12, 2014, 5:11pm UTC](https://forum.ansible.com/t/mixing-sudo-and-dzdo/15210 "2014-05-12T17:11:51Z")

</div>

Some of my infrastructure is “controlled” via Centrify and uses dzdo as sudo replacement, the rest just plain sudo. I can configure sudo\_exe in ansible.cfg (works), but I cannot set this per server as I would need it. A…

---

## [change permission](https://forum.ansible.com/t/change-permission/15211)

<div class="topic-metadata">

**Author:** [@jose\_moya\_carballo](https://forum.ansible.com/u/jose_moya_carballo)\
**Replies:** 1\
**Last updated:** [May 12, 2014, 4:56pm UTC](https://forum.ansible.com/t/change-permission/15211 "2014-05-12T16:56:20Z")

</div>

Hi everyone! I have got a new question, how can I change permission of directory and her contents?

---

## [Issue with git module and ssh agent forwarding](https://forum.ansible.com/t/issue-with-git-module-and-ssh-agent-forwarding/15191)

<div class="topic-metadata">

**Author:** [@tamakisquare](https://forum.ansible.com/u/tamakisquare)\
**Replies:** 7\
**Last updated:** [May 12, 2014, 4:29pm UTC](https://forum.ansible.com/t/issue-with-git-module-and-ssh-agent-forwarding/15191 "2014-05-12T16:29:48Z")

</div>

My setup is a vagrant box whose provisioning is provided by ansible. I have set up ssh agent forwarding from my local/host machine to the vagrant box so that the user ‘vagrant’ can perform git clone on a private bitbucke…

---

## [Something Similar to Ruby's Case Operator](https://forum.ansible.com/t/something-similar-to-rubys-case-operator/15206)

<div class="topic-metadata">

**Author:** [@Navid\_Paya2](https://forum.ansible.com/u/Navid_Paya2)\
**Replies:** 1\
**Last updated:** [May 12, 2014, 3:11pm UTC](https://forum.ansible.com/t/something-similar-to-rubys-case-operator/15206 "2014-05-12T15:11:02Z")

</div>

Hi all We have a mix of Debian and Redhat in our infrastructure so basically for every single step, I have to add two of the same operators for both of them, like this: name: Install prerequisite packages action: ap…

---

## [Complex data types with nested lists](https://forum.ansible.com/t/complex-data-types-with-nested-lists/15189)

<div class="topic-metadata">

**Author:** [@Bruce\_Pennypacker](https://forum.ansible.com/u/Bruce_Pennypacker)\
**Replies:** 5\
**Last updated:** [May 11, 2014, 9:19pm UTC](https://forum.ansible.com/t/complex-data-types-with-nested-lists/15189 "2014-05-11T21:19:55Z")

</div>

We have a role that defines user accounts as follows: users: username: user1 comment: User 1 uid: 3001 ssh\_key: “xxx” username: user2 comment: User 2 uid: 3002 ssh\_key: “yyy” Users are then grouped by nam…

---

## [Reusing roles with different configuration files](https://forum.ansible.com/t/reusing-roles-with-different-configuration-files/15193)

<div class="topic-metadata">

**Author:** [@Strahinja\_Kustudic2](https://forum.ansible.com/u/Strahinja_Kustudic2)\
**Replies:** 7\
**Last updated:** [May 11, 2014, 4:39pm UTC](https://forum.ansible.com/t/reusing-roles-with-different-configuration-files/15193 "2014-05-11T16:39:45Z")

</div>

I have been using Ansible for a few months now and it has been a blast. I think I got the hang of how Ansible works pretty good, but I’m still not sure about what is the best way to reuse roles. Let’s take the “nginx” r…

---

## [Variable interpolation in task name](https://forum.ansible.com/t/variable-interpolation-in-task-name/15192)

<div class="topic-metadata">

**Author:** [@Joost\_Cassee](https://forum.ansible.com/u/Joost_Cassee)\
**Replies:** 10\
**Last updated:** [May 11, 2014, 4:38pm UTC](https://forum.ansible.com/t/variable-interpolation-in-task-name/15192 "2014-05-11T16:38:39Z")

</div>

Hi, I have a role that updates DNS records. It contains a number of tasks such as: name: Create A record route53: command=create zone=example.com record={{ domain }} type=A value={{ ip }} Other roles (that represent…

---

## [Strange variable issue](https://forum.ansible.com/t/strange-variable-issue/15197)

<div class="topic-metadata">

**Author:** [@Petr\_Sukharev](https://forum.ansible.com/u/Petr_Sukharev)\
**Replies:** 5\
**Last updated:** [May 10, 2014, 7:27pm UTC](https://forum.ansible.com/t/strange-variable-issue/15197 "2014-05-10T19:27:48Z")

</div>

Hi! I have multiple projects and try to use ansible for all of them. One of idea was to make my playbooks more flexible by specified variable files for each project. In this case i have one role - deploy software and m…

---

## [Gems Being Installed but the Symlink for the Executable is Not Created](https://forum.ansible.com/t/gems-being-installed-but-the-symlink-for-the-executable-is-not-created/15201)

<div class="topic-metadata">

**Author:** [@Navid\_Paya2](https://forum.ansible.com/u/Navid_Paya2)\
**Replies:** 2\
**Last updated:** [May 10, 2014, 2:04pm UTC](https://forum.ansible.com/t/gems-being-installed-but-the-symlink-for-the-executable-is-not-created/15201 "2014-05-10T14:04:14Z")

</div>

Hi guys I’m using ansible to deploy the scoutapp.com agent which is basically a ruby gem. I have used both the gem and shell modules to install the module, the problem is after the module is installed, the executable is…

---

## [Debugging service module](https://forum.ansible.com/t/debugging-service-module/15183)

<div class="topic-metadata">

**Author:** [@Anand\_Buddhdev2](https://forum.ansible.com/u/Anand_Buddhdev2)\
**Replies:** 10\
**Last updated:** [May 10, 2014, 9:22am UTC](https://forum.ansible.com/t/debugging-service-module/15183 "2014-05-10T09:22:51Z")

</div>

I’m running ansible 1.5.5 against a CentOS 6 server, and trying to use the “service” module to manage an upstart job. However, I keep getting this error from ansible: $ ansible bastion3.hadoop.ripe.net -i svn/gii/ansibl…

---

## [Display error message if variable isn't set using playbook](https://forum.ansible.com/t/display-error-message-if-variable-isnt-set-using-playbook/15160)

<div class="topic-metadata">

**Author:** [@Sam\_S](https://forum.ansible.com/u/Sam_S)\
**Replies:** 9\
**Last updated:** [May 10, 2014, 7:41am UTC](https://forum.ansible.com/t/display-error-message-if-variable-isnt-set-using-playbook/15160 "2014-05-10T07:41:45Z")

</div>

Let’s say I ask for a revision\_no from the user. If the user doesn’t input a value, I would like to display a custom message. Right now ansible shows a bunch of “skipping” message, but I know my users would want to know …

---

## [File module - would be great to be able to apply attribs to just files or dirs](https://forum.ansible.com/t/file-module-would-be-great-to-be-able-to-apply-attribs-to-just-files-or-dirs/15195)

<div class="topic-metadata">

**Author:** [@eduardr](https://forum.ansible.com/u/eduardr)\
**Replies:** 2\
**Last updated:** [May 10, 2014, 3:08am UTC](https://forum.ansible.com/t/file-module-would-be-great-to-be-able-to-apply-attribs-to-just-files-or-dirs/15195 "2014-05-10T03:08:49Z")

</div>

Hello, I haven’t found a way to recursively apply attributes (user/group/mode) to just files or just directories in a recursive way. A common use case is wanting a directory structure to be 0755 and files 0644 - there…

---

## [debugging tip(s) requested (for lineinfile)](https://forum.ansible.com/t/debugging-tip-s-requested-for-lineinfile/15170)

<div class="topic-metadata">

**Author:** [@Gallagher\_Polyn](https://forum.ansible.com/u/Gallagher_Polyn)\
**Replies:** 1\
**Last updated:** [May 10, 2014, 12:11am UTC](https://forum.ansible.com/t/debugging-tip-s-requested-for-lineinfile/15170 "2014-05-10T00:11:49Z")

</div>

Hi, I’m attempting to boot and deploy with GCE all in one play (using Sharif Salah’s deck and demo repo as my basis.) I’m succeeding until… name: insert iptables rule lineinfile: dest=/etc/sysconfig/iptables state=…

---

## [Problem deploying with cloudformation module](https://forum.ansible.com/t/problem-deploying-with-cloudformation-module/15171)

<div class="topic-metadata">

**Author:** [@Jon\_B](https://forum.ansible.com/u/Jon_B)\
**Replies:** 1\
**Last updated:** [May 10, 2014, 12:10am UTC](https://forum.ansible.com/t/problem-deploying-with-cloudformation-module/15171 "2014-05-10T00:10:25Z")

</div>

I’m trying to use the ansible cloudformation module to setup a EC2 instance. When I run it through the cloudformation ansible module I get the following error. TASK: \[Create Cloud foundation Example\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [user specific yml file](https://forum.ansible.com/t/user-specific-yml-file/15175)

<div class="topic-metadata">

**Author:** [@rob3](https://forum.ansible.com/u/rob3)\
**Replies:** 1\
**Last updated:** [May 10, 2014, 12:09am UTC](https://forum.ansible.com/t/user-specific-yml-file/15175 "2014-05-10T00:09:04Z")

</div>

Hi I have vars with system users defined:

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

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