# Latest

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

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

**Page:** 961

---

## [GCE service account: "RSA key format is not supported"](https://forum.ansible.com/t/gce-service-account-rsa-key-format-is-not-supported/15412)

<div class="topic-metadata">

**Author:** [@Michael\_Lucas](https://forum.ansible.com/u/Michael_Lucas)\
**Replies:** 3\
**Last updated:** [June 19, 2014, 5:24pm UTC](https://forum.ansible.com/t/gce-service-account-rsa-key-format-is-not-supported/15412 "2014-06-19T17:24:23Z")

</div>

Hi, I'm running $ ansible --version ansible 1.7 (devel 74f20ebf79) last updated 2014/06/04 11:36:10 (GMT -400) on a week-old OpenBSD snapshot. I'm trying to get Google Compute Engine running with a service account,…

---

## [10 lines in file](https://forum.ansible.com/t/10-lines-in-file/15495)

<div class="topic-metadata">

**Author:** [@Michael\_Baydoun](https://forum.ansible.com/u/Michael_Baydoun)\
**Replies:** 5\
**Last updated:** [June 19, 2014, 2:22pm UTC](https://forum.ansible.com/t/10-lines-in-file/15495 "2014-06-19T14:22:55Z")

</div>

I need to add 10 lines to the middle of a file where the rest of the file is dynamic. Since it’s dynamic I need to use something like lineinfile. I’d rather not invoke lineinfile 10 times as that seems messy. Suggestion…

---

## [Possible bug in repeated runs of ec2\_group module with wide-open rule](https://forum.ansible.com/t/possible-bug-in-repeated-runs-of-ec2-group-module-with-wide-open-rule/15497)

<div class="topic-metadata">

**Author:** [@Michael\_Peters](https://forum.ansible.com/u/Michael_Peters)\
**Replies:** 2\
**Last updated:** [June 19, 2014, 1:22pm UTC](https://forum.ansible.com/t/possible-bug-in-repeated-runs-of-ec2-group-module-with-wide-open-rule/15497 "2014-06-19T13:22:24Z")

</div>

I have the following as part of a playbook that makes sure we have the appropriate security groups setup and all of them work just fine except this one: - name: Create wide-open testing security group local…

---

## [Parallel execution of 'command' task](https://forum.ansible.com/t/parallel-execution-of-command-task/15488)

<div class="topic-metadata">

**Author:** [@Nick\_Piper](https://forum.ansible.com/u/Nick_Piper)\
**Replies:** 5\
**Last updated:** [June 19, 2014, 12:50pm UTC](https://forum.ansible.com/t/parallel-execution-of-command-task/15488 "2014-06-19T12:50:21Z")

</div>

I’d like to be able to run a command line tool ~500 times, 4 at once, per server, to work through a (per server) list. We currently have this in our playbook: name: list existing projects shell: find /var/define/pro…

---

## [Adding a security group to running ec2 instance](https://forum.ansible.com/t/adding-a-security-group-to-running-ec2-instance/15401)

<div class="topic-metadata">

**Author:** [@Louis\_Garman](https://forum.ansible.com/u/Louis_Garman)\
**Replies:** 10\
**Last updated:** [June 19, 2014, 1:24am UTC](https://forum.ansible.com/t/adding-a-security-group-to-running-ec2-instance/15401 "2014-06-19T01:24:38Z")

</div>

Is there a way to update the properties of a running ec2 instance? Specifically, I’d like to add security groups to a running VPC instance. I’ve used the ec2 module to create an instance, but once it’s running, adding a…

---

## [enumerate elasticache/redis instances](https://forum.ansible.com/t/enumerate-elasticache-redis-instances/15388)

<div class="topic-metadata">

**Author:** [@Damjan\_Georgievski](https://forum.ansible.com/u/Damjan_Georgievski)\
**Replies:** 4\
**Last updated:** [June 19, 2014, 12:00am UTC](https://forum.ansible.com/t/enumerate-elasticache-redis-instances/15388 "2014-06-19T00:00:45Z")

</div>

When deploying an app (on ec2) I need to setup a file with all the redis instances the app will use. But I can’t find a way to enumerate all redis instances that I have on AWS elasticache.

---

## [Writing modules in yaml](https://forum.ansible.com/t/writing-modules-in-yaml/15476)

<div class="topic-metadata">

**Author:** [@Hagai\_Kariti](https://forum.ansible.com/u/Hagai_Kariti)\
**Replies:** 6\
**Last updated:** [June 18, 2014, 4:04pm UTC](https://forum.ansible.com/t/writing-modules-in-yaml/15476 "2014-06-18T16:04:39Z")

</div>

On more than one occasion I found myself encapsulating repeated sequences of tasks into a (parametrized) role to make them reusable. Adding nginx sites is one example. This has the disadvantage of losing the actions one …

---

## [Jinja2 in vars/main.yml](https://forum.ansible.com/t/jinja2-in-vars-main-yml/15490)

<div class="topic-metadata">

**Author:** [@Vasco\_Figueira](https://forum.ansible.com/u/Vasco_Figueira)\
**Replies:** 1\
**Last updated:** [June 18, 2014, 4:03pm UTC](https://forum.ansible.com/t/jinja2-in-vars-main-yml/15490 "2014-06-18T16:03:35Z")

</div>

Hi, After a task name: check file existence stat: path=/var/run/file register: file I can do this in any of my tasks …something… my\_param={% if file.stat.exists %} file {% else %} url {% endif %} to get my\_param …

---

## [Another sudo issue](https://forum.ansible.com/t/another-sudo-issue/15468)

<div class="topic-metadata">

**Author:** [@Cameron\_Junge](https://forum.ansible.com/u/Cameron_Junge)\
**Replies:** 3\
**Last updated:** [June 18, 2014, 3:48pm UTC](https://forum.ansible.com/t/another-sudo-issue/15468 "2014-06-18T15:48:28Z")

</div>

Hi All, Just getting started with Ansible and I’m having issues with some of the sudo stuff. I have a user deployer, who has limited permissions on the server. Neither deployer nor root have a password set, I’m using s…

---

## [ansible-vault create foo.yml returns \[Errno 2\] No such file or directory](https://forum.ansible.com/t/ansible-vault-create-foo-yml-returns-errno-2-no-such-file-or-directory/15479)

<div class="topic-metadata">

**Author:** [@Patrick\_S](https://forum.ansible.com/u/Patrick_S)\
**Replies:** 3\
**Last updated:** [June 18, 2014, 3:44pm UTC](https://forum.ansible.com/t/ansible-vault-create-foo-yml-returns-errno-2-no-such-file-or-directory/15479 "2014-06-18T15:44:50Z")

</div>

Hi, I’m running version 1.6.2 and when going through the documentation and copying the ansible-vault create example: \` ansible-vault create foo.yml \` The following is returned: \` ansible-vault create foo.yml Vau…

---

## [unarchive requirements?](https://forum.ansible.com/t/unarchive-requirements/14369)

<div class="topic-metadata">

**Author:** [@Adam\_Morris](https://forum.ansible.com/u/Adam_Morris)\
**Replies:** 8\
**Last updated:** [June 18, 2014, 3:33pm UTC](https://forum.ansible.com/t/unarchive-requirements/14369 "2014-06-18T15:33:55Z")

</div>

Greetings, According to the documentation unarchive requires tar/unzip to work… However it appears from my first attempt at using it that it requires GNU tar to work. Reading through the code it looks like it tries to …

---

## [Variable 'role' in role dependencies](https://forum.ansible.com/t/variable-role-in-role-dependencies/15449)

<div class="topic-metadata">

**Author:** [@Christian\_Thiemann](https://forum.ansible.com/u/Christian_Thiemann)\
**Replies:** 7\
**Last updated:** [June 18, 2014, 3:29pm UTC](https://forum.ansible.com/t/variable-role-in-role-dependencies/15449 "2014-06-18T15:29:27Z")

</div>

Hi all, I noticed today that when including a role using the dict form, it will also provide a variable named ‘role’ to all role tasks: roles: { role: foobar, version: 1.2.3 } However, when processing role dependenc…

---

## [Strange? playbook behavior.](https://forum.ansible.com/t/strange-playbook-behavior/15478)

<div class="topic-metadata">

**Author:** [@Jeremy\_Rosengren](https://forum.ansible.com/u/Jeremy_Rosengren)\
**Replies:** 4\
**Last updated:** [June 18, 2014, 1:34pm UTC](https://forum.ansible.com/t/strange-playbook-behavior/15478 "2014-06-18T13:34:06Z")

</div>

I have the following configuration: $ cat env-provision \[ec2-instances\] ec2-XX-XX-XX.compute-1.amazonaws.com vpn\_ip=172.31.0.117 hostname=kafka ansible\_ssh\_private\_key\_file=~/.ssh/id\_dsa $ cat group\_vars/ec2-instance…

---

## [SSHing through multiple bastions](https://forum.ansible.com/t/sshing-through-multiple-bastions/15489)

<div class="topic-metadata">

**Author:** [@Graham\_O\_Regan1](https://forum.ansible.com/u/Graham_O_Regan1)\
**Replies:** 0\
**Last updated:** [June 18, 2014, 10:42am UTC](https://forum.ansible.com/t/sshing-through-multiple-bastions/15489 "2014-06-18T10:42:22Z")

</div>

I need to run Ansible through two bastions to update nodes so I’ve set up the following ~/.ssh/config Host gateway HostName gateway.mycorp.com Port 55522 User ci IdentityFile ~/.ssh/id\_rsa ServerAliveInterval 20 S…

---

## [Changing quantum\_\* plugins to neutron\_\*](https://forum.ansible.com/t/changing-quantum-plugins-to-neutron/13786)

<div class="topic-metadata">

**Author:** [@Christian\_Berendt](https://forum.ansible.com/u/Christian_Berendt)\
**Replies:** 17\
**Last updated:** [June 17, 2014, 7:19pm UTC](https://forum.ansible.com/t/changing-quantum-plugins-to-neutron/13786 "2014-06-17T19:19:59Z")

</div>

Hello together. During Grizzly and Havana the name of Quantum changed to Neutron, because of some trademark issues. At the moment the included plugins in Ansible are all called quantum\_. I would like to change the name…

---

## [Trying to use lookup('file', ...) with an array of items.](https://forum.ansible.com/t/trying-to-use-lookup-file-with-an-array-of-items/15474)

<div class="topic-metadata">

**Author:** [@Jason\_Harris](https://forum.ansible.com/u/Jason_Harris)\
**Replies:** 5\
**Last updated:** [June 17, 2014, 7:17pm UTC](https://forum.ansible.com/t/trying-to-use-lookup-file-with-an-array-of-items/15474 "2014-06-17T19:17:08Z")

</div>

Hi All, I am trying to load up a list of users and their keys. As in something like: authorized\_key: user={{item.name}} key=“{{ lookup(‘file’, {{item.file}}) }}” with\_items: { name: “{{bill\_username}}”, file: ‘bill\_…

---

## [Git module handling bitbucket's altssh subdomain](https://forum.ansible.com/t/git-module-handling-bitbuckets-altssh-subdomain/15481)

<div class="topic-metadata">

**Author:** [@vaida.dan](https://forum.ansible.com/u/vaida.dan)\
**Replies:** 1\
**Last updated:** [June 17, 2014, 7:16pm UTC](https://forum.ansible.com/t/git-module-handling-bitbuckets-altssh-subdomain/15481 "2014-06-17T19:16:30Z")

</div>

Hello everyone! I trying to do a code checkout from one of my repositories, hosted at bitbucket. Unfortunately, as you might know, the connection speed is not the best when it comes to BitBucket (surely Atlassian will …

---

## [Ansible 1.6.x on RHEL5](https://forum.ansible.com/t/ansible-1-6-x-on-rhel5/15483)

<div class="topic-metadata">

**Author:** [@chris\_snyder](https://forum.ansible.com/u/chris_snyder)\
**Replies:** 3\
**Last updated:** [June 17, 2014, 7:14pm UTC](https://forum.ansible.com/t/ansible-1-6-x-on-rhel5/15483 "2014-06-17T19:14:16Z")

</div>

Has anyone successfully built an RPM for Ansible 1.6.x under RHEL5? The current Ansible spec file requires RPMs python26-keyczar and python26-setuptools which I cannot find anywhere on the ‘net. I’ve tried commenting the…

---

## [variables and their (multiple layer) resolution](https://forum.ansible.com/t/variables-and-their-multiple-layer-resolution/15460)

<div class="topic-metadata">

**Author:** [@Dimon](https://forum.ansible.com/u/Dimon)\
**Replies:** 7\
**Last updated:** [June 17, 2014, 7:07pm UTC](https://forum.ansible.com/t/variables-and-their-multiple-layer-resolution/15460 "2014-06-17T19:07:57Z")

</div>

I have a playbook, and in one of the templates I need to walk over all the hosts in certain groups grabbing their hostvars etc. I followed http://docs.ansible.com/faq.html and everything seems to work as expected but wi…

---

## [Lossless file command ?](https://forum.ansible.com/t/lossless-file-command/15466)

<div class="topic-metadata">

**Author:** [@Laurent\_PETIT](https://forum.ansible.com/u/Laurent_PETIT)\
**Replies:** 5\
**Last updated:** [June 17, 2014, 7:03pm UTC](https://forum.ansible.com/t/lossless-file-command/15466 "2014-06-17T19:03:32Z")

</div>

Hello, Is there an alternate to the file command that would prevent overriding a file on a server (and then fail) if it detects that the file has been manually changed since the last play? This could be helpful in a mi…

---

## [problem with creating logical volumes using dict](https://forum.ansible.com/t/problem-with-creating-logical-volumes-using-dict/15477)

<div class="topic-metadata">

**Author:** [@Vincent\_Van\_der\_Kuss](https://forum.ansible.com/u/Vincent_Van_der_Kuss)\
**Replies:** 1\
**Last updated:** [June 17, 2014, 7:02pm UTC](https://forum.ansible.com/t/problem-with-creating-logical-volumes-using-dict/15477 "2014-06-17T19:02:43Z")

</div>

Hi, I'm creating a playbook to deploy several virtual machines on a host. Each vm has a logical volume as storage backend. One of the tasks in the playbook is to create the lv's for these machines. To do this I use a…

---

## [Group Hostvars with --limit](https://forum.ansible.com/t/group-hostvars-with-limit/14548)

<div class="topic-metadata">

**Author:** [@Christopher\_O\_Connel](https://forum.ansible.com/u/Christopher_O_Connel)\
**Replies:** 6\
**Last updated:** [June 17, 2014, 12:49pm UTC](https://forum.ansible.com/t/group-hostvars-with-limit/14548 "2014-06-17T12:49:35Z")

</div>

Hello all, I’m currently wrestling with creating DNS zonefiles when running a playbook which uses tempates to set NS authority records based on the members of the ‘dns’ group. Consider the template snippet: {% for hos…

---

## [Change Request: Don't modify known\_hosts file when host\_key\_checking=False](https://forum.ansible.com/t/change-request-dont-modify-known-hosts-file-when-host-key-checking-false/15464)

<div class="topic-metadata">

**Author:** [@Gilles\_Cornu](https://forum.ansible.com/u/Gilles_Cornu)\
**Replies:** 4\
**Last updated:** [June 17, 2014, 6:10am UTC](https://forum.ansible.com/t/change-request-dont-modify-known-hosts-file-when-host-key-checking-false/15464 "2014-06-17T06:10:33Z")

</div>

In a “Development or Test” context (e.g. using Vagrant to spin up temporary machines), it is usually not desired to store the host key in ~/.ssh/known\_hosts file, as the related host:port is frequently reused by other ma…

---

## [Variables question - construct file name out of 2 facts](https://forum.ansible.com/t/variables-question-construct-file-name-out-of-2-facts/15469)

<div class="topic-metadata">

**Author:** [@Leibo](https://forum.ansible.com/u/Leibo)\
**Replies:** 3\
**Last updated:** [June 16, 2014, 6:26pm UTC](https://forum.ansible.com/t/variables-question-construct-file-name-out-of-2-facts/15469 "2014-06-16T18:26:19Z")

</div>

Hi, Newbie question I suppose… I have a tasks file inside a role where I want to copy some OS and Arch dependent package - 2 conditionals. The issue I’m struggling with is to assign the right source file name to the t…

---

## [lineinfile inserts dos style new line character](https://forum.ansible.com/t/lineinfile-inserts-dos-style-new-line-character/15472)

<div class="topic-metadata">

**Author:** [@jepper](https://forum.ansible.com/u/jepper)\
**Replies:** 1\
**Last updated:** [June 16, 2014, 4:02pm UTC](https://forum.ansible.com/t/lineinfile-inserts-dos-style-new-line-character/15472 "2014-06-16T16:02:05Z")

</div>

I’m setting up tomcat, and change a parameter in a config file as follows: name: set max-request-size lineinfile: dest={{ tomcat\_home }}/webapps/manager/WEB-INF/web.xml regexp=“max-request-size” line=“1000000000” Pos…

---

## [invisible ansible](https://forum.ansible.com/t/invisible-ansible/15458)

<div class="topic-metadata">

**Author:** [@profhase85](https://forum.ansible.com/u/profhase85)\
**Replies:** 5\
**Last updated:** [June 16, 2014, 3:45pm UTC](https://forum.ansible.com/t/invisible-ansible/15458 "2014-06-16T15:45:46Z")

</div>

I would like to make ansible usage ‘invisible’ (due to some strange policies to use puppet even for the smallest stuff). There are two problems about it: There is always an .ansible folder in the home directory. How c…

---

## [Vault of inventory file](https://forum.ansible.com/t/vault-of-inventory-file/15471)

<div class="topic-metadata">

**Author:** [@Leonardo\_M](https://forum.ansible.com/u/Leonardo_M)\
**Replies:** 1\
**Last updated:** [June 16, 2014, 3:45pm UTC](https://forum.ansible.com/t/vault-of-inventory-file/15471 "2014-06-16T15:45:12Z")

</div>

I would like to vault/encrypt my inventory file since I store for some of my host both ansible\_ssh\_pass and ansible\_sudo\_pass. Is this is possible? Is there a way to move ansible\_ssh\_pass and ansible\_sudo\_pass in the gro…

---

## [Using delegate\_to in combination with roles in a playbook](https://forum.ansible.com/t/using-delegate-to-in-combination-with-roles-in-a-playbook/15470)

<div class="topic-metadata">

**Author:** [@Paul\_Harvey](https://forum.ansible.com/u/Paul_Harvey)\
**Replies:** 1\
**Last updated:** [June 16, 2014, 3:31pm UTC](https://forum.ansible.com/t/using-delegate-to-in-combination-with-roles-in-a-playbook/15470 "2014-06-16T15:31:49Z")

</div>

Hi, Is it possible to delegate the execution of an entire play to a another host? I have a playbook that contains a set of reusable roles, the tasks in these roles will not generally be delegated. However in this case …

---

## [passing extra args to docker: task](https://forum.ansible.com/t/passing-extra-args-to-docker-task/15462)

<div class="topic-metadata">

**Author:** [@Dick\_Davies](https://forum.ansible.com/u/Dick_Davies)\
**Replies:** 2\
**Last updated:** [June 16, 2014, 1:30am UTC](https://forum.ansible.com/t/passing-extra-args-to-docker-task/15462 "2014-06-16T01:30:45Z")

</div>

I have a container I need to run on the host IP, so I need to pass '--net="host"' to the docker run command. Can't see any params I can pass to an Ansible docker: task to do that, is there something I'm missing?

---

## [One hosts file per cookbook](https://forum.ansible.com/t/one-hosts-file-per-cookbook/15463)

<div class="topic-metadata">

**Author:** [@Navid\_Paya2](https://forum.ansible.com/u/Navid_Paya2)\
**Replies:** 2\
**Last updated:** [June 15, 2014, 3:59pm UTC](https://forum.ansible.com/t/one-hosts-file-per-cookbook/15463 "2014-06-15T15:59:03Z")

</div>

Hi I use ansible in various environments and I don’t want to mix them up. My question is, is there a way to tell asnible to look in the playbook root directory for a hosts file instead of using only one hosts file and s…

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

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