# Latest

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

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

**Page:** 1011

---

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

---

## [with\_items and template using {{item}}](https://forum.ansible.com/t/with-items-and-template-using-item/13937)

<div class="topic-metadata">

**Author:** [@Hudec\_Peter](https://forum.ansible.com/u/Hudec_Peter)\
**Replies:** 2\
**Last updated:** [November 19, 2013, 7:56pm UTC](https://forum.ansible.com/t/with-items-and-template-using-item/13937 "2013-11-19T19:56:45Z")

</div>

Hi all, I’m fancing with the following problem. Imagine, you have following tak - name: template everything for fooserv template: src={{item.0}} dest={{item.1}} with\_items: - \[ 'templates/foo.j2', '/etc…

---

## [why template\_parameters is required to use the cloudformation module?](https://forum.ansible.com/t/why-template-parameters-is-required-to-use-the-cloudformation-module/13928)

<div class="topic-metadata">

**Author:** [@Nicolas\_G](https://forum.ansible.com/u/Nicolas_G)\
**Replies:** 6\
**Last updated:** [November 19, 2013, 7:28pm UTC](https://forum.ansible.com/t/why-template-parameters-is-required-to-use-the-cloudformation-module/13928 "2013-11-19T19:28:28Z")

</div>

Hi, I have a clouformation template that is working with no parameters defined , it’s working with no problems with CloufFormation in the AWS console but in order to use it in Ansible it is required to have parameters d…

---

## [host module issues/thoughts](https://forum.ansible.com/t/host-module-issues-thoughts/13927)

<div class="topic-metadata">

**Author:** [@Christopher\_H\_Laco](https://forum.ansible.com/u/Christopher_H_Laco)\
**Replies:** 3\
**Last updated:** [November 19, 2013, 7:11pm UTC](https://forum.ansible.com/t/host-module-issues-thoughts/13927 "2013-11-19T19:11:06Z")

</div>

See this thread on github for the backstory: https://github.com/ansible/ansible/issues/4926 The short version is: under some circumstances, the module will make more changes than \[I\] expected to the /etc/hosts file. So…

---

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

<div class="topic-metadata">

**Author:** [@Lars\_Vonk](https://forum.ansible.com/u/Lars_Vonk)\
**Replies:** 2\
**Last updated:** [November 19, 2013, 1:40pm UTC](https://forum.ansible.com/t/attributeerror-module-object-has-no-attribute-modulereplacer-when-trying-to-create-a-custom-module/13934 "2013-11-19T13:40:13Z")

</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…

---

## [pass variable filename as command line argument](https://forum.ansible.com/t/pass-variable-filename-as-command-line-argument/13926)

<div class="topic-metadata">

**Author:** [@cpatanaik](https://forum.ansible.com/u/cpatanaik)\
**Replies:** 2\
**Last updated:** [November 19, 2013, 7:11am UTC](https://forum.ansible.com/t/pass-variable-filename-as-command-line-argument/13926 "2013-11-19T07:11:28Z")

</div>

Hi, I have used var\_files to include a variable file inside of a playbook. But I would like to know whether it’s possible to pass the file path as a part of the ansible-playbook command itself. Thanks, Chinmaya

---

## [Logging the beginning ant the end of a role execution](https://forum.ansible.com/t/logging-the-beginning-ant-the-end-of-a-role-execution/13924)

<div class="topic-metadata">

**Author:** [@Marc\_Trudel](https://forum.ansible.com/u/Marc_Trudel)\
**Replies:** 2\
**Last updated:** [November 19, 2013, 4:23am UTC](https://forum.ansible.com/t/logging-the-beginning-ant-the-end-of-a-role-execution/13924 "2013-11-19T04:23:54Z")

</div>

Greetings, Just wondering if there are plans to add log output for when a role start/finishes to execute? I am guessing that this may make it easier to follow up on which roles are currently being executed, instead of j…

---

## [How to use variables defined in inventory file (hosts) in my playbook?](https://forum.ansible.com/t/how-to-use-variables-defined-in-inventory-file-hosts-in-my-playbook/13932)

<div class="topic-metadata">

**Author:** [@Kashyap\_Bhatt](https://forum.ansible.com/u/Kashyap_Bhatt)\
**Replies:** 0\
**Last updated:** [November 18, 2013, 10:33pm UTC](https://forum.ansible.com/t/how-to-use-variables-defined-in-inventory-file-hosts-in-my-playbook/13932 "2013-11-18T22:33:41Z")

</div>

Hi, As the subject says. Here is an example. Based on all my research I was expecting foo and bar to be part of hostvars. I can put host specific variables in separate var files, but I would love to keep them in my inve…

---

## [synchronize module does not sync from remote to local](https://forum.ansible.com/t/synchronize-module-does-not-sync-from-remote-to-local/13892)

<div class="topic-metadata">

**Author:** [@Edgars](https://forum.ansible.com/u/Edgars)\
**Replies:** 4\
**Last updated:** [November 18, 2013, 10:11pm UTC](https://forum.ansible.com/t/synchronize-module-does-not-sync-from-remote-to-local/13892 "2013-11-18T22:11:00Z")

</div>

Hi I have some troubles to understand how synchronize works… Here is what I have:

---

## [Ensure passwordless user with postgresql\_user](https://forum.ansible.com/t/ensure-passwordless-user-with-postgresql-user/13907)

<div class="topic-metadata">

**Author:** [@stmoros](https://forum.ansible.com/u/stmoros)\
**Replies:** 4\
**Last updated:** [November 18, 2013, 7:00pm UTC](https://forum.ansible.com/t/ensure-passwordless-user-with-postgresql-user/13907 "2013-11-18T19:00:29Z")

</div>

Hello, I am trying out ansible for the first time, and so far I am very impressed. One issue I’ve run into is that the postgresql\_user module can’t create/alter users with empty passwords. I have modified the built-in …

---

## [New in 1.4 devel, a way to include variables in a role more conditionally](https://forum.ansible.com/t/new-in-1-4-devel-a-way-to-include-variables-in-a-role-more-conditionally/13831)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 7\
**Last updated:** [November 18, 2013, 5:51pm UTC](https://forum.ansible.com/t/new-in-1-4-devel-a-way-to-include-variables-in-a-role-more-conditionally/13831 "2013-11-18T17:51:10Z")

</div>

I’d like to share some info on a new feature Benno Joy recently added to the devel branch. In Ansible, you could already load in OS-based variables in a play based on facts like so: hosts: webservers vars\_files: \[ “{…

---

## [Get id of new EBS instance using ec2\_vol](https://forum.ansible.com/t/get-id-of-new-ebs-instance-using-ec2-vol/13923)

<div class="topic-metadata">

**Author:** [@cpatanaik](https://forum.ansible.com/u/cpatanaik)\
**Replies:** 1\
**Last updated:** [November 18, 2013, 8:58am UTC](https://forum.ansible.com/t/get-id-of-new-ebs-instance-using-ec2-vol/13923 "2013-11-18T08:58:12Z")

</div>

I am trying to tag a new ebs instance using ec2\_tag module… My sample playbook is

---

## [Recommended way for remote host to pull from s3: authentication questions](https://forum.ansible.com/t/recommended-way-for-remote-host-to-pull-from-s3-authentication-questions/13440)

<div class="topic-metadata">

**Author:** [@Chris\_Shenton](https://forum.ansible.com/u/Chris_Shenton)\
**Replies:** 6\
**Last updated:** [November 17, 2013, 5:57pm UTC](https://forum.ansible.com/t/recommended-way-for-remote-host-to-pull-from-s3-authentication-questions/13440 "2013-11-17T17:57:17Z")

</div>

I’m trying to use the ‘s3’ module to pull down large binary installers onto remote hosts and having confusion about how best to authenticate the remote host to AWS. I was hoping I could just use my environment’s AWS\_ACC…

---

## [Newb wondering what I've screwed up with my Python RegEx](https://forum.ansible.com/t/newb-wondering-what-ive-screwed-up-with-my-python-regex/13920)

<div class="topic-metadata">

**Author:** [@Steven\_Haddox](https://forum.ansible.com/u/Steven_Haddox)\
**Replies:** 1\
**Last updated:** [November 17, 2013, 5:56pm UTC](https://forum.ansible.com/t/newb-wondering-what-ive-screwed-up-with-my-python-regex/13920 "2013-11-17T17:56:22Z")

</div>

I’m a Rubyist by day (with three years of Python once upon a time) and I’m struggling with getting the following task to only run once with the regular expression below. According to Pythex it should be matching (see: ht…

---

## [accelerated mode over a gateway machine](https://forum.ansible.com/t/accelerated-mode-over-a-gateway-machine/13922)

<div class="topic-metadata">

**Author:** [@Marc\_Trudel](https://forum.ansible.com/u/Marc_Trudel)\
**Replies:** 1\
**Last updated:** [November 17, 2013, 5:54pm UTC](https://forum.ansible.com/t/accelerated-mode-over-a-gateway-machine/13922 "2013-11-17T17:54:00Z")

</div>

Greetings, Was wondering, has anyone ever tried/succeeded to use accelerated mode over an ssh tunnel? My guess is that this wouldn’t be trivial to do, but I thought I would ask before discarding the idea. Best regards, …

---

## [For FreeBSD accelerate ipv6 is always true](https://forum.ansible.com/t/for-freebsd-accelerate-ipv6-is-always-true/13918)

<div class="topic-metadata">

**Author:** [@Berend\_de\_Boer](https://forum.ansible.com/u/Berend_de_Boer)\
**Replies:** 1\
**Last updated:** [November 16, 2013, 6:11pm UTC](https://forum.ansible.com/t/for-freebsd-accelerate-ipv6-is-always-true/13918 "2013-11-16T18:11:53Z")

</div>

Very weird problem with accelerate mode on FreeBSD (tested against 10-BETA3). The ipv6 is true for some. Have checked the code that is written, parameter is definitely false. I’ve temporarily fixed this in main() with: …

---

## [unit tests as playbook in /test?](https://forum.ansible.com/t/unit-tests-as-playbook-in-test/13915)

<div class="topic-metadata">

**Author:** [@Rene\_Moser](https://forum.ansible.com/u/Rene_Moser)\
**Replies:** 2\
**Last updated:** [November 15, 2013, 10:24pm UTC](https://forum.ansible.com/t/unit-tests-as-playbook-in-test/13915 "2013-11-15T22:24:58Z")

</div>

Hi I did a PR (https://github.com/ansible/ansible/pull/4914) for 2 fixes in host module and wondered If and where I should put my test playbook. Is there any place in /test for such “test playbooks”? https://gist.githu…

---

## [False deprecation warnings for escaped dollar sign in shell command?](https://forum.ansible.com/t/false-deprecation-warnings-for-escaped-dollar-sign-in-shell-command/13917)

<div class="topic-metadata">

**Author:** [@Kevin\_Sage](https://forum.ansible.com/u/Kevin_Sage)\
**Replies:** 2\
**Last updated:** [November 15, 2013, 10:07pm UTC](https://forum.ansible.com/t/false-deprecation-warnings-for-escaped-dollar-sign-in-shell-command/13917 "2013-11-15T22:07:40Z")

</div>

Greetings all, This is a somewhat contrived example because the actual command I’m running is much longer/uglier, but if I have something like this: name: awk a file for no good reason shell: awk ‘{print $2}’ /some/f…

---

## [ansible and suexec](https://forum.ansible.com/t/ansible-and-suexec/13905)

<div class="topic-metadata">

**Author:** [@lennardcornelis](https://forum.ansible.com/u/lennardcornelis)\
**Replies:** 1\
**Last updated:** [November 15, 2013, 5:34pm UTC](https://forum.ansible.com/t/ansible-and-suexec/13905 "2013-11-15T17:34:23Z")

</div>

Hello, I’m trying to run an Ansible-playbook with a sudo to root. But because of security we are using suexec and not sudo and with suexec it is possible to change from my key to root without password. … i just wonder i…

---

## [Prompting for hosts](https://forum.ansible.com/t/prompting-for-hosts/13896)

<div class="topic-metadata">

**Author:** [@Gonzalo\_Servat](https://forum.ansible.com/u/Gonzalo_Servat)\
**Replies:** 4\
**Last updated:** [November 15, 2013, 5:32pm UTC](https://forum.ansible.com/t/prompting-for-hosts/13896 "2013-11-15T17:32:50Z")

</div>

Hi All, Trying to do something like: vars\_prompt: name: server prompt: “Hostname of the server” private: no hosts: “{{ server }}” tasks: debug: msg=“Host is {{ inventory\_hostname }}” The host that I run …

---

## [run local\_action only once](https://forum.ansible.com/t/run-local-action-only-once/13908)

<div class="topic-metadata">

**Author:** [@Heret1qu3](https://forum.ansible.com/u/Heret1qu3)\
**Replies:** 1\
**Last updated:** [November 15, 2013, 5:30pm UTC](https://forum.ansible.com/t/run-local-action-only-once/13908 "2013-11-15T17:30:48Z")

</div>

Hello, my playbook gathering all hosts which was changed in file while playbook plays After playbook finished I should send in to email, but can’t understand how. handlers sends alot emails with this attach file, same …

---

## [get\_url (and maybe later uri): honor content-disposition](https://forum.ansible.com/t/get-url-and-maybe-later-uri-honor-content-disposition/13647)

<div class="topic-metadata">

**Author:** [@Tin\_Tvrtkovic](https://forum.ansible.com/u/Tin_Tvrtkovic)\
**Replies:** 6\
**Last updated:** [November 15, 2013, 5:29pm UTC](https://forum.ansible.com/t/get-url-and-maybe-later-uri-honor-content-disposition/13647 "2013-11-15T17:29:53Z")

</div>

Hi, oh cool, a new list. The get\_url and uri modules don’t respect file names from content disposition headers. While creating a playbook for deploying Maven artifacts from our Nexus instance today I wished they did. …

---

## [How can I require caller is using tag directives, where tags are actively defined (not inherited)?](https://forum.ansible.com/t/how-can-i-require-caller-is-using-tag-directives-where-tags-are-actively-defined-not-inherited/13913)

<div class="topic-metadata">

**Author:** [@josh2](https://forum.ansible.com/u/josh2)\
**Replies:** 1\
**Last updated:** [November 15, 2013, 2:34pm UTC](https://forum.ansible.com/t/how-can-i-require-caller-is-using-tag-directives-where-tags-are-actively-defined-not-inherited/13913 "2013-11-15T14:34:39Z")

</div>

Hi all, I posted the following in IRC to no avail. Please let me know if this is possible and/or desired. \[02:39\] hello.. odd question, i suppose, but: suppose i want to disable the default behavior of running all tag…

---

## [service module state=disabled vs. removed query](https://forum.ansible.com/t/service-module-state-disabled-vs-removed-query/13906)

<div class="topic-metadata">

**Author:** [@Walid](https://forum.ansible.com/u/Walid)\
**Replies:** 4\
**Last updated:** [November 15, 2013, 2:23am UTC](https://forum.ansible.com/t/service-module-state-disabled-vs-removed-query/13906 "2013-11-15T02:23:49Z")

</div>

Hi, I am trying to write some compliance tasksto check if insecure configurations are presents and remedy them, one issue i am facing with the below snippet is that it fails as service is not installed, should there be …

---

## [Hiera equivalent for Ansible](https://forum.ansible.com/t/hiera-equivalent-for-ansible/13910)

<div class="topic-metadata">

**Author:** [@Gonzalo\_Servat](https://forum.ansible.com/u/Gonzalo_Servat)\
**Replies:** 9\
**Last updated:** [November 14, 2013, 10:14pm UTC](https://forum.ansible.com/t/hiera-equivalent-for-ansible/13910 "2013-11-14T22:14:43Z")

</div>

Hi All, Is there a Hiera equivalent for Ansible? For example I want to build an array of packages to install for a host which is made up of packages in host\_vars, group\_vars and perhaps some common packages that apply t…

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

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