# Latest

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

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

**Page:** 1018

---

## [suggestions to make my master playbook simpler](https://forum.ansible.com/t/suggestions-to-make-my-master-playbook-simpler/13703)

<div class="topic-metadata">

**Author:** [@Nicolas\_G](https://forum.ansible.com/u/Nicolas_G)\
**Replies:** 2\
**Last updated:** [October 17, 2013, 1:42pm UTC](https://forum.ansible.com/t/suggestions-to-make-my-master-playbook-simpler/13703 "2013-10-17T13:42:46Z")

</div>

Hi, I have a master playbook to deploy 10 different group servers per region but would like to make things simpler. As you can see the vars\_files section and handlers bellow is the same on all groups, the only things th…

---

## [conditional "when" doesn't work..](https://forum.ansible.com/t/conditional-when-doesnt-work/13700)

<div class="topic-metadata">

**Author:** [@iat00](https://forum.ansible.com/u/iat00)\
**Replies:** 1\
**Last updated:** [October 17, 2013, 1:03pm UTC](https://forum.ansible.com/t/conditional-when-doesnt-work/13700 "2013-10-17T13:03:13Z")

</div>

Hello, following doesn’t work: % nl -ba OS.yml 1 — 2 - hosts: all 3 tasks: 4 - name: print Ubuntu 5 shell: echo Ubuntu 6 when: ansible\_os\_family == “Ubuntu” 7 8 - name: print Debian 9 shell: echo Debian 10 wh…

---

## [\[WARNING\]: It is unneccessary to use '{{' in loops, leave variables in loop expressions bare.](https://forum.ansible.com/t/warning-it-is-unneccessary-to-use-in-loops-leave-variables-in-loop-expressions-bare/13691)

<div class="topic-metadata">

**Author:** [@Jurgen\_Haas2](https://forum.ansible.com/u/Jurgen_Haas2)\
**Replies:** 8\
**Last updated:** [October 17, 2013, 1:02pm UTC](https://forum.ansible.com/t/warning-it-is-unneccessary-to-use-in-loops-leave-variables-in-loop-expressions-bare/13691 "2013-10-17T13:02:12Z")

</div>

I’m getting the above warning from the title of this issue and I do understand the meaning, I just have no idea on how to find the loops where by syntax is not correct. Could the warning be extended to provide a filename…

---

## [bug on user module when relying on the default homedir](https://forum.ansible.com/t/bug-on-user-module-when-relying-on-the-default-homedir/13704)

<div class="topic-metadata">

**Author:** [@Jerome\_Wagner](https://forum.ansible.com/u/Jerome_Wagner)\
**Replies:** 1\
**Last updated:** [October 17, 2013, 12:16pm UTC](https://forum.ansible.com/t/bug-on-user-module-when-relying-on-the-default-homedir/13704 "2013-10-17T12:16:44Z")

</div>

Hello, just for information i found a bug on devel user module after a recent commit https://github.com/ansible/ansible/issues/4554 adding a home= in the task temporarily solves the issue

---

## [How to specify the Security Group IDs for VPC based EC2 instance creation](https://forum.ansible.com/t/how-to-specify-the-security-group-ids-for-vpc-based-ec2-instance-creation/13702)

<div class="topic-metadata">

**Author:** [@Sundar1](https://forum.ansible.com/u/Sundar1)\
**Replies:** 2\
**Last updated:** [October 17, 2013, 10:38am UTC](https://forum.ansible.com/t/how-to-specify-the-security-group-ids-for-vpc-based-ec2-instance-creation/13702 "2013-10-17T10:38:42Z")

</div>

Sorry, I had looked into the Doc also the group discussions but couldn’t locate this simple piece of info. I’m trying to create a EC2 instance in VPC with few security groups assigned to it. But am not able to assign t…

---

## [Referencing multiple hosts in an included task](https://forum.ansible.com/t/referencing-multiple-hosts-in-an-included-task/13678)

<div class="topic-metadata">

**Author:** [@Sundar1](https://forum.ansible.com/u/Sundar1)\
**Replies:** 2\
**Last updated:** [October 17, 2013, 7:58am UTC](https://forum.ansible.com/t/referencing-multiple-hosts-in-an-included-task/13678 "2013-10-17T07:58:29Z")

</div>

Am just trying to do a scale up activity. In the Scale up script, I refer the localhost from where I initiate / spawn new ec2 instances. Upon creating the ec2 instances I do multiple actions on few other servers (haprox…

---

## [Pip module command fails, shell alternative succeeds](https://forum.ansible.com/t/pip-module-command-fails-shell-alternative-succeeds/13699)

<div class="topic-metadata">

**Author:** [@klenwell](https://forum.ansible.com/u/klenwell)\
**Replies:** 2\
**Last updated:** [October 16, 2013, 11:07pm UTC](https://forum.ansible.com/t/pip-module-command-fails-shell-alternative-succeeds/13699 "2013-10-16T23:07:59Z")

</div>

This task succeeds: name: Install pip requirements shell: /usr/local/pythonbrew/venvs/Python-${python\_version}/venv/bin/pip install -r ${project\_root}/current/requirements.pip executable=/bin/bash This task fails …

---

## [Ansible not even running the ping module](https://forum.ansible.com/t/ansible-not-even-running-the-ping-module/13697)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 2\
**Last updated:** [October 16, 2013, 10:36pm UTC](https://forum.ansible.com/t/ansible-not-even-running-the-ping-module/13697 "2013-10-16T22:36:50Z")

</div>

That’s curious. Do you have a “ssh” in path? is it excutable by you? What is the OS type you are running from? What happens if you from the CLI run ssh -o ControlPersist ? Thanks!

---

## [fetch command takes very high CPU usage on ansible 1.3.3](https://forum.ansible.com/t/fetch-command-takes-very-high-cpu-usage-on-ansible-1-3-3/13695)

<div class="topic-metadata">

**Author:** [@jack1](https://forum.ansible.com/u/jack1)\
**Replies:** 6\
**Last updated:** [October 16, 2013, 10:35pm UTC](https://forum.ansible.com/t/fetch-command-takes-very-high-cpu-usage-on-ansible-1-3-3/13695 "2013-10-16T22:35:57Z")

</div>

Our ansibe playbook was running fine under ansible 1.2.3. After we upgraded ansible server to 1.3.2/3, the fetch command is running much much slower. Check the EC2 instance where ansible server installed, the CPU usage …

---

## [Ansible fails to run any modules from command line](https://forum.ansible.com/t/ansible-fails-to-run-any-modules-from-command-line/13696)

<div class="topic-metadata">

**Author:** [@Guillem\_Liarte](https://forum.ansible.com/u/Guillem_Liarte)\
**Replies:** 5\
**Last updated:** [October 16, 2013, 9:51pm UTC](https://forum.ansible.com/t/ansible-fails-to-run-any-modules-from-command-line/13696 "2013-10-16T21:51:45Z")

</div>

Using default settings, with one entry for the same host, installation from EPEL, on Centos 6.4, just trying the ping module: ansible all -m ping Traceback (most recent call last): File “/usr/bin/ansible”, line 157, i…

---

## [Variable file path in lookup](https://forum.ansible.com/t/variable-file-path-in-lookup/13688)

<div class="topic-metadata">

**Author:** [@Chris\_Carter](https://forum.ansible.com/u/Chris_Carter)\
**Replies:** 5\
**Last updated:** [October 16, 2013, 9:32pm UTC](https://forum.ansible.com/t/variable-file-path-in-lookup/13688 "2013-10-16T21:32:18Z")

</div>

Hi there, I’m attempting to configure a variable lookup to a public key file, and am running into some trouble. What confuses me is that the variable substitution works fine in a debug statement, but then blows up in th…

---

## [Conditional Includes: Is it possible to continue if no file matches are met?](https://forum.ansible.com/t/conditional-includes-is-it-possible-to-continue-if-no-file-matches-are-met/13698)

<div class="topic-metadata">

**Author:** [@Brice\_Burgess](https://forum.ansible.com/u/Brice_Burgess)\
**Replies:** 2\
**Last updated:** [October 16, 2013, 8:58pm UTC](https://forum.ansible.com/t/conditional-includes-is-it-possible-to-continue-if-no-file-matches-are-met/13698 "2013-10-16T20:58:58Z")

</div>

We have a situation where we would like to include a variable file only if it is present, and not to include any other. Specifically we want the ability to optionally set variables per passed “git\_branch” in a project. A…

---

## [trying to write a tar module/action\_plugin](https://forum.ansible.com/t/trying-to-write-a-tar-module-action-plugin/13686)

<div class="topic-metadata">

**Author:** [@Dylan\_Martin](https://forum.ansible.com/u/Dylan_Martin)\
**Replies:** 9\
**Last updated:** [October 16, 2013, 8:32pm UTC](https://forum.ansible.com/t/trying-to-write-a-tar-module-action-plugin/13686 "2013-10-16T20:32:18Z")

</div>

Hi all. I sometimes like to copy tarfiles to hosts and unpack them with ansible. It’s getting a little unwieldy so I thought I’d try to write a module to do it so I could just specify a task like tar: src=foo.tgz dest=/…

---

## [restart networking: debian](https://forum.ansible.com/t/restart-networking-debian/13694)

<div class="topic-metadata">

**Author:** [@senorsmile](https://forum.ansible.com/u/senorsmile)\
**Replies:** 9\
**Last updated:** [October 16, 2013, 8:29pm UTC](https://forum.ansible.com/t/restart-networking-debian/13694 "2013-10-16T20:29:54Z")

</div>

I am trying to restart the networking on a debian box if the /etc/network/interfaces file is out of sync (i.e. first time setting up this server). I have tried name: restart networking service: name=networking state=…

---

## [Gathering Facts about Hosts Not Included in the Play](https://forum.ansible.com/t/gathering-facts-about-hosts-not-included-in-the-play/13658)

<div class="topic-metadata">

**Author:** [@Phillip\_Verheyden](https://forum.ansible.com/u/Phillip_Verheyden)\
**Replies:** 4\
**Last updated:** [October 16, 2013, 7:57pm UTC](https://forum.ansible.com/t/gathering-facts-about-hosts-not-included-in-the-play/13658 "2013-10-16T19:57:43Z")

</div>

I’m attempting to setup an nfsserver and nfsclients in a playbook. These are my host names: appserver-1 appserver-2 appserver-3 I want the NFS server to exist on appserver-1 and then mount the folder on appserver-2 a…

---

## [Syntax Error when using "new" variable substitution](https://forum.ansible.com/t/syntax-error-when-using-new-variable-substitution/13690)

<div class="topic-metadata">

**Author:** [@Patric\_Buskas](https://forum.ansible.com/u/Patric_Buskas)\
**Replies:** 9\
**Last updated:** [October 16, 2013, 7:52pm UTC](https://forum.ansible.com/t/syntax-error-when-using-new-variable-substitution/13690 "2013-10-16T19:52:30Z")

</div>

Hi, I’m trying to copy files with “with\_fileglob” and using variable substitution. With this syntax it works but I get the “DEPRICATION WARNING”: name: copy configurations copy: src={{ item }} dest=/etc/app with\_fi…

---

## [using host\_vars in dynamically created inventory](https://forum.ansible.com/t/using-host-vars-in-dynamically-created-inventory/13628)

<div class="topic-metadata">

**Author:** [@Jake\_Clarkson1](https://forum.ansible.com/u/Jake_Clarkson1)\
**Replies:** 4\
**Last updated:** [October 16, 2013, 3:06pm UTC](https://forum.ansible.com/t/using-host-vars-in-dynamically-created-inventory/13628 "2013-10-16T15:06:18Z")

</div>

Hey guys, I’m using the Rackspace public cloud for hosting our app and as such I want to be able to create the Ansible hosts inventory file dynamically. I’ve come across: http://www.ansibleworks.com/docs/developing\_…

---

## [Clarification on how to use Registered Variables](https://forum.ansible.com/t/clarification-on-how-to-use-registered-variables/13689)

<div class="topic-metadata">

**Author:** [@Matt\_Jaynes](https://forum.ansible.com/u/Matt_Jaynes)\
**Replies:** 4\
**Last updated:** [October 16, 2013, 2:37pm UTC](https://forum.ansible.com/t/clarification-on-how-to-use-registered-variables/13689 "2013-10-16T14:37:14Z")

</div>

This confusion is probably due to me not being a python programmer. So, for any other non-python users, hopefully this thread will be helpful. Re: http://ansibleworks.com/docs/playbooks\_variables.html#registered-variabl…

---

## [nested variables](https://forum.ansible.com/t/nested-variables/13687)

<div class="topic-metadata">

**Author:** [@Hudec\_Peter](https://forum.ansible.com/u/Hudec_Peter)\
**Replies:** 2\
**Last updated:** [October 16, 2013, 8:17am UTC](https://forum.ansible.com/t/nested-variables/13687 "2013-10-16T08:17:06Z")

</div>

Hi all, I read quite a lot of docs about the nested variables but I'm still not able to find the right syntax. file: role/tomcat/vars/main.yml java: "1\_7\_25": i386: filename: jre-7u25-linux-i586.tar.gz …

---

## [Getting top level directory when using roles](https://forum.ansible.com/t/getting-top-level-directory-when-using-roles/13542)

<div class="topic-metadata">

**Author:** [@Jonathan\_Rowlands](https://forum.ansible.com/u/Jonathan_Rowlands)\
**Replies:** 16\
**Last updated:** [October 16, 2013, 6:50am UTC](https://forum.ansible.com/t/getting-top-level-directory-when-using-roles/13542 "2013-10-16T06:50:12Z")

</div>

So I have a playbook that installs gitlab. The playbook includes a role that optionally installs ssl certificates. The ssl certificates are obviously something I want to be customizable. Is there a better way to get the …

---

## [Introducing role dependencies](https://forum.ansible.com/t/introducing-role-dependencies/13322)

<div class="topic-metadata">

**Author:** [@James\_Cammarata1](https://forum.ansible.com/u/James_Cammarata1)\
**Replies:** 7\
**Last updated:** [October 16, 2013, 4:45am UTC](https://forum.ansible.com/t/introducing-role-dependencies/13322 "2013-10-16T04:45:37Z")

</div>

A new feature we will be introducing in 1.3 (and available now on the devel branch on github) are role dependencies. This allows roles to include other roles, and should allow for greater re-use of stock roles. To creat…

---

## [User command onöy if user does not yet exist](https://forum.ansible.com/t/user-command-onoy-if-user-does-not-yet-exist/13682)

<div class="topic-metadata">

**Author:** [@Manuel\_de\_Groot](https://forum.ansible.com/u/Manuel_de_Groot)\
**Replies:** 2\
**Last updated:** [October 15, 2013, 11:40pm UTC](https://forum.ansible.com/t/user-command-onoy-if-user-does-not-yet-exist/13682 "2013-10-15T23:40:54Z")

</div>

Can someone give me a hint/example how this works: password={{ initial\_password }} I don’t get it how that {{ initial\_password }} part works. Thanks.

---

## [Using playbook|command line|included vars in inventory vars](https://forum.ansible.com/t/using-playbook-command-line-included-vars-in-inventory-vars/13674)

<div class="topic-metadata">

**Author:** [@Brice\_Burgess](https://forum.ansible.com/u/Brice_Burgess)\
**Replies:** 5\
**Last updated:** [October 15, 2013, 11:31pm UTC](https://forum.ansible.com/t/using-playbook-command-line-included-vars-in-inventory-vars/13674 "2013-10-15T23:31:25Z")

</div>

I have a situation where it would be helpful to utilize included/playbook variables within inventory variables. For instance; \[ group\_vars/lab.yml \]

---

## [Unable to ssh onto newly created ec2 instance](https://forum.ansible.com/t/unable-to-ssh-onto-newly-created-ec2-instance/13685)

<div class="topic-metadata">

**Author:** [@Marc\_Peiser](https://forum.ansible.com/u/Marc_Peiser)\
**Replies:** 4\
**Last updated:** [October 15, 2013, 10:47pm UTC](https://forum.ansible.com/t/unable-to-ssh-onto-newly-created-ec2-instance/13685 "2013-10-15T22:47:14Z")

</div>

Hi all I’m trying to get a playbook to create an ec2 instance, run a bunch of stuff and then delete the instance based on the ec2 example in the docs. I’m having an issue where after it waits for ssh to come up, it fail…

---

## [troubles accessing .ansible.cfg vars in jinja templates](https://forum.ansible.com/t/troubles-accessing-ansible-cfg-vars-in-jinja-templates/13683)

<div class="topic-metadata">

**Author:** [@Kesten\_Broughton2](https://forum.ansible.com/u/Kesten_Broughton2)\
**Replies:** 3\
**Last updated:** [October 15, 2013, 6:26pm UTC](https://forum.ansible.com/t/troubles-accessing-ansible-cfg-vars-in-jinja-templates/13683 "2013-10-15T18:26:03Z")

</div>

I’ve posted a gist: https://gist.github.com/darKoram/6993766

---

## [Problems passing complex object via role dependencies](https://forum.ansible.com/t/problems-passing-complex-object-via-role-dependencies/13673)

<div class="topic-metadata">

**Author:** [@Kesten\_Broughton2](https://forum.ansible.com/u/Kesten_Broughton2)\
**Replies:** 3\
**Last updated:** [October 15, 2013, 4:35pm UTC](https://forum.ansible.com/t/problems-passing-complex-object-via-role-dependencies/13673 "2013-10-15T16:35:37Z")

</div>

The goal is to pass a complex object to a dependent role. This works fine for scalars, but I was having troubles with a dict. Full details at the gist which i accidentally made private: https://gist.github.com/darKor…

---

## [Ansible 1.3 - cached facts.](https://forum.ansible.com/t/ansible-1-3-cached-facts/13679)

<div class="topic-metadata">

**Author:** [@Marcin\_Praczko](https://forum.ansible.com/u/Marcin_Praczko)\
**Replies:** 6\
**Last updated:** [October 15, 2013, 3:21pm UTC](https://forum.ansible.com/t/ansible-1-3-cached-facts/13679 "2013-10-15T15:21:17Z")

</div>

Hi, Reading change log for Ansible, since version 1.3 there is some improvment with facts - they can be cached. Is this right? Is yes - can I have some examples of this please (links, git, website, ansible-example :)). …

---

## [variable list with inventory script](https://forum.ansible.com/t/variable-list-with-inventory-script/13680)

<div class="topic-metadata">

**Author:** [@Vincent\_Van\_der\_Kuss](https://forum.ansible.com/u/Vincent_Van_der_Kuss)\
**Replies:** 1\
**Last updated:** [October 15, 2013, 2:13pm UTC](https://forum.ansible.com/t/variable-list-with-inventory-script/13680 "2013-10-15T14:13:29Z")

</div>

Hi, I’m using an inventory based on LDAP and have my own script to get the value sout of it. Currently I could only specify one value to a variable. I now changed the script a bit so I can get more. This is an example …

---

## [Ec2 Module doesn't seem to take up / use environment variables - AWS\_SECRET\_KEY / AWS\_ACCESS\_KEY](https://forum.ansible.com/t/ec2-module-doesnt-seem-to-take-up-use-environment-variables-aws-secret-key-aws-access-key/13636)

<div class="topic-metadata">

**Author:** [@Sundar2](https://forum.ansible.com/u/Sundar2)\
**Replies:** 3\
**Last updated:** [October 15, 2013, 8:40am UTC](https://forum.ansible.com/t/ec2-module-doesnt-seem-to-take-up-use-environment-variables-aws-secret-key-aws-access-key/13636 "2013-10-15T08:40:41Z")

</div>

Am using Ansible 1.3.2 (on Ubuntu 12.04) I’ve the following lines in my playbook. name: Launch instance local\_action: ec2 keypair={{ ec2\_keypair\_name }} group={{ ec2\_security\_group\_name }} instance\_type={{ ec2\_instan…

---

## [Neat new feature for the debug module on 1.4 (devel)](https://forum.ansible.com/t/neat-new-feature-for-the-debug-module-on-1-4-devel/13677)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 1\
**Last updated:** [October 15, 2013, 3:47am UTC](https://forum.ansible.com/t/neat-new-feature-for-the-debug-module-on-1-4-devel/13677 "2013-10-15T03:47:24Z")

</div>

I just pushed a feature to 1.4 that makes debugging things much more fun and exciting. In particular I’m happy for this as I’ve wanted this about 5 times in the last 5 days :slight\_smile: You used to be able to do this,…

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

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