# Latest

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

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

**Page:** 932

---

## [curl works but uri module times out.](https://forum.ansible.com/t/curl-works-but-uri-module-times-out/16409)

<div class="topic-metadata">

**Author:** [@david.neudorfer](https://forum.ansible.com/u/david.neudorfer)\
**Replies:** 2\
**Last updated:** [October 2, 2014, 8:59pm UTC](https://forum.ansible.com/t/curl-works-but-uri-module-times-out/16409 "2014-10-02T20:59:02Z")

</div>

curl returns a 200 instantly \` $ curl -I -u warby-mgmt:warby-mgmt-password http://localhost:15672/api/queues/%2F/cep.transactional\_email HTTP/1.1 200 OK Server: MochiWeb/1.1 WebMachine/1.10.0 (never breaks eye contac…

---

## [which is a correct way to reuse code from roles?](https://forum.ansible.com/t/which-is-a-correct-way-to-reuse-code-from-roles/16408)

<div class="topic-metadata">

**Author:** [@Michael\_Wozniak](https://forum.ansible.com/u/Michael_Wozniak)\
**Replies:** 1\
**Last updated:** [October 2, 2014, 8:57pm UTC](https://forum.ansible.com/t/which-is-a-correct-way-to-reuse-code-from-roles/16408 "2014-10-02T20:57:32Z")

</div>

Does this work: include: …/…/includes\_common/pkg\_from\_repo.yaml with\_items: { name: ‘bash’ } { name: ‘bash-completion’ } { name: ‘screen’ } etc…

---

## [apt module doesn't install module with a 'when' condition](https://forum.ansible.com/t/apt-module-doesnt-install-module-with-a-when-condition/16395)

<div class="topic-metadata">

**Author:** [@Johan\_Chassaing](https://forum.ansible.com/u/Johan_Chassaing)\
**Replies:** 10\
**Last updated:** [October 2, 2014, 8:56pm UTC](https://forum.ansible.com/t/apt-module-doesnt-install-module-with-a-when-condition/16395 "2014-10-02T20:56:45Z")

</div>

Hi, I run ansible 1.7.2 under ubuntu 14.04 amd64 I made a playbook to upgrade only package that I added to a list. ( https://github.com/johan-chassaing/linux/blob/master/ansible/playbook/package\_upgrade\_list.yml ) So…

---

## [Missing functionality?](https://forum.ansible.com/t/missing-functionality/16399)

<div class="topic-metadata">

**Author:** [@John\_Oliver](https://forum.ansible.com/u/John_Oliver)\
**Replies:** 4\
**Last updated:** [October 2, 2014, 5:20pm UTC](https://forum.ansible.com/t/missing-functionality/16399 "2014-10-02T17:20:00Z")

</div>

The ‘file’ module could use the “directory\_mode” directive. And ‘unarchive’ could use “owner”, “group”, “mode”, “serole”, “setype”, etc. As well as “directory\_mode” Unless I’m completely missing something, but it seems…

---

## [Hiding varibles in with\_items](https://forum.ansible.com/t/hiding-varibles-in-with-items/16405)

<div class="topic-metadata">

**Author:** [@Josh\_Smift1](https://forum.ansible.com/u/Josh_Smift1)\
**Replies:** 3\
**Last updated:** [October 2, 2014, 3:41pm UTC](https://forum.ansible.com/t/hiding-varibles-in-with-items/16405 "2014-10-02T15:41:44Z")

</div>

We want to with\_items over a set of variables with private data in them, like AWS keys. This causes us to get output like TASK: \[ourtask | template .s3cfg\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* changed: \[host1\] =\> …

---

## [Paramiko](https://forum.ansible.com/t/paramiko/16401)

<div class="topic-metadata">

**Author:** [@Graham\_Hay](https://forum.ansible.com/u/Graham_Hay)\
**Replies:** 3\
**Last updated:** [October 2, 2014, 3:18pm UTC](https://forum.ansible.com/t/paramiko/16401 "2014-10-02T15:18:36Z")

</div>

Hi, I recently fetched the latest version of devel (submodules and all), and started getting the “paramiko not installed” error. Has something changed recently? If I specify “-c ssh” it works fine, but I thought that w…

---

## [Error using wait\_for exclude\_hosts option](https://forum.ansible.com/t/error-using-wait-for-exclude-hosts-option/16397)

<div class="topic-metadata">

**Author:** [@Kevin\_Formsma](https://forum.ansible.com/u/Kevin_Formsma)\
**Replies:** 2\
**Last updated:** [October 2, 2014, 12:05pm UTC](https://forum.ansible.com/t/error-using-wait-for-exclude-hosts-option/16397 "2014-10-02T12:05:44Z")

</div>

I’m trying to use the new exclude\_hosts option as part of the drained state on the wait\_for module (https://github.com/ansible/ansible/pull/7260). I’m using the latest source from git. However I’m getting the following …

---

## [ansible code reuse in roles](https://forum.ansible.com/t/ansible-code-reuse-in-roles/16379)

<div class="topic-metadata">

**Author:** [@Dmitry\_Sukhodoyev](https://forum.ansible.com/u/Dmitry_Sukhodoyev)\
**Replies:** 3\
**Last updated:** [October 2, 2014, 11:27am UTC](https://forum.ansible.com/t/ansible-code-reuse-in-roles/16379 "2014-10-02T11:27:20Z")

</div>

Hello. I would like to reuse some ansible code in roles tasks. For example, installation of packages for multiple destination operation systems from local files: roles/includes\_common/pkg\_from\_files.yaml: \`

---

## [chown failed in file module](https://forum.ansible.com/t/chown-failed-in-file-module/16393)

<div class="topic-metadata">

**Author:** [@Subramanian\_Olagappa](https://forum.ansible.com/u/Subramanian_Olagappa)\
**Replies:** 4\
**Last updated:** [October 2, 2014, 11:13am UTC](https://forum.ansible.com/t/chown-failed-in-file-module/16393 "2014-10-02T11:13:36Z")

</div>

Hi, I am using ansible 1.7.2 and see the chown is not working olga@ubuntu:~/ansible/try/02$ ansible localhost -u root -k -m file -a ‘path=/tmp/test6 state=directory mode=0700 owner=root’ SSH password: localhost | FAI…

---

## [Fact caching (work in progress) infrastructure now on development branch](https://forum.ansible.com/t/fact-caching-work-in-progress-infrastructure-now-on-development-branch/14285)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 11\
**Last updated:** [October 1, 2014, 10:10pm UTC](https://forum.ansible.com/t/fact-caching-work-in-progress-infrastructure-now-on-development-branch/14285 "2014-10-01T22:10:29Z")

</div>

I merged Brian Coca’s branch and tweaked it a little. As a result, fact caching can now (in abstract) be configured by a “cache\_plugin” option in ansible.cfg. The default plugin is “bypass”, which is not a plugin, and …

---

## [where do i put a custom iterator?](https://forum.ansible.com/t/where-do-i-put-a-custom-iterator/16396)

<div class="topic-metadata">

**Author:** [@Guy\_Matz](https://forum.ansible.com/u/Guy_Matz)\
**Replies:** 2\
**Last updated:** [October 1, 2014, 9:47pm UTC](https://forum.ansible.com/t/where-do-i-put-a-custom-iterator/16396 "2014-10-01T21:47:11Z")

</div>

ansible-playbook --version ansible-playbook 1.8 (devel 1d3a8bd39c) last updated 2014/09/18 10:33:54 (GMT -400) Hi! I’ve written a custom iterator that works when I put it in ansible/lib/ansible/runner/lookup\_plugins, …

---

## [nested dictionary access](https://forum.ansible.com/t/nested-dictionary-access/16390)

<div class="topic-metadata">

**Author:** [@Sergey\_Sudakovich](https://forum.ansible.com/u/Sergey_Sudakovich)\
**Replies:** 4\
**Last updated:** [October 1, 2014, 5:36pm UTC](https://forum.ansible.com/t/nested-dictionary-access/16390 "2014-10-01T17:36:04Z")

</div>

I have a dictionary like this: ppools: one: devices: abc cde types: \[ typea, typeb, typec\] branch: aaa two: devices: fgh ijk types: \[ typea, typeb, typec\] branch: bbb I was wondering if I can somehow iterate …

---

## [Added ANSIBLE\_KEEP\_REMOTE\_FILES but nothing happens](https://forum.ansible.com/t/added-ansible-keep-remote-files-but-nothing-happens/16388)

<div class="topic-metadata">

**Author:** [@Tennis\_Smith](https://forum.ansible.com/u/Tennis_Smith)\
**Replies:** 3\
**Last updated:** [October 1, 2014, 3:21pm UTC](https://forum.ansible.com/t/added-ansible-keep-remote-files-but-nothing-happens/16388 "2014-10-01T15:21:59Z")

</div>

Hi, This is in reference to a CentOS 6.5 host using ansible as a vagrant provisioner. I added “export ANSIBLE\_KEEP\_REMOTE\_FILES=1” to /etc/profile.d/ansible\_debug.sh so that all users would pick up the env var. Howeve…

---

## [Looping over a set of host in a playbook?](https://forum.ansible.com/t/looping-over-a-set-of-host-in-a-playbook/15012)

<div class="topic-metadata">

**Author:** [@Sebastien\_Han](https://forum.ansible.com/u/Sebastien_Han)\
**Replies:** 18\
**Last updated:** [October 1, 2014, 3:04pm UTC](https://forum.ansible.com/t/looping-over-a-set-of-host-in-a-playbook/15012 "2014-10-01T15:04:20Z")

</div>

Hello, I’m trying to loop over a set of host, get their IP and then append the result to a file. Currently the action looks like this: name: build rings command: swift-ring-builder {{ item.service }}.builder add z1-…

---

## [Python API -\> Inventory Variables](https://forum.ansible.com/t/python-api-inventory-variables/16386)

<div class="topic-metadata">

**Author:** [@CJR](https://forum.ansible.com/u/CJR)\
**Replies:** 5\
**Last updated:** [October 1, 2014, 2:34pm UTC](https://forum.ansible.com/t/python-api-inventory-variables/16386 "2014-10-01T14:34:14Z")

</div>

All - I am having hell with this: \` getLog = ansible.runner.Runner( forks=100, inventory=ansible.inventory.Inventory(‘inventory’), module\_name=‘fetch’, module\_args=‘src=/tmp/logs.tar.gz dest=./output/???/logs flat…

---

## [Ansible and SSH agent forwarding](https://forum.ansible.com/t/ansible-and-ssh-agent-forwarding/16392)

<div class="topic-metadata">

**Author:** [@Mark3](https://forum.ansible.com/u/Mark3)\
**Replies:** 6\
**Last updated:** [October 1, 2014, 1:09pm UTC](https://forum.ansible.com/t/ansible-and-ssh-agent-forwarding/16392 "2014-10-01T13:09:34Z")

</div>

So I’m running 3 CentOS 6.5 machines and came upon this thing which I don’t understand. server 1: client machine server 2: ansible machine server 3: any target machine controlled by ansible. server 2/3 both have my p…

---

## [Access to inventory groups hierarchy](https://forum.ansible.com/t/access-to-inventory-groups-hierarchy/16339)

<div class="topic-metadata">

**Author:** [@Pawel\_Rozlach](https://forum.ansible.com/u/Pawel_Rozlach)\
**Replies:** 6\
**Last updated:** [October 1, 2014, 12:45pm UTC](https://forum.ansible.com/t/access-to-inventory-groups-hierarchy/16339 "2014-10-01T12:45:32Z")

</div>

Hi! I would like to start a discussion about access to inventory groups hierarchy. I have already created an issue describing the problem. Our use case is re-creating inventory groups hierarchy in Icinga\`s configuratio…

---

## [Problems with parsing simple playbooks on latest dev version](https://forum.ansible.com/t/problems-with-parsing-simple-playbooks-on-latest-dev-version/16387)

<div class="topic-metadata">

**Author:** [@Jorge\_Herskovic](https://forum.ansible.com/u/Jorge_Herskovic)\
**Replies:** 3\
**Last updated:** [October 1, 2014, 12:39pm UTC](https://forum.ansible.com/t/problems-with-parsing-simple-playbooks-on-latest-dev-version/16387 "2014-10-01T12:39:59Z")

</div>

Hi everyone, I’m having a horrible time parsing a playbook that worked fine last week (always on HEAD). I may have an error, but I can’t find it. This breaks immediately with ERROR: group is not a legal parameter in a…

---

## [Changing the way we organize the module repos](https://forum.ansible.com/t/changing-the-way-we-organize-the-module-repos/16345)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 10\
**Last updated:** [October 1, 2014, 12:38pm UTC](https://forum.ansible.com/t/changing-the-way-we-organize-the-module-repos/16345 "2014-10-01T12:38:25Z")

</div>

Hi all! As ansible has gotten super big lately, and also because people like virtualenv, it’s time to change the way ansible modules are organized and packaged. The proposal we have is to keep them in lib/ansible/modul…

---

## [Add allow\_skipping flag to plays](https://forum.ansible.com/t/add-allow-skipping-flag-to-plays/16330)

<div class="topic-metadata">

**Author:** [@Tony\_Kinsley](https://forum.ansible.com/u/Tony_Kinsley)\
**Replies:** 1\
**Last updated:** [October 1, 2014, 12:35pm UTC](https://forum.ansible.com/t/add-allow-skipping-flag-to-plays/16330 "2014-10-01T12:35:48Z")

</div>

I currently have a playbook that the first play provisions VMs and then uses set\_facts to set the ansible\_ssh\_host to the ip returned from the provisioning step. I really like the --start-at-task option, especially while…

---

## [new to ansible, looking for the way to go with oracle-ansible](https://forum.ansible.com/t/new-to-ansible-looking-for-the-way-to-go-with-oracle-ansible/16372)

<div class="topic-metadata">

**Author:** [@Ronald\_Rood](https://forum.ansible.com/u/Ronald_Rood)\
**Replies:** 4\
**Last updated:** [October 1, 2014, 12:32pm UTC](https://forum.ansible.com/t/new-to-ansible-looking-for-the-way-to-go-with-oracle-ansible/16372 "2014-10-01T12:32:31Z")

</div>

Hi, Michael already made a great set of roles to install and configure Oracle databases. See https://github.com/oravirt/ansible-oracle. It works but I wonder if this is the way to go or not. Considering the fact that t…

---

## [How to edit boto for ec2, if we want to use big size of root](https://forum.ansible.com/t/how-to-edit-boto-for-ec2-if-we-want-to-use-big-size-of-root/16378)

<div class="topic-metadata">

**Author:** [@wholanda\_Edwart](https://forum.ansible.com/u/wholanda_Edwart)\
**Replies:** 1\
**Last updated:** [October 1, 2014, 12:17pm UTC](https://forum.ansible.com/t/how-to-edit-boto-for-ec2-if-we-want-to-use-big-size-of-root/16378 "2014-10-01T12:17:10Z")

</div>

Guys, I can use boto to create instance, but my problem, i dont know how to add tag when use it & get ip address. If i use ansible, i can give tag name & get ip address of new instance, but the problem the default of r…

---

## [unarchive module:  --check](https://forum.ansible.com/t/unarchive-module-check/16385)

<div class="topic-metadata">

**Author:** [@Lui](https://forum.ansible.com/u/Lui)\
**Replies:** 4\
**Last updated:** [October 1, 2014, 12:06pm UTC](https://forum.ansible.com/t/unarchive-module-check/16385 "2014-10-01T12:06:02Z")

</div>

I just ran a playbook that uses the “unarchive” module with the --check switch. The playbook still made changes to my target machine… it uncompressed my archive. I thought that when running a playbook with the --check s…

---

## [Back order for with\_items](https://forum.ansible.com/t/back-order-for-with-items/15179)

<div class="topic-metadata">

**Author:** [@Aleksey\_Chirkin](https://forum.ansible.com/u/Aleksey_Chirkin)\
**Replies:** 3\
**Last updated:** [October 1, 2014, 12:01pm UTC](https://forum.ansible.com/t/back-order-for-with-items/15179 "2014-10-01T12:01:38Z")

</div>

Hello! I use zfs module for creating necessary structure. Using “with\_items” I iterate over elements in config list. It’s ok, but after all I need to unmount creating volumes. This must be done in reverse order for pr…

---

## [msg: Failed to lock apt for exclusive operation - apt: update\_cache=yes](https://forum.ansible.com/t/msg-failed-to-lock-apt-for-exclusive-operation-apt-update-cache-yes/16374)

<div class="topic-metadata">

**Author:** [@Eric\_Brooke](https://forum.ansible.com/u/Eric_Brooke)\
**Replies:** 5\
**Last updated:** [September 30, 2014, 10:33pm UTC](https://forum.ansible.com/t/msg-failed-to-lock-apt-for-exclusive-operation-apt-update-cache-yes/16374 "2014-09-30T22:33:44Z")

</div>

Hello, Last week we updated one of our servers from unbent 12.0+ to 14.0+ it deployed with out issue, after the weekend deployment to one of servers is no longer possible :frowning: Here is the command that is failing: …

---

## [Variable scope issue: value from a different role being used](https://forum.ansible.com/t/variable-scope-issue-value-from-a-different-role-being-used/16370)

<div class="topic-metadata">

**Author:** [@Tom\_Bamford1](https://forum.ansible.com/u/Tom_Bamford1)\
**Replies:** 6\
**Last updated:** [September 30, 2014, 8:54pm UTC](https://forum.ansible.com/t/variable-scope-issue-value-from-a-different-role-being-used/16370 "2014-09-30T20:54:17Z")

</div>

Hi all I’m running from HEAD (recently ran ‘git pull --rebase && git submodule update --init --recursive’ following recent restructuring). Unfortunately I can’t tell which commit I was previously running from, but I cu…

---

## [Limit number of instances with specific role](https://forum.ansible.com/t/limit-number-of-instances-with-specific-role/16368)

<div class="topic-metadata">

**Author:** [@paukbjuh](https://forum.ansible.com/u/paukbjuh)\
**Replies:** 3\
**Last updated:** [September 30, 2014, 7:33pm UTC](https://forum.ansible.com/t/limit-number-of-instances-with-specific-role/16368 "2014-09-30T19:33:41Z")

</div>

Hi, I want to install specific role on part of the hosts in a host group. Not a rolling update, but as an absolute limit of some process installation in entire host group. So, according to that number process will be i…

---

## [Prompts from roles?](https://forum.ansible.com/t/prompts-from-roles/16381)

<div class="topic-metadata">

**Author:** [@Matt\_Hughes](https://forum.ansible.com/u/Matt_Hughes)\
**Replies:** 1\
**Last updated:** [September 30, 2014, 7:16pm UTC](https://forum.ansible.com/t/prompts-from-roles/16381 "2014-09-30T19:16:33Z")

</div>

I know you can declare variables as part of a role: └── wordpress-nginx ├── LICENSE.md ├── README.md ├── group\_vars │ └── all ├── hosts.example ├── roles │ ├── common │ │ ├── files │ │ │ ├── RPM-GPG-KEY-EPEL-6 │ │ │ ├─…

---

## [apt safe-upgrade module](https://forum.ansible.com/t/apt-safe-upgrade-module/16357)

<div class="topic-metadata">

**Author:** [@Benjamin\_Copeland1](https://forum.ansible.com/u/Benjamin_Copeland1)\
**Replies:** 8\
**Last updated:** [September 30, 2014, 7:15pm UTC](https://forum.ansible.com/t/apt-safe-upgrade-module/16357 "2014-09-30T19:15:34Z")

</div>

name: hold openssh-client only if OS is 12.04 shell: echo “openssh-client hold” | sudo dpkg --set-selections when: ansible\_distribution == ‘Ubuntu’ and ansible\_distribution\_release == ‘precise’ name: hold openssh-…

---

## [New ansible base images on Docker Hub](https://forum.ansible.com/t/new-ansible-base-images-on-docker-hub/16384)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 0\
**Last updated:** [September 30, 2014, 4:50pm UTC](https://forum.ansible.com/t/new-ansible-base-images-on-docker-hub/16384 "2014-09-30T16:50:38Z")

</div>

For those interested: http://www.ansible.com/blog/official-ansible-content-on-docker-hub

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

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