# Latest

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

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

**Page:** 898

---

## [apt\_key with ubuntu trusty](https://forum.ansible.com/t/apt-key-with-ubuntu-trusty/17421)

<div class="topic-metadata">

**Author:** [@Rogelio\_Morrell](https://forum.ansible.com/u/Rogelio_Morrell)\
**Replies:** 1\
**Last updated:** [February 2, 2015, 6:55pm UTC](https://forum.ansible.com/t/apt-key-with-ubuntu-trusty/17421 "2015-02-02T18:55:56Z")

</div>

Hi, Using Ansible 1.6.6 and a Linux Mint 16, which tries to provision an Ubuntu trusty image, I get apt\_key error

---

## [Swap support PR](https://forum.ansible.com/t/swap-support-pr/17419)

<div class="topic-metadata">

**Author:** [@Umur\_Kontaci](https://forum.ansible.com/u/Umur_Kontaci)\
**Replies:** 3\
**Last updated:** [February 2, 2015, 6:30pm UTC](https://forum.ansible.com/t/swap-support-pr/17419 "2015-02-02T18:30:29Z")

</div>

Hey everyone, I’ve just send a PR for a swap module and had some feedback and wanted to discuss this with a wider group. You can look at the PR at: https://github.com/ansible/ansible-modules-extras/pull/233 Brian (bco…

---

## [Ansible First Steps with apt-get playbook](https://forum.ansible.com/t/ansible-first-steps-with-apt-get-playbook/17410)

<div class="topic-metadata">

**Author:** [@Anatol](https://forum.ansible.com/u/Anatol)\
**Replies:** 3\
**Last updated:** [February 2, 2015, 5:39pm UTC](https://forum.ansible.com/t/ansible-first-steps-with-apt-get-playbook/17410 "2015-02-02T17:39:58Z")

</div>

Hi there, I´m starting learning ansible and I can say I´m getting addicted! Great Software! May one look at my first try for a playbook and tell me if this is the way to go: Given is following bash code to run only se…

---

## [How to retrieve EC2 internal IP using Tags?](https://forum.ansible.com/t/how-to-retrieve-ec2-internal-ip-using-tags/17420)

<div class="topic-metadata">

**Author:** [@Pradeep\_Bhadani](https://forum.ansible.com/u/Pradeep_Bhadani)\
**Replies:** 0\
**Last updated:** [February 2, 2015, 5:17pm UTC](https://forum.ansible.com/t/how-to-retrieve-ec2-internal-ip-using-tags/17420 "2015-02-02T17:17:13Z")

</div>

Hey , I want to retrieve internal IP / hostname of EC2 machine which hase some tags. How can i retrieve based on tags? I was reading this : docs.ansible.com/intro\_dynamic\_inventory.html#example-aws-ec2-external-invent…

---

## [Syntax of "device\_name" for ec2 module](https://forum.ansible.com/t/syntax-of-device-name-for-ec2-module/17404)

<div class="topic-metadata">

**Author:** [@Jody\_McIntyre](https://forum.ansible.com/u/Jody_McIntyre)\
**Replies:** 2\
**Last updated:** [February 2, 2015, 4:58pm UTC](https://forum.ansible.com/t/syntax-of-device-name-for-ec2-module/17404 "2015-02-02T16:58:14Z")

</div>

Hi, I’ve been trying to change the size of my root partition when provisioning with the ec2 module. The documentation isn’t clear on what to do here, and I’m seeing some very strange results. I tried a bunch of possible…

---

## [Accelerated Mode, Python 2.6, and CentOS 5](https://forum.ansible.com/t/accelerated-mode-python-2-6-and-centos-5/13871)

<div class="topic-metadata">

**Author:** [@Kevin\_Sage](https://forum.ansible.com/u/Kevin_Sage)\
**Replies:** 1\
**Last updated:** [February 2, 2015, 3:59pm UTC](https://forum.ansible.com/t/accelerated-mode-python-2-6-and-centos-5/13871 "2015-02-02T15:59:39Z")

</div>

This may be a stupid question, but I want to be sure I’m not missing something… Accelerated mode seems to require some Python 2.5+ syntax, and per commit a66cfed on the devel branch, the docs have been updated to state …

---

## [Parsing playbooks with full Jinja templating](https://forum.ansible.com/t/parsing-playbooks-with-full-jinja-templating/17413)

<div class="topic-metadata">

**Author:** [@Anand\_Buddhdev2](https://forum.ansible.com/u/Anand_Buddhdev2)\
**Replies:** 12\
**Last updated:** [February 2, 2015, 3:21pm UTC](https://forum.ansible.com/t/parsing-playbooks-with-full-jinja-templating/17413 "2015-02-02T15:21:35Z")

</div>

Hi Ansible developers, I’ve been wondering about something. Ansible’s syntax for module arguments is key=value parameters, all on a single line. This then needs to be parsed, and the key=value elements properly separate…

---

## [dynamic host invetory issue. rax.py](https://forum.ansible.com/t/dynamic-host-invetory-issue-rax-py/17416)

<div class="topic-metadata">

**Author:** [@Aru\_s](https://forum.ansible.com/u/Aru_s)\
**Replies:** 1\
**Last updated:** [February 2, 2015, 1:46pm UTC](https://forum.ansible.com/t/dynamic-host-invetory-issue-rax-py/17416 "2015-02-02T13:46:51Z")

</div>

Hi, I am trying to use the racksapce rax.py dynamic inventory to get the facts of the servers. In my env the firewall policy restricts the ssh connection from specific ip ranges only which not includes the ansible maste…

---

## [Example setup playbooks for RHEL / CentOS for leaning](https://forum.ansible.com/t/example-setup-playbooks-for-rhel-centos-for-leaning/17401)

<div class="topic-metadata">

**Author:** [@Stuart\_Budd](https://forum.ansible.com/u/Stuart_Budd)\
**Replies:** 3\
**Last updated:** [February 2, 2015, 11:52am UTC](https://forum.ansible.com/t/example-setup-playbooks-for-rhel-centos-for-leaning/17401 "2015-02-02T11:52:11Z")

</div>

Does anyone have a good example set of playbooks that I can use for leaning purposes that does the basis setup of a couple of servers. I am looking for something basic that does: sudo to root SSH key copy Install a f…

---

## [Separation of config data and logic](https://forum.ansible.com/t/separation-of-config-data-and-logic/17411)

<div class="topic-metadata">

**Author:** [@Giovanni\_Tirloni](https://forum.ansible.com/u/Giovanni_Tirloni)\
**Replies:** 2\
**Last updated:** [February 2, 2015, 10:03am UTC](https://forum.ansible.com/t/separation-of-config-data-and-logic/17411 "2015-02-02T10:03:15Z")

</div>

Hi, As I build more complex playbooks that will be used by other teams that have zero knowledge of Ansible (read: big corporation), I started to migrate much of the configuration data to variable files. The idea was …

---

## [\[Errno 11\] Resource temporarily unavailable when using ansible api](https://forum.ansible.com/t/errno-11-resource-temporarily-unavailable-when-using-ansible-api/17414)

<div class="topic-metadata">

**Author:** [@Ritesh\_Shetty](https://forum.ansible.com/u/Ritesh_Shetty)\
**Replies:** 0\
**Last updated:** [February 2, 2015, 4:33am UTC](https://forum.ansible.com/t/errno-11-resource-temporarily-unavailable-when-using-ansible-api/17414 "2015-02-02T04:33:16Z")

</div>

I am too getting this error and could not find a way to fix it … I am using ubuntu 14.04, ansible 1.8.2 in virtual mode. And using the python api to call the playbook.run() Architechture is to listen to a mesage on a R…

---

## [Anyone seen a "Resource temporarily unavailable error"?](https://forum.ansible.com/t/anyone-seen-a-resource-temporarily-unavailable-error/12952)

<div class="topic-metadata">

**Author:** [@Kyle\_Heath](https://forum.ansible.com/u/Kyle_Heath)\
**Replies:** 8\
**Last updated:** [February 2, 2015, 2:30am UTC](https://forum.ansible.com/t/anyone-seen-a-resource-temporarily-unavailable-error/12952 "2015-02-02T02:30:41Z")

</div>

Hi Ansible folks, I get an “IOError: \[Errno 11\] Resource temporarily unavailable” error whenever I run a playbook with fork \> 1. Just wondering if anyone has seen this problem before or has trouble-shooting advice. Pyt…

---

## [Beginner: Ansible on OSX module path not found](https://forum.ansible.com/t/beginner-ansible-on-osx-module-path-not-found/17408)

<div class="topic-metadata">

**Author:** [@Anatol](https://forum.ansible.com/u/Anatol)\
**Replies:** 3\
**Last updated:** [February 1, 2015, 5:33pm UTC](https://forum.ansible.com/t/beginner-ansible-on-osx-module-path-not-found/17408 "2015-02-01T17:33:01Z")

</div>

Hi, I´ve followed the install instractions (via pip) on OSX yosemite. Created an ansible\_hosts.txt file and run successfully: \` ansible --ask-pass all -m ping \` 82.137.158.111 | success \>\> { "changed": false, "pin…

---

## [Refreshing EC2 inventory between playbooks](https://forum.ansible.com/t/refreshing-ec2-inventory-between-playbooks/17396)

<div class="topic-metadata">

**Author:** [@Tzach\_Livyatan](https://forum.ansible.com/u/Tzach_Livyatan)\
**Replies:** 5\
**Last updated:** [February 1, 2015, 2:44pm UTC](https://forum.ansible.com/t/refreshing-ec2-inventory-between-playbooks/17396 "2015-02-01T14:44:48Z")

</div>

Hi all I’m using ec2 module to launch EC2 instances in one play book, and “-i ec2.py” to query a subset of the instances in a second playbook. So far so good. The problem I have is when I started to call both play boo…

---

## [Nested loop: referring to the value of the current item of the outer loop](https://forum.ansible.com/t/nested-loop-referring-to-the-value-of-the-current-item-of-the-outer-loop/17350)

<div class="topic-metadata">

**Author:** [@Tadej\_Janez](https://forum.ansible.com/u/Tadej_Janez)\
**Replies:** 6\
**Last updated:** [February 1, 2015, 1:41pm UTC](https://forum.ansible.com/t/nested-loop-referring-to-the-value-of-the-current-item-of-the-outer-loop/17350 "2015-02-01T13:41:52Z")

</div>

Hi! I’m trying to develop a simple backup solution with Ansible. My inventory file contains: \[backup-hosts\] backup-host1 backup-host2 \[backup-targets\] backup-target1 backup-target2 backup-target3 backup-target4 …

---

## [template error](https://forum.ansible.com/t/template-error/16753)

<div class="topic-metadata">

**Author:** [@simonq](https://forum.ansible.com/u/simonq)\
**Replies:** 6\
**Last updated:** [February 1, 2015, 10:49am UTC](https://forum.ansible.com/t/template-error/16753 "2015-02-01T10:49:52Z")

</div>

I get template error while templating string: unexpected ‘.’ when running this task using ansible 1.8 (devel fa953e162e). Used to work with previous version I was running (1d04e4b3d2). Any thoughts? name: Get image id …

---

## [Ansible-Playbook List All Variables: Plugin?](https://forum.ansible.com/t/ansible-playbook-list-all-variables-plugin/17405)

<div class="topic-metadata">

**Author:** [@Justin\_Lee](https://forum.ansible.com/u/Justin_Lee)\
**Replies:** 2\
**Last updated:** [January 31, 2015, 10:03pm UTC](https://forum.ansible.com/t/ansible-playbook-list-all-variables-plugin/17405 "2015-01-31T22:03:31Z")

</div>

Hi, I’m new to this (first time in code contribution). I’ve modified my ansible-playbook to include an option to list all variables in the same way it can list all tasks. So something like: ansible-playbook playbook.y…

---

## [How to do lookup a dynamic filename?](https://forum.ansible.com/t/how-to-do-lookup-a-dynamic-filename/17400)

<div class="topic-metadata">

**Author:** [@Eddie\_Welker](https://forum.ansible.com/u/Eddie_Welker)\
**Replies:** 1\
**Last updated:** [January 31, 2015, 12:27am UTC](https://forum.ansible.com/t/how-to-do-lookup-a-dynamic-filename/17400 "2015-01-31T00:27:04Z")

</div>

Hi, I’m trying to do something like the following in 'group\_vars/all": name: “{{ lookup(‘env’, ‘PROJECT\_NAME’) }}” file: “{{ lookup(‘file’, ‘{{name}}’ ) }}” but of course, the syntax above won’t work. Is there an al…

---

## [Command line with pipes](https://forum.ansible.com/t/command-line-with-pipes/17403)

<div class="topic-metadata">

**Author:** [@Roman\_Dolgov](https://forum.ansible.com/u/Roman_Dolgov)\
**Replies:** 1\
**Last updated:** [January 31, 2015, 12:25am UTC](https://forum.ansible.com/t/command-line-with-pipes/17403 "2015-01-31T00:25:43Z")

</div>

\` tasks: name: get clusters names command: “ps axu | grep bin/post | egrep -o etc/postgresql/9.3/.\* | awk -F ‘/’ ‘{print $4}’” \` That command doesn’t work in ansible-playbook, but works fine in shell, I got error a…

---

## [include\_vars doesn't seem to persist across hosts](https://forum.ansible.com/t/include-vars-doesnt-seem-to-persist-across-hosts/17407)

<div class="topic-metadata">

**Author:** [@david.neudorfer](https://forum.ansible.com/u/david.neudorfer)\
**Replies:** 4\
**Last updated:** [January 30, 2015, 11:16pm UTC](https://forum.ansible.com/t/include-vars-doesnt-seem-to-persist-across-hosts/17407 "2015-01-30T23:16:32Z")

</div>

I’m required to name: include consul secrets include\_vars: /tmp/secrets.yml for each set of -hosts: Is it possible to include this file at the beginning and not have to call it for every host?

---

## [issues with action plugin](https://forum.ansible.com/t/issues-with-action-plugin/17395)

<div class="topic-metadata">

**Author:** [@J11](https://forum.ansible.com/u/J11)\
**Replies:** 2\
**Last updated:** [January 30, 2015, 7:59pm UTC](https://forum.ansible.com/t/issues-with-action-plugin/17395 "2015-01-30T19:59:22Z")

</div>

All, Hoping someone can point me in the right direction. Created fairly simply action plugin (more or less copied from one of the action plugins bundled with Ansible) and can’t seem to use it. Playbook looks as follows…

---

## [PEP8](https://forum.ansible.com/t/pep8/13796)

<div class="topic-metadata">

**Author:** [@Christian\_Berendt](https://forum.ansible.com/u/Christian_Berendt)\
**Replies:** 3\
**Last updated:** [January 30, 2015, 7:24pm UTC](https://forum.ansible.com/t/pep8/13796 "2015-01-30T19:24:03Z")

</div>

What about PEP8 (http://www.python.org/dev/peps/pep-0008/)? There are a lot of style issues all over the sources. I would be willing to cleanup the sources. Christian.

---

## [Certificate validation errors connecting to Windows Servers with Self-signed certs](https://forum.ansible.com/t/certificate-validation-errors-connecting-to-windows-servers-with-self-signed-certs/17402)

<div class="topic-metadata">

**Author:** [@Stephen\_Gargan](https://forum.ansible.com/u/Stephen_Gargan)\
**Replies:** 1\
**Last updated:** [January 30, 2015, 5:44pm UTC](https://forum.ansible.com/t/certificate-validation-errors-connecting-to-windows-servers-with-self-signed-certs/17402 "2015-01-30T17:44:08Z")

</div>

Since 2.7.9 python validates and rejects invalid or self-signed certs by default. The current setup script for to configure remoting for ansible creates a self signed cert for the Https connector and as a result connecti…

---

## [Expected number of hosts](https://forum.ansible.com/t/expected-number-of-hosts/17391)

<div class="topic-metadata">

**Author:** [@Vaclav\_Adamec](https://forum.ansible.com/u/Vaclav_Adamec)\
**Replies:** 2\
**Last updated:** [January 30, 2015, 6:29am UTC](https://forum.ansible.com/t/expected-number-of-hosts/17391 "2015-01-30T06:29:40Z")

</div>

Hi, is there any option to set validation of host count ? For example if we limit playbook to be run only on servers with specific fact but some servers not populate redis cache with up2date version of facts (or failed)…

---

## [VirtualBox module wrapper](https://forum.ansible.com/t/virtualbox-module-wrapper/15968)

<div class="topic-metadata">

**Author:** [@Anatoly\_Mikhailov](https://forum.ansible.com/u/Anatoly_Mikhailov)\
**Replies:** 4\
**Last updated:** [January 29, 2015, 11:44pm UTC](https://forum.ansible.com/t/virtualbox-module-wrapper/15968 "2015-01-29T23:44:10Z")

</div>

Since I lost hope on Vagrant from high complexity to extend to Ruby syntax for VMs configuration I tried to build some simple version of VBoxManage CLI that based on .vagrant configuration (pretty weird data structure wi…

---

## [Reading the list of roles from a variable](https://forum.ansible.com/t/reading-the-list-of-roles-from-a-variable/17398)

<div class="topic-metadata">

**Author:** [@Henning\_Eggers](https://forum.ansible.com/u/Henning_Eggers)\
**Replies:** 2\
**Last updated:** [January 29, 2015, 10:31pm UTC](https://forum.ansible.com/t/reading-the-list-of-roles-from-a-variable/17398 "2015-01-29T22:31:26Z")

</div>

Hi! I stumbled onto the following. While this works: \` hosts: all roles: { role: foo, data: ‘bar’ } { role: foo, data: ‘zab’ } \` this will fail right away with “value of ‘roles:’ must be a list”: \` hosts: al…

---

## [New Book on Ansible - Learning Ansible (Free review copies available)](https://forum.ansible.com/t/new-book-on-ansible-learning-ansible-free-review-copies-available/17349)

<div class="topic-metadata">

**Author:** [@Jay\_Raval](https://forum.ansible.com/u/Jay_Raval)\
**Replies:** 10\
**Last updated:** [January 29, 2015, 8:30pm UTC](https://forum.ansible.com/t/new-book-on-ansible-learning-ansible-free-review-copies-available/17349 "2015-01-29T20:30:26Z")

</div>

Hi Everyone, We are looking for reviewers for our newly published book. I’ll be happy to provide a free eBook copy to anyone interested in writing a review for this book on Amazon and/or Blog/Websites within 2 weeks aft…

---

## [Non-task Includes](https://forum.ansible.com/t/non-task-includes/17379)

<div class="topic-metadata">

**Author:** [@baldwin\_wong](https://forum.ansible.com/u/baldwin_wong)\
**Replies:** 1\
**Last updated:** [January 29, 2015, 2:48pm UTC](https://forum.ansible.com/t/non-task-includes/17379 "2015-01-29T14:48:00Z")

</div>

→ % cat playbook1.yml hosts: 127.0.0.1 gather\_facts: false tasks: name: Task1 shell: echo “This is Task1” include: playbook2.yml tags=play2 → % cat playbook2.yml hosts: 127.0.0.1 gather\_facts: false t…

---

## [jinja filters to iterate through IP addresses in big subnet](https://forum.ansible.com/t/jinja-filters-to-iterate-through-ip-addresses-in-big-subnet/17394)

<div class="topic-metadata">

**Author:** [@Alexey\_Porotnikov](https://forum.ansible.com/u/Alexey_Porotnikov)\
**Replies:** 1\
**Last updated:** [January 29, 2015, 9:15am UTC](https://forum.ansible.com/t/jinja-filters-to-iterate-through-ip-addresses-in-big-subnet/17394 "2015-01-29T09:15:35Z")

</div>

Hello. I’m iterating through IP addresses (crossing boundary of last octet) by writing 2 new jinja2 filters with obvious function and content: ip2int and int2ip and following code Inventory: \[something\] hostname1: s…

---

## [Looping Issue making me Loopy!](https://forum.ansible.com/t/looping-issue-making-me-loopy/17389)

<div class="topic-metadata">

**Author:** [@Evan\_Tahler](https://forum.ansible.com/u/Evan_Tahler)\
**Replies:** 4\
**Last updated:** [January 29, 2015, 9:13am UTC](https://forum.ansible.com/t/looping-issue-making-me-loopy/17389 "2015-01-29T09:13:29Z")

</div>

Hi All! I cannot sort out how to itterate though this loop properly: I have 2 data dictionaries: applications: application\_1 application\_2 and big\_var\_collection: application\_1: deployment\_tasks: { cmd: ‘bundle…

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

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