# Latest

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

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

**Page:** 972

---

## [new module locale\_gen fails with "Is the package “locales” installed?"](https://forum.ansible.com/t/new-module-locale-gen-fails-with-is-the-package-locales-installed/15088)

<div class="topic-metadata">

**Author:** [@ayounggun](https://forum.ansible.com/u/ayounggun)\
**Replies:** 3\
**Last updated:** [May 6, 2014, 3:53am UTC](https://forum.ansible.com/t/new-module-locale-gen-fails-with-is-the-package-locales-installed/15088 "2014-05-06T03:53:00Z")

</div>

Hi all Can anyone see what I’m doing wrong? I’m trying to generate and set the system’s locale with the following tasks against ubuntu server 14.04. tasks name: install the locales package apt: pkg=locales state=pre…

---

## [unsupported parameter for module: checksum](https://forum.ansible.com/t/unsupported-parameter-for-module-checksum/15161)

<div class="topic-metadata">

**Author:** [@Sanket\_Gupta](https://forum.ansible.com/u/Sanket_Gupta)\
**Replies:** 2\
**Last updated:** [May 6, 2014, 3:51am UTC](https://forum.ansible.com/t/unsupported-parameter-for-module-checksum/15161 "2014-05-06T03:51:55Z")

</div>

Hello I am trying to use the synchroize /var/www folder between control host and my appserver(s) Although the basic synchronize command works, the other options given at http://docs.ansible.com/synchronize\_module.html …

---

## [Loop over the items of a list defined as a host variable for each host in a specific group](https://forum.ansible.com/t/loop-over-the-items-of-a-list-defined-as-a-host-variable-for-each-host-in-a-specific-group/15103)

<div class="topic-metadata">

**Author:** [@Ernest0x](https://forum.ansible.com/u/Ernest0x)\
**Replies:** 14\
**Last updated:** [May 6, 2014, 3:50am UTC](https://forum.ansible.com/t/loop-over-the-items-of-a-list-defined-as-a-host-variable-for-each-host-in-a-specific-group/15103 "2014-05-06T03:50:41Z")

</div>

In a task, I am trying to figure out how I can loop over the items of a list that is defined as a host variable for each host in a specific group. This must be very common, but I can't think of a solution. I suppose w…

---

## [Does having nested playbooks make sense](https://forum.ansible.com/t/does-having-nested-playbooks-make-sense/15164)

<div class="topic-metadata">

**Author:** [@Tom\_Ekberg](https://forum.ansible.com/u/Tom_Ekberg)\
**Replies:** 1\
**Last updated:** [May 6, 2014, 3:46am UTC](https://forum.ansible.com/t/does-having-nested-playbooks-make-sense/15164 "2014-05-06T03:46:49Z")

</div>

One of the tasks in my provision playbook is to loop through the printers, and install each one. I wrote a script to do that (mkdir, download, install, check) and thought it might be better to use YML instead of BASH. Do…

---

## [Can I create host group aliases when using EC2 inventory?](https://forum.ansible.com/t/can-i-create-host-group-aliases-when-using-ec2-inventory/15143)

<div class="topic-metadata">

**Author:** [@Darren\_Hobbs](https://forum.ansible.com/u/Darren_Hobbs)\
**Replies:** 4\
**Last updated:** [May 6, 2014, 3:41am UTC](https://forum.ansible.com/t/can-i-create-host-group-aliases-when-using-ec2-inventory/15143 "2014-05-06T03:41:56Z")

</div>

Hi, I’ve got an existing inventory file that hard-codes our EC2 hosts. I’m trying to move over to the dynamic inventory, using tags. The problem I have is that all my roles refer to hosts such as ‘webservers’, ‘logstash…

---

## [Ansible 1.6.0 has been released](https://forum.ansible.com/t/ansible-1-6-0-has-been-released/15166)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [May 5, 2014, 9:55pm UTC](https://forum.ansible.com/t/ansible-1-6-0-has-been-released/15166 "2014-05-05T21:55:29Z")

</div>

And is available on PyPi now. For full details of the release, including the major changes we’ve made (30+ new modules!), please see the announcement on our blog: http://www.ansible.com/blog/ansible-1.6-adds-30-new-modu…

---

## [Export code using tags with subversion module](https://forum.ansible.com/t/export-code-using-tags-with-subversion-module/15145)

<div class="topic-metadata">

**Author:** [@Sam\_S](https://forum.ansible.com/u/Sam_S)\
**Replies:** 2\
**Last updated:** [May 5, 2014, 2:54pm UTC](https://forum.ansible.com/t/export-code-using-tags-with-subversion-module/15145 "2014-05-05T14:54:51Z")

</div>

So the doc shows the option to export code by passing a revision number. We deploy code by using the tags we create for deployments. Is it possible to use tags instead of “revisions,” or am I better off using the command…

---

## [Working on and using a role that gets published to the galaxy requires too many steps IMO, can we fix it with tools?](https://forum.ansible.com/t/working-on-and-using-a-role-that-gets-published-to-the-galaxy-requires-too-many-steps-imo-can-we-fix-it-with-tools/15151)

<div class="topic-metadata">

**Author:** [@AntelopeSalad](https://forum.ansible.com/u/AntelopeSalad)\
**Replies:** 5\
**Last updated:** [May 5, 2014, 12:34pm UTC](https://forum.ansible.com/t/working-on-and-using-a-role-that-gets-published-to-the-galaxy-requires-too-many-steps-imo-can-we-fix-it-with-tools/15151 "2014-05-05T12:34:52Z")

</div>

Here is a list of manual steps that you need to take such that you can actively work on a playbook that requires a role that you’ve decided to extract and put on the galaxy. Here is the work flow: https://gist.github.c…

---

## [Wrapper script to apply a single role on a host](https://forum.ansible.com/t/wrapper-script-to-apply-a-single-role-on-a-host/15154)

<div class="topic-metadata">

**Author:** [@Tomas\_Karasek1](https://forum.ansible.com/u/Tomas_Karasek1)\
**Replies:** 0\
**Last updated:** [May 4, 2014, 2:03pm UTC](https://forum.ansible.com/t/wrapper-script-to-apply-a-single-role-on-a-host/15154 "2014-05-04T14:03:57Z")

</div>

Hello, I have a plenty or ansible roles for various administrative tasks, and I sometimes want to run a single role on a host. Also, now and then, I stumble upon a role in a github repo and I wonder how would it work fo…

---

## [\`ansible\` for an ad-hoc command: --ask-sudo-pass should \*not\* imply --sudo why?](https://forum.ansible.com/t/ansible-for-an-ad-hoc-command-ask-sudo-pass-should-not-imply-sudo-why/15152)

<div class="topic-metadata">

**Author:** [@Jeffrey\_jf\_Lim](https://forum.ansible.com/u/Jeffrey_jf_Lim)\
**Replies:** 5\
**Last updated:** [May 4, 2014, 12:32pm UTC](https://forum.ansible.com/t/ansible-for-an-ad-hoc-command-ask-sudo-pass-should-not-imply-sudo-why/15152 "2014-05-04T12:32:14Z")

</div>

hi guys, I recently submitted a PR to the project for adding the "implies" back to the \*ansible\* binary (as opposed to the \*ansible-playbook\* binary, which is for plays containing multiple commands). The purpose for t…

---

## [per-environment variables](https://forum.ansible.com/t/per-environment-variables/15128)

<div class="topic-metadata">

**Author:** [@Dick\_Davies](https://forum.ansible.com/u/Dick_Davies)\
**Replies:** 3\
**Last updated:** [May 3, 2014, 8:57am UTC](https://forum.ansible.com/t/per-environment-variables/15128 "2014-05-03T08:57:55Z")

</div>

I'm developing an ansible playbook in Vagrant and then applying it to a customer environment. Getting pretty far by using a single playbook (site.yml) and setting per-environment variables in different inventory files…

---

## [Opening an SSH terminal based on Ansible inventory](https://forum.ansible.com/t/opening-an-ssh-terminal-based-on-ansible-inventory/15130)

<div class="topic-metadata">

**Author:** [@Mathieu\_Martin](https://forum.ansible.com/u/Mathieu_Martin)\
**Replies:** 3\
**Last updated:** [May 3, 2014, 2:54am UTC](https://forum.ansible.com/t/opening-an-ssh-terminal-based-on-ansible-inventory/15130 "2014-05-03T02:54:01Z")

</div>

Hey all, Is there an Ansible plugin that would allow me to open a plain old SSH terminal to one of the nodes in my Ansible inventory? I’d rather manage only one inventory (Ansible’s) than two (Ansible + ssh config). Pl…

---

## [Jinja2 converting double quotes to single quotes](https://forum.ansible.com/t/jinja2-converting-double-quotes-to-single-quotes/15125)

<div class="topic-metadata">

**Author:** [@RobL](https://forum.ansible.com/u/RobL)\
**Replies:** 5\
**Last updated:** [May 2, 2014, 11:20pm UTC](https://forum.ansible.com/t/jinja2-converting-double-quotes-to-single-quotes/15125 "2014-05-02T23:20:10Z")

</div>

Hi: I’m trying to use the template module to create a JSON file. I’m hitting an issue where some of my double-quotes are converting to single quotes. Is there a way to ensure that Jinja2 won’t do this conversion? Notic…

---

## [variable trouble - item: not returning correct value](https://forum.ansible.com/t/variable-trouble-item-not-returning-correct-value/15149)

<div class="topic-metadata">

**Author:** [@david.neudorfer](https://forum.ansible.com/u/david.neudorfer)\
**Replies:** 2\
**Last updated:** [May 2, 2014, 8:32pm UTC](https://forum.ansible.com/t/variable-trouble-item-not-returning-correct-value/15149 "2014-05-02T20:32:50Z")

</div>

I need to reference the variable hostvars\[‘{{ item }}’\].rax\_accessipv4 in a task but I’m getting the node name and not the IP address. In the task rackspace\_clb | Add servers to Load balancer I need address: to be the I…

---

## [Notify after other host after X has happened on Y host.](https://forum.ansible.com/t/notify-after-other-host-after-x-has-happened-on-y-host/15148)

<div class="topic-metadata">

**Author:** [@nZac](https://forum.ansible.com/u/nZac)\
**Replies:** 3\
**Last updated:** [May 2, 2014, 7:56pm UTC](https://forum.ansible.com/t/notify-after-other-host-after-x-has-happened-on-y-host/15148 "2014-05-02T19:56:39Z")

</div>

I was reading through this reddit thread: http://www.reddit.com/r/Python/comments/24a4r0 and found this comment: ‘I found Ansible to be fairly dreadful. It’s difficult to do simple things like “don’t start up the app ser…

---

## [Referencing variables within the same datastructure](https://forum.ansible.com/t/referencing-variables-within-the-same-datastructure/15146)

<div class="topic-metadata">

**Author:** [@Hernandes\_Sousa](https://forum.ansible.com/u/Hernandes_Sousa)\
**Replies:** 1\
**Last updated:** [May 2, 2014, 7:12pm UTC](https://forum.ansible.com/t/referencing-variables-within-the-same-datastructure/15146 "2014-05-02T19:12:04Z")

</div>

Hi, I’m trying to do the same as mentioned in this issue https://github.com/ansible/ansible/issues/4450 without success: ansible: foo: “value” bar: “/tmp/{{ ansible.foo }}” This causes the following error: recursive…

---

## [apt: upgrade=\[safe|full|dist\] seems to ignore "default\_release" parameter](https://forum.ansible.com/t/apt-upgrade-safe-full-dist-seems-to-ignore-default-release-parameter/15073)

<div class="topic-metadata">

**Author:** [@Ralph](https://forum.ansible.com/u/Ralph)\
**Replies:** 5\
**Last updated:** [May 2, 2014, 7:11pm UTC](https://forum.ansible.com/t/apt-upgrade-safe-full-dist-seems-to-ignore-default-release-parameter/15073 "2014-05-02T19:11:33Z")

</div>

Hello everybody! Here’s the thing! I add the Wheezy Backports repo to a newly provisioned VPS and want to do a safe-upgrade before doing anything else. My corresponding lines in the playbook look like this: name: Add…

---

## [variables defined in group\_vars cannot be used as arguments when calling roles in a playbook.](https://forum.ansible.com/t/variables-defined-in-group-vars-cannot-be-used-as-arguments-when-calling-roles-in-a-playbook/15028)

<div class="topic-metadata">

**Author:** [@Remy\_Saissy](https://forum.ansible.com/u/Remy_Saissy)\
**Replies:** 1\
**Last updated:** [May 2, 2014, 5:48pm UTC](https://forum.ansible.com/t/variables-defined-in-group-vars-cannot-be-used-as-arguments-when-calling-roles-in-a-playbook/15028 "2014-05-02T17:48:01Z")

</div>

Hi, I want ot call the same role several time with different parameters in a playbook. the variables I use are a dictionnary defined in group\_vars. I cannot use these variables defined in a group\_vars file when listin…

---

## [rax module creates new server every time](https://forum.ansible.com/t/rax-module-creates-new-server-every-time/15142)

<div class="topic-metadata">

**Author:** [@david.neudorfer](https://forum.ansible.com/u/david.neudorfer)\
**Replies:** 3\
**Last updated:** [May 2, 2014, 3:07pm UTC](https://forum.ansible.com/t/rax-module-creates-new-server-every-time/15142 "2014-05-02T15:07:20Z")

</div>

When using the rax module everytime I run it it creates a new server with the same name. Shouldn’t it just say “ok” if the server name already exists? name: Server build request rax: credentials: “{{ bamboo\_build\_wor…

---

## [Best practice to set up command that will run only at first session](https://forum.ansible.com/t/best-practice-to-set-up-command-that-will-run-only-at-first-session/15141)

<div class="topic-metadata">

**Author:** [@Andrei\_Pashkin](https://forum.ansible.com/u/Andrei_Pashkin)\
**Replies:** 1\
**Last updated:** [May 2, 2014, 1:22pm UTC](https://forum.ansible.com/t/best-practice-to-set-up-command-that-will-run-only-at-first-session/15141 "2014-05-02T13:22:20Z")

</div>

What is the good way to make command run only one time and never run it again if once it succeeds? I think it might be done by triggering a handler which creates a flag-file after command succeds and also by defining a …

---

## [roles defined after include statement are ignored](https://forum.ansible.com/t/roles-defined-after-include-statement-are-ignored/15116)

<div class="topic-metadata">

**Author:** [@Manu\_J](https://forum.ansible.com/u/Manu_J)\
**Replies:** 2\
**Last updated:** [May 2, 2014, 5:02am UTC](https://forum.ansible.com/t/roles-defined-after-include-statement-are-ignored/15116 "2014-05-02T05:02:14Z")

</div>

I have a playbook which looks like this hosts: all include: rails-servers.yml roles: statsd app The roles in rails-servers.yml are executed. but app & statsd roles are not executed by ansible (using 1.5). If I remo…

---

## [Prompt for Sudo Password Only When Needed?](https://forum.ansible.com/t/prompt-for-sudo-password-only-when-needed/15137)

<div class="topic-metadata">

**Author:** [@dannyman](https://forum.ansible.com/u/dannyman)\
**Replies:** 1\
**Last updated:** [May 1, 2014, 10:31pm UTC](https://forum.ansible.com/t/prompt-for-sudo-password-only-when-needed/15137 "2014-05-01T22:31:54Z")

</div>

Hello, I wrote a little playbook to: copy config files over run a check command if check command runs okay, restart a daemon. The config files are writeable by my local user. (Actually, group write, so a team can man…

---

## [advice on how to organize variables (and roles) in a run book](https://forum.ansible.com/t/advice-on-how-to-organize-variables-and-roles-in-a-run-book/15132)

<div class="topic-metadata">

**Author:** [@Patrick\_Galbraith](https://forum.ansible.com/u/Patrick_Galbraith)\
**Replies:** 4\
**Last updated:** [May 1, 2014, 10:12pm UTC](https://forum.ansible.com/t/advice-on-how-to-organize-variables-and-roles-in-a-run-book/15132 "2014-05-01T22:12:42Z")

</div>

Hi all! I have a fairly simple (at least it seems that way!) question about how to arrange variables – or even roles for that matter-- for a runbook that I’ve written for my presentation at AnsibleFest on the Docker mod…

---

## [Oracle Java module](https://forum.ansible.com/t/oracle-java-module/12251)

<div class="topic-metadata">

**Author:** [@Brian\_Coca1](https://forum.ansible.com/u/Brian_Coca1)\
**Replies:** 7\
**Last updated:** [May 1, 2014, 10:07pm UTC](https://forum.ansible.com/t/oracle-java-module/12251 "2014-05-01T22:07:37Z")

</div>

Looks good, just not sure why you re implemented apt/yum as you should be able to chain into the existing modules.

---

## [implicit localhost and limit](https://forum.ansible.com/t/implicit-localhost-and-limit/15136)

<div class="topic-metadata">

**Author:** [@Jesse\_Keating](https://forum.ansible.com/u/Jesse_Keating)\
**Replies:** 1\
**Last updated:** [May 1, 2014, 9:38pm UTC](https://forum.ansible.com/t/implicit-localhost-and-limit/15136 "2014-05-01T21:38:19Z")

</div>

So with 1.5 there is an implicit localhost, which means we don't have to have an explicit one in our inventory to do things like hosts: localhost or local\_action: foo or delegate\_to: localhost This is great, and aw…

---

## [with\_sequence is incompatible with idempotency](https://forum.ansible.com/t/with-sequence-is-incompatible-with-idempotency/15120)

<div class="topic-metadata">

**Author:** [@Kesten\_Broughton2](https://forum.ansible.com/u/Kesten_Broughton2)\
**Replies:** 8\
**Last updated:** [May 1, 2014, 9:32pm UTC](https://forum.ansible.com/t/with-sequence-is-incompatible-with-idempotency/15120 "2014-05-01T21:32:17Z")

</div>

I recently had a need for with\_sequence, but it doesn't seem possible to do a zero count of actions. Suppose i have a local action to create N things, perhaps vms or floating ips. Some number M \< N may already be pre…

---

## [Programmatic access to variables defined inside a role not working](https://forum.ansible.com/t/programmatic-access-to-variables-defined-inside-a-role-not-working/15135)

<div class="topic-metadata">

**Author:** [@edrozenberg](https://forum.ansible.com/u/edrozenberg)\
**Replies:** 2\
**Last updated:** [May 1, 2014, 9:29pm UTC](https://forum.ansible.com/t/programmatic-access-to-variables-defined-inside-a-role-not-working/15135 "2014-05-01T21:29:59Z")

</div>

Hello, I need to programmatically access variables defined with a role ( via myrole/vars/main.yaml) I tried using the trick described in the Ansible FAQ - {{ hostvars\[ inventory\_hostname \]\[ myvar \] }} but it appears va…

---

## [getting ERROR: hosts declaration is required](https://forum.ansible.com/t/getting-error-hosts-declaration-is-required/15124)

<div class="topic-metadata">

**Author:** [@thomas\_farah](https://forum.ansible.com/u/thomas_farah)\
**Replies:** 1\
**Last updated:** [May 1, 2014, 9:24pm UTC](https://forum.ansible.com/t/getting-error-hosts-declaration-is-required/15124 "2014-05-01T21:24:23Z")

</div>

getting ERROR: hosts declaration is required and i have changed lineinfile: to action: lineinfile

---

## [release1.5.5: file module does not set mode on directory, if it exists](https://forum.ansible.com/t/release1-5-5-file-module-does-not-set-mode-on-directory-if-it-exists/15126)

<div class="topic-metadata">

**Author:** [@Vadim\_Shkolin](https://forum.ansible.com/u/Vadim_Shkolin)\
**Replies:** 1\
**Last updated:** [May 1, 2014, 9:15pm UTC](https://forum.ansible.com/t/release1-5-5-file-module-does-not-set-mode-on-directory-if-it-exists/15126 "2014-05-01T21:15:20Z")

</div>

drwxr----- 3 root zabbix 4096 Apr 30 22:21 /var/lib/zabbix playbook action: name: “zabbix client: make directory /var/lib/zabbix” action: file state=directory path=/var/lib/zabbix owner=root group=zabbix mode=0740 s…

---

## [What is the difference between \`notify\` and just a task at the end of a playbook?](https://forum.ansible.com/t/what-is-the-difference-between-notify-and-just-a-task-at-the-end-of-a-playbook/15127)

<div class="topic-metadata">

**Author:** [@Andrei\_Pashkin](https://forum.ansible.com/u/Andrei_Pashkin)\
**Replies:** 1\
**Last updated:** [May 1, 2014, 5:12pm UTC](https://forum.ansible.com/t/what-is-the-difference-between-notify-and-just-a-task-at-the-end-of-a-playbook/15127 "2014-05-01T17:12:01Z")

</div>

Hi! I just started to learn Ansible. In the docs, there is such words: These ‘notify’ actions are triggered at the end of each block of tasks in a playbook, and will only be triggered once even if notified by multipl…

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

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