# Latest

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

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

**Page:** 1010

---

## [Can this review be any more superficial?](https://forum.ansible.com/t/can-this-review-be-any-more-superficial/13978)

<div class="topic-metadata">

**Author:** [@Steven\_Truong](https://forum.ansible.com/u/Steven_Truong)\
**Replies:** 1\
**Last updated:** [November 22, 2013, 8:51pm UTC](https://forum.ansible.com/t/can-this-review-be-any-more-superficial/13978 "2013-11-22T20:51:28Z")

</div>

Hi all, http://www.infoworld.com/d/data-center/review-puppet-vs-chef-vs-ansible-vs-salt-231308 I came away feeling sick in my stomach. This was written by a tech writer and I just simply think that he does not know wha…

---

## [Different behaviour between group\_vars/all and vars\_files/myvars.yml](https://forum.ansible.com/t/different-behaviour-between-group-vars-all-and-vars-files-myvars-yml/13948)

<div class="topic-metadata">

**Author:** [@Yoann\_DAVID](https://forum.ansible.com/u/Yoann_DAVID)\
**Replies:** 8\
**Last updated:** [November 22, 2013, 4:13pm UTC](https://forum.ansible.com/t/different-behaviour-between-group-vars-all-and-vars-files-myvars-yml/13948 "2013-11-22T16:13:32Z")

</div>

For the same playbook, if my variables are defined in a file (let name it myvars.yml) specified with vars\_files statement it works but if the same variables are defined in group\_vars/all it don’t. Example my playbook an…

---

## [Advice on variable organization.](https://forum.ansible.com/t/advice-on-variable-organization/13957)

<div class="topic-metadata">

**Author:** [@C\_Morgan\_Hamill](https://forum.ansible.com/u/C_Morgan_Hamill)\
**Replies:** 7\
**Last updated:** [November 22, 2013, 3:02pm UTC](https://forum.ansible.com/t/advice-on-variable-organization/13957 "2013-11-22T15:02:32Z")

</div>

Howdy folks, I was hoping to get some tips on how best to organize variables in Ansible. Right now, I don't have hard-and-fast rules, but I'm generally sticking to the following patterns: \* 'group\_vars/all' contai…

---

## [Ansible 1.4 not allowing sudo\_user to be set by a variable...](https://forum.ansible.com/t/ansible-1-4-not-allowing-sudo-user-to-be-set-by-a-variable/13967)

<div class="topic-metadata">

**Author:** [@Steven\_Haddox](https://forum.ansible.com/u/Steven_Haddox)\
**Replies:** 4\
**Last updated:** [November 22, 2013, 7:32am UTC](https://forum.ansible.com/t/ansible-1-4-not-allowing-sudo-user-to-be-set-by-a-variable/13967 "2013-11-22T07:32:28Z")

</div>

Is there a change I missed in ansible 1.4 that would break the following:

---

## [format url module output](https://forum.ansible.com/t/format-url-module-output/13938)

<div class="topic-metadata">

**Author:** [@David\_Neudorfer1](https://forum.ansible.com/u/David_Neudorfer1)\
**Replies:** 31\
**Last updated:** [November 22, 2013, 2:30am UTC](https://forum.ansible.com/t/format-url-module-output/13938 "2013-11-22T02:30:45Z")

</div>

I’m using Ansible to purchase a domain name using the namecheap.com api. Here is a example of the playbook. name: Purchase Domain Name local\_action: \> uri url=https://api.sandbox.namecheap.com/xml.response method=G…

---

## [Odd restart behavior in the service module](https://forum.ansible.com/t/odd-restart-behavior-in-the-service-module/13963)

<div class="topic-metadata">

**Author:** [@Casey\_Huggins](https://forum.ansible.com/u/Casey_Huggins)\
**Replies:** 1\
**Last updated:** [November 22, 2013, 1:02am UTC](https://forum.ansible.com/t/odd-restart-behavior-in-the-service-module/13963 "2013-11-22T01:02:15Z")

</div>

I ran in to an interesting issue today with the service module, which led me to a chunk of code I don’t quite understand. I am posting here before filling a github issue, simply to see if this is actually behavior someon…

---

## [agent forwarding with sudo](https://forum.ansible.com/t/agent-forwarding-with-sudo/12889)

<div class="topic-metadata">

**Author:** [@Lorin\_Hochstein1](https://forum.ansible.com/u/Lorin_Hochstein1)\
**Replies:** 11\
**Last updated:** [November 21, 2013, 11:50pm UTC](https://forum.ansible.com/t/agent-forwarding-with-sudo/12889 "2013-11-21T23:50:48Z")

</div>

I ran into a situation today where I needed to support agent forwarding with sudo. Specifically, I wanted to check out a git repository using agent forwarding, sudo’ing to a (non-root) user. I started working on a patch…

---

## [Help needed: Please explain basic concept about variables syntax.](https://forum.ansible.com/t/help-needed-please-explain-basic-concept-about-variables-syntax/13962)

<div class="topic-metadata">

**Author:** [@Frederic\_Roland](https://forum.ansible.com/u/Frederic_Roland)\
**Replies:** 3\
**Last updated:** [November 21, 2013, 11:46pm UTC](https://forum.ansible.com/t/help-needed-please-explain-basic-concept-about-variables-syntax/13962 "2013-11-21T23:46:54Z")

</div>

Hi, I’m new to using ansible and I’ve seen several way to use/reference/define variables and I’m not sure when to use these notations. I’ve seen variables such as: $variable\_name ${variable\_name} {{ variable\_name }} …

---

## [Checking if a list is empty...](https://forum.ansible.com/t/checking-if-a-list-is-empty/13951)

<div class="topic-metadata">

**Author:** [@Gonzalo\_Servat](https://forum.ansible.com/u/Gonzalo_Servat)\
**Replies:** 7\
**Last updated:** [November 21, 2013, 11:46pm UTC](https://forum.ansible.com/t/checking-if-a-list-is-empty/13951 "2013-11-21T23:46:07Z")

</div>

Hi, My inventory script returns the correct JSON for a host including an empty list for ‘listen\_ips’, i.e: { “listen\_ips”: } I want to include a task only if the listen\_ips list contains at least one element. This do…

---

## [Ansible 1.4 is now released!](https://forum.ansible.com/t/ansible-1-4-is-now-released/13961)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [November 21, 2013, 9:37pm UTC](https://forum.ansible.com/t/ansible-1-4-is-now-released/13961 "2013-11-21T21:37:42Z")

</div>

Hi everyone, On behalf of everyone at AnsibleWorks, thank you so much for making this an awesome release to work on. Thanks especially to the 190 different people who contributed code, testing, or documentation to this…

---

## [determining the justification for a task being run/not run](https://forum.ansible.com/t/determining-the-justification-for-a-task-being-run-not-run/13946)

<div class="topic-metadata">

**Author:** [@William\_Jimenez](https://forum.ansible.com/u/William_Jimenez)\
**Replies:** 2\
**Last updated:** [November 21, 2013, 9:00pm UTC](https://forum.ansible.com/t/determining-the-justification-for-a-task-being-run-not-run/13946 "2013-11-21T21:00:34Z")

</div>

Hello I’m wondering if there is a way to determine why a task in a playbook was skipped (or not skipped). Use case would be a playbook where you have multiple conditionals (like ‘when’) defined for a task and you want t…

---

## [replacing mutliple files using lineinfile](https://forum.ansible.com/t/replacing-mutliple-files-using-lineinfile/13955)

<div class="topic-metadata">

**Author:** [@n0vember](https://forum.ansible.com/u/n0vember)\
**Replies:** 1\
**Last updated:** [November 21, 2013, 7:59pm UTC](https://forum.ansible.com/t/replacing-mutliple-files-using-lineinfile/13955 "2013-11-21T19:59:21Z")

</div>

Hi all, I’m trying to make modifications in tomcat config file server.xml using lineinfile. I have a whole valve tag to comment. I have things like that : And whould like to insert after. Problème is that the tag ma…

---

## [with\_items calling role variables, doable??](https://forum.ansible.com/t/with-items-calling-role-variables-doable/13956)

<div class="topic-metadata">

**Author:** [@Walid](https://forum.ansible.com/u/Walid)\
**Replies:** 5\
**Last updated:** [November 21, 2013, 6:46pm UTC](https://forum.ansible.com/t/with-items-calling-role-variables-doable/13956 "2013-11-21T18:46:42Z")

</div>

Hi, I am trying to use with\_items to call items that are role variables however it fails with the below error message, can you please let me know what I am doing wrong? TASK: \[copy the files for Grid Engine installati…

---

## [Lookup-plugins in general & lsearch in particular](https://forum.ansible.com/t/lookup-plugins-in-general-lsearch-in-particular/13941)

<div class="topic-metadata">

**Author:** [@jpmens1](https://forum.ansible.com/u/jpmens1)\
**Replies:** 6\
**Last updated:** [November 21, 2013, 8:48am UTC](https://forum.ansible.com/t/lookup-plugins-in-general-lsearch-in-particular/13941 "2013-11-21T08:48:13Z")

</div>

Hello, I have a pull-request for a linear-search (lsearch) in text files lookup-plugin pending \[1\] and Michael requests I discuss it on the -devel mailing list, so here I am. :wink: In general, I feel there can't rea…

---

## [add a tag while creating an EBS via ec2\_vol](https://forum.ansible.com/t/add-a-tag-while-creating-an-ebs-via-ec2-vol/13847)

<div class="topic-metadata">

**Author:** [@cpatanaik](https://forum.ansible.com/u/cpatanaik)\
**Replies:** 10\
**Last updated:** [November 21, 2013, 6:13am UTC](https://forum.ansible.com/t/add-a-tag-while-creating-an-ebs-via-ec2-vol/13847 "2013-11-21T06:13:53Z")

</div>

Hi, I would like to add some tags while creating new volumes using ec2\_vol module. I saw that this feature has been implemented and merged in github issues. But I couldn’t find the documentation for it. I would be gra…

---

## [ansible.cfg env variables](https://forum.ansible.com/t/ansible-cfg-env-variables/12554)

<div class="topic-metadata">

**Author:** [@Eric\_Palmer1](https://forum.ansible.com/u/Eric_Palmer1)\
**Replies:** 5\
**Last updated:** [November 21, 2013, 4:22am UTC](https://forum.ansible.com/t/ansible-cfg-env-variables/12554 "2013-11-21T04:22:06Z")

</div>

I’m just learning today somethings about ansible We will be automating the install of some open source xml db software. I have set up a ansible.cfg and a small bash script that just calls ansible with some arguments I…

---

## [Remote script module, 'script' for 0.9 (rough cut)](https://forum.ansible.com/t/remote-script-module-script-for-0-9-rough-cut/12005)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 27\
**Last updated:** [November 21, 2013, 3:17am UTC](https://forum.ansible.com/t/remote-script-module-script-for-0-9-rough-cut/12005 "2013-11-21T03:17:41Z")

</div>

One of the things that occasionally comes up is you may want to run a script on a remote server, and not have a module for it. This practice is really not to be encouraged in some cases, but in some cases, you're work…

---

## [local\_action results in a "failure encoding into utf-8"](https://forum.ansible.com/t/local-action-results-in-a-failure-encoding-into-utf-8/13949)

<div class="topic-metadata">

**Author:** [@David\_Neudorfer1](https://forum.ansible.com/u/David_Neudorfer1)\
**Replies:** 2\
**Last updated:** [November 21, 2013, 2:42am UTC](https://forum.ansible.com/t/local-action-results-in-a-failure-encoding-into-utf-8/13949 "2013-11-21T02:42:39Z")

</div>

I’m trying to run the openssl command via Ansible. name: Generate a Production CSR local\_action: /usr/bin/openssl req -new -newkey rsa:2048 -nodes -subj ‘{{ local\_generate\_prod\_csr }}’ -days 3650 -keyout STAR\_{{ do…

---

## [Problems using with\_fileglob](https://forum.ansible.com/t/problems-using-with-fileglob/13942)

<div class="topic-metadata">

**Author:** [@Colin\_Coombs](https://forum.ansible.com/u/Colin_Coombs)\
**Replies:** 2\
**Last updated:** [November 20, 2013, 8:21pm UTC](https://forum.ansible.com/t/problems-using-with-fileglob/13942 "2013-11-20T20:21:46Z")

</div>

I need to install configuration files for an application on multiple hosts, where (1) each host needs a different collection of files, and (2) each file may have different content for each host. I have the following f…

---

## [Order of magic "groups" variable](https://forum.ansible.com/t/order-of-magic-groups-variable/13945)

<div class="topic-metadata">

**Author:** [@Oren\_Shomron](https://forum.ansible.com/u/Oren_Shomron)\
**Replies:** 1\
**Last updated:** [November 20, 2013, 7:10pm UTC](https://forum.ansible.com/t/order-of-magic-groups-variable/13945 "2013-11-20T19:10:32Z")

</div>

Hi everyone, I was under the impression that when using the magic “groups” variable, the list order would follow the order as specified in the inventory file. So for example given the following inventory: \[databases\] …

---

## [git module and sha value of HEAD](https://forum.ansible.com/t/git-module-and-sha-value-of-head/13943)

<div class="topic-metadata">

**Author:** [@Jerome\_Wagner](https://forum.ansible.com/u/Jerome_Wagner)\
**Replies:** 1\
**Last updated:** [November 20, 2013, 5:48pm UTC](https://forum.ansible.com/t/git-module-and-sha-value-of-head/13943 "2013-11-20T17:48:04Z")

</div>

Hello, I am trying to capture the current sha of a git clone just after doing a git clone on HEAD with the git: module. Do you know if this is possible and if yes, how it can be done ? Thank you

---

## [The AnsibleWorks Flying Computer T-shirt now available](https://forum.ansible.com/t/the-ansibleworks-flying-computer-t-shirt-now-available/13930)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 4\
**Last updated:** [November 20, 2013, 3:30pm UTC](https://forum.ansible.com/t/the-ansibleworks-flying-computer-t-shirt-now-available/13930 "2013-11-20T15:30:28Z")

</div>

Hi everyone, Several people approached us about wanting to get a copy of the flying computer shirt we were giving away at AWS re:Invent. As we can’t afford to ship T-shirts out to all of you anymore, the easiest thing …

---

## [AttributeError: 'module' object has no attribute 'ModuleReplacer' when trying to create a custom mod](https://forum.ansible.com/t/attributeerror-module-object-has-no-attribute-modulereplacer-when-trying-to-create-a-custom-mod/13935)

<div class="topic-metadata">

**Author:** [@Lars\_Vonk](https://forum.ansible.com/u/Lars_Vonk)\
**Replies:** 4\
**Last updated:** [November 20, 2013, 2:05pm UTC](https://forum.ansible.com/t/attributeerror-module-object-has-no-attribute-modulereplacer-when-trying-to-create-a-custom-mod/13935 "2013-11-20T14:05:10Z")

</div>

Hi, I am trying to create a custom module based on pyrax (rackspace) to create reverse dns entries. I followed the hacking guide but I am stuck testing the new module because of an AttributeError: ‘module’ object has no…

---

## [/usr/bin/python hardcoded](https://forum.ansible.com/t/usr-bin-python-hardcoded/13940)

<div class="topic-metadata">

**Author:** [@willthames](https://forum.ansible.com/u/willthames)\
**Replies:** 1\
**Last updated:** [November 20, 2013, 11:54am UTC](https://forum.ansible.com/t/usr-bin-python-hardcoded/13940 "2013-11-20T11:54:29Z")

</div>

I’ve just been bitten by running pip install boto ansible-playbook ec2\_vol-playbook.yml and it telling me that boto is not installed. This is because I’m using homebrew’s python on OS X which is in /usr/local/bin (on…

---

## [Apply proxy and DNS settings to GNU/Linux Debian using configuration management tool such as Ansible](https://forum.ansible.com/t/apply-proxy-and-dns-settings-to-gnu-linux-debian-using-configuration-management-tool-such-as-ansible/13916)

<div class="topic-metadata">

**Author:** [@scls](https://forum.ansible.com/u/scls)\
**Replies:** 1\
**Last updated:** [November 20, 2013, 3:57am UTC](https://forum.ansible.com/t/apply-proxy-and-dns-settings-to-gnu-linux-debian-using-configuration-management-tool-such-as-ansible/13916 "2013-11-20T03:57:35Z")

</div>

Hello, I’m beginner with configuration management tools I’m physist (also teaching computer science)… we want our students work with Raspberry Pi. Maybe you can help me to solve : http://stackoverflow.com/questions/…

---

## [Having private files for group\_vars, host\_vars etc.](https://forum.ansible.com/t/having-private-files-for-group-vars-host-vars-etc/13914)

<div class="topic-metadata">

**Author:** [@Dhananjay\_Nene](https://forum.ansible.com/u/Dhananjay_Nene)\
**Replies:** 1\
**Last updated:** [November 20, 2013, 3:56am UTC](https://forum.ansible.com/t/having-private-files-for-group-vars-host-vars-etc/13914 "2013-11-20T03:56:09Z")

</div>

I find a need to maintain a set of of passwords which either should be encrypted or alternatively never checked into the project repository. This is a variant of the earlier topic discussed at https://groups.google.com/…

---

## [Reusable constructed vars/library](https://forum.ansible.com/t/reusable-constructed-vars-library/13797)

<div class="topic-metadata">

**Author:** [@John\_Dewey](https://forum.ansible.com/u/John_Dewey)\
**Replies:** 4\
**Last updated:** [November 20, 2013, 3:54am UTC](https://forum.ansible.com/t/reusable-constructed-vars-library/13797 "2013-11-20T03:54:33Z")

</div>

I have a case where I am constructing the same string in three different role templates. https://github.com/blueboxgroup/ursula/blob/master/roles/nova-common/templates/etc/nova/nova.conf#L55 It is getting to the point …

---

## [Execute command with items from inventory group](https://forum.ansible.com/t/execute-command-with-items-from-inventory-group/13925)

<div class="topic-metadata">

**Author:** [@Alex\_Bilbie](https://forum.ansible.com/u/Alex_Bilbie)\
**Replies:** 4\
**Last updated:** [November 20, 2013, 3:49am UTC](https://forum.ansible.com/t/execute-command-with-items-from-inventory-group/13925 "2013-11-20T03:49:40Z")

</div>

Hi everyone, I’m looking to execute a command for each items in an inventory group - in this case for each item in a “staging-webservers” group, I want to allow access to it in the firewall. This doesn’t seem to work b…

---

## [files precedence](https://forum.ansible.com/t/files-precedence/13931)

<div class="topic-metadata">

**Author:** [@Mayeu](https://forum.ansible.com/u/Mayeu)\
**Replies:** 3\
**Last updated:** [November 20, 2013, 3:42am UTC](https://forum.ansible.com/t/files-precedence/13931 "2013-11-20T03:42:39Z")

</div>

Hi, Following the principle of variable precedence, I am wondering why there is no such concept for files. Example: I have the following playbooks: - -- ansible-playbook-some\_app ------ - - ansible-playbook-some\_ap…

---

## [git sparse-checkout](https://forum.ansible.com/t/git-sparse-checkout/13670)

<div class="topic-metadata">

**Author:** [@Alex\_Rodenberg](https://forum.ansible.com/u/Alex_Rodenberg)\
**Replies:** 14\
**Last updated:** [November 19, 2013, 10:51pm UTC](https://forum.ansible.com/t/git-sparse-checkout/13670 "2013-11-19T22:51:27Z")

</div>

Hi Just wondering if anyone else is doing git sparse-checkouts in ansible playbooks ? Maybe they have a better idea than me… The way to do it is this: mkdir && cd git init git remote add –f Enable sparse-check…

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

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