# Latest

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

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

**Page:** 914

---

## [ansible-pull with inventory in repository](https://forum.ansible.com/t/ansible-pull-with-inventory-in-repository/16959)

<div class="topic-metadata">

**Author:** [@Baptiste\_Lafontaine](https://forum.ansible.com/u/Baptiste_Lafontaine)\
**Replies:** 1\
**Last updated:** [December 4, 2014, 4:39pm UTC](https://forum.ansible.com/t/ansible-pull-with-inventory-in-repository/16959 "2014-12-04T16:39:10Z")

</div>

Hi, Ansible-pull man pages states : -i PATH, --inventory=PATH The PATH to the inventory hosts file. This can be a relative path within the checkout. So I have been trying : ansible-pull -U git@mygit:ansible.git -i “i…

---

## [Creating a RDS subnet group using with\_items + registered vpc variable](https://forum.ansible.com/t/creating-a-rds-subnet-group-using-with-items-registered-vpc-variable/16332)

<div class="topic-metadata">

**Author:** [@Timo\_Ahokas](https://forum.ansible.com/u/Timo_Ahokas)\
**Replies:** 2\
**Last updated:** [December 4, 2014, 4:01pm UTC](https://forum.ansible.com/t/creating-a-rds-subnet-group-using-with-items-registered-vpc-variable/16332 "2014-12-04T16:01:37Z")

</div>

Hi, I’m trying to use the rds\_subnet\_group module to create a subnet group with all the subnets defined in my VPC, but I’m having trouble finding a way of using the subnet ids from a registered vpc variable. So, first …

---

## [How to pass data to my callback](https://forum.ansible.com/t/how-to-pass-data-to-my-callback/16944)

<div class="topic-metadata">

**Author:** [@Ritesh\_Shetty](https://forum.ansible.com/u/Ritesh_Shetty)\
**Replies:** 2\
**Last updated:** [December 4, 2014, 4:55am UTC](https://forum.ansible.com/t/how-to-pass-data-to-my-callback/16944 "2014-12-04T04:55:12Z")

</div>

Hi All, My application accepts a request and gives back a job id(my\_custom\_job\_id) so that i can process it in background. The user would then keep polling this my\_custom\_job\_id using a REST Api which queries the databa…

---

## [Group vars override role vars?](https://forum.ansible.com/t/group-vars-override-role-vars/16956)

<div class="topic-metadata">

**Author:** [@Matt\_Hughes](https://forum.ansible.com/u/Matt_Hughes)\
**Replies:** 6\
**Last updated:** [December 3, 2014, 11:36pm UTC](https://forum.ansible.com/t/group-vars-override-role-vars/16956 "2014-12-03T23:36:46Z")

</div>

I have a role defined with: \` hosts: elk sudo: true vars: es\_heap: 8G \` I run that role against a given inventory that attempts to override that variable: \` \[elk\] node1 es\_heap=2G \[elk:vars\] es\_heap=2G \` T…

---

## [ansible fact availability](https://forum.ansible.com/t/ansible-fact-availability/16947)

<div class="topic-metadata">

**Author:** [@Steve\_Kieu](https://forum.ansible.com/u/Steve_Kieu)\
**Replies:** 7\
**Last updated:** [December 3, 2014, 11:30pm UTC](https://forum.ansible.com/t/ansible-fact-availability/16947 "2014-12-03T23:30:18Z")

</div>

Hi all, I have in my hosts file COUNTRY\_SUFFIX=“{{ansible\_hostname}}” It works fine when I use ansible-playbook and play the book with some roles. But if I run as adhoc command like this ansible -i hosts hostname -u …

---

## [Is there a way to make TASK: ... prompts print more information](https://forum.ansible.com/t/is-there-a-way-to-make-task-prompts-print-more-information/16955)

<div class="topic-metadata">

**Author:** [@Behrang](https://forum.ansible.com/u/Behrang)\
**Replies:** 1\
**Last updated:** [December 3, 2014, 10:51pm UTC](https://forum.ansible.com/t/is-there-a-way-to-make-task-prompts-print-more-information/16955 "2014-12-03T22:51:41Z")

</div>

Hi, At the moment, when we run a playbook, these headings look like this, for example: PLAY \[all\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* GATHERING FACTS \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Is there any way to make an SSH connection error a fatal error, that stops the play?](https://forum.ansible.com/t/is-there-any-way-to-make-an-ssh-connection-error-a-fatal-error-that-stops-the-play/16871)

<div class="topic-metadata">

**Author:** [@Duncan\_Lock](https://forum.ansible.com/u/Duncan_Lock)\
**Replies:** 2\
**Last updated:** [December 3, 2014, 10:42pm UTC](https://forum.ansible.com/t/is-there-any-way-to-make-an-ssh-connection-error-a-fatal-error-that-stops-the-play/16871 "2014-12-03T22:42:00Z")

</div>

Occasionally, I get SSH timeouts or other network errors in the middle of a play. These cause that task to fail, but not the whole playbook, which continues on, but without the node that failed. You see output something …

---

## [ansible 1.6.2 -\> 1.8.1 huge increase in "startup" time](https://forum.ansible.com/t/ansible-1-6-2-1-8-1-huge-increase-in-startup-time/16940)

<div class="topic-metadata">

**Author:** [@Brent\_Langston1](https://forum.ansible.com/u/Brent_Langston1)\
**Replies:** 7\
**Last updated:** [December 3, 2014, 9:50pm UTC](https://forum.ansible.com/t/ansible-1-6-2-1-8-1-huge-increase-in-startup-time/16940 "2014-12-03T21:50:36Z")

</div>

Hi guys, I’m hoping I’ve just overlooked an option, but here’s the situation: After updating from ansible 1.6.2 to 1.8.1, I noticed our ansible runs take much much longer to actually make contact with the servers. Here…

---

## [AMI's, autoscaling, Fact Caching, registering results, modular playbooks, and continuous integration](https://forum.ansible.com/t/amis-autoscaling-fact-caching-registering-results-modular-playbooks-and-continuous-integration/16951)

<div class="topic-metadata">

**Author:** [@Robb\_Wagoner](https://forum.ansible.com/u/Robb_Wagoner)\
**Replies:** 2\
**Last updated:** [December 3, 2014, 7:26pm UTC](https://forum.ansible.com/t/amis-autoscaling-fact-caching-registering-results-modular-playbooks-and-continuous-integration/16951 "2014-12-03T19:26:17Z")

</div>

Hello all, I have a rather complicated playbook which orchestrates the following plays: (a) input validation (extra-vars w/ asserts), (b) launching an EC2 instance, (c) configuring the instance, (d) fact gathering, (e) …

---

## [Unable to access hostvars in template](https://forum.ansible.com/t/unable-to-access-hostvars-in-template/16950)

<div class="topic-metadata">

**Author:** [@Gordon\_Ross](https://forum.ansible.com/u/Gordon_Ross)\
**Replies:** 1\
**Last updated:** [December 3, 2014, 5:32pm UTC](https://forum.ansible.com/t/unable-to-access-hostvars-in-template/16950 "2014-12-03T17:32:32Z")

</div>

According to the Ansible docs ( http://docs.ansible.com/faq.html#how-do-i-loop-over-a-list-of-hosts-in-a-group-inside-of-a-template ) You can put the following in a template: {% for host in groups\[’test\_servers'\] %} {…

---

## [Filtering local facts](https://forum.ansible.com/t/filtering-local-facts/16949)

<div class="topic-metadata">

**Author:** [@Rick\_Kasten](https://forum.ansible.com/u/Rick_Kasten)\
**Replies:** 2\
**Last updated:** [December 3, 2014, 5:29pm UTC](https://forum.ansible.com/t/filtering-local-facts/16949 "2014-12-03T17:29:51Z")

</div>

I am writing facts on my targets that I want to collect using ansible. In this example, I have a facts.d/prefs.fact and a facts.d/java.fact. I can see this works: # ansible tomcat\_servers -i inventory -m setup -a 'filte…

---

## [Git accept\_hostkey submodule fix proposal](https://forum.ansible.com/t/git-accept-hostkey-submodule-fix-proposal/16941)

<div class="topic-metadata">

**Author:** [@J\_Dav](https://forum.ansible.com/u/J_Dav)\
**Replies:** 3\
**Last updated:** [December 3, 2014, 4:31pm UTC](https://forum.ansible.com/t/git-accept-hostkey-submodule-fix-proposal/16941 "2014-12-03T16:31:02Z")

</div>

So working on fixing a little issue where accept\_hostkey in the git module doesn’t take into account submodule remotes with different urls. Thus ansible hangs waiting for user to accept the hostkey so it fails when recur…

---

## [adding Extra modules through Galaxy instead of bundled in a release](https://forum.ansible.com/t/adding-extra-modules-through-galaxy-instead-of-bundled-in-a-release/16907)

<div class="topic-metadata">

**Author:** [@ramon](https://forum.ansible.com/u/ramon)\
**Replies:** 5\
**Last updated:** [December 3, 2014, 4:28pm UTC](https://forum.ansible.com/t/adding-extra-modules-through-galaxy-instead-of-bundled-in-a-release/16907 "2014-12-03T16:28:02Z")

</div>

Hey All, The past weeks I’ve been working on a module which might be added to the Ansible ‘extra’ modules. I found the process a bit frustrating on some points, so I thought I’d share that here. I hope you don’t mind …

---

## [How can I troubleshoot the speed of ansible-playbook runs?](https://forum.ansible.com/t/how-can-i-troubleshoot-the-speed-of-ansible-playbook-runs/16909)

<div class="topic-metadata">

**Author:** [@Alex\_King](https://forum.ansible.com/u/Alex_King)\
**Replies:** 6\
**Last updated:** [December 3, 2014, 4:17pm UTC](https://forum.ansible.com/t/how-can-i-troubleshoot-the-speed-of-ansible-playbook-runs/16909 "2014-12-03T16:17:50Z")

</div>

My ansible-playbook runs seem to be going slow. How can I work out where the slowdown is? One thing I'm wondering is how many tasks are being executed in parallel? I have forks = 20 in ansible.cfg, but I want to confi…

---

## [Unable to extract host facts](https://forum.ansible.com/t/unable-to-extract-host-facts/16938)

<div class="topic-metadata">

**Author:** [@Gordon\_Ross](https://forum.ansible.com/u/Gordon_Ross)\
**Replies:** 4\
**Last updated:** [December 3, 2014, 4:16pm UTC](https://forum.ansible.com/t/unable-to-extract-host-facts/16938 "2014-12-03T16:16:01Z")

</div>

I’m running Ansible 1.4.4 which comes with Ubuntu 12.04 LTS. I’m getting weird results when trying to get host facts. If I have: - debug: var=hostvars\[inventory\_hostname\] I get the all the information I’d expect, incl…

---

## [Ansible Week](https://forum.ansible.com/t/ansible-week/16915)

<div class="topic-metadata">

**Author:** [@Yvo](https://forum.ansible.com/u/Yvo)\
**Replies:** 7\
**Last updated:** [December 3, 2014, 4:14pm UTC](https://forum.ansible.com/t/ansible-week/16915 "2014-12-03T16:14:44Z")

</div>

Hi, First of all thank you for creating Ansible. I've been working on a few scripts this past week and I have a few questions / feedback. \[1\] Module defaults One of my scripts installs a couple of packages via Aptitud…

---

## [running "notify" tasks serially on hosts](https://forum.ansible.com/t/running-notify-tasks-serially-on-hosts/16948)

<div class="topic-metadata">

**Author:** [@Francisco\_Martinez](https://forum.ansible.com/u/Francisco_Martinez)\
**Replies:** 3\
**Last updated:** [December 3, 2014, 3:20pm UTC](https://forum.ansible.com/t/running-notify-tasks-serially-on-hosts/16948 "2014-12-03T15:20:16Z")

</div>

Hello! After changing a configuration in one service, I’d like to notify the services, but not concurrently on all the servers at once. So if I change the settings - that require a restart of apache and supervisord - I’…

---

## [Passing variables from role to role](https://forum.ansible.com/t/passing-variables-from-role-to-role/16876)

<div class="topic-metadata">

**Author:** [@Ananda\_Debnath](https://forum.ansible.com/u/Ananda_Debnath)\
**Replies:** 7\
**Last updated:** [December 3, 2014, 12:51pm UTC](https://forum.ansible.com/t/passing-variables-from-role-to-role/16876 "2014-12-03T12:51:17Z")

</div>

Hola, I have a playbook with multiple roles mapped to multiple vms. I'm registering a variable in the output of one of the tasks in role A and need to pass it to role B. Calling register or set\_facts in the role A tasks…

---

## [launching a batch of EC2s at once (to benefit from placement group), each EC2 with its own SG](https://forum.ansible.com/t/launching-a-batch-of-ec2s-at-once-to-benefit-from-placement-group-each-ec2-with-its-own-sg/16881)

<div class="topic-metadata">

**Author:** [@vaida.dan](https://forum.ansible.com/u/vaida.dan)\
**Replies:** 4\
**Last updated:** [December 3, 2014, 12:31pm UTC](https://forum.ansible.com/t/launching-a-batch-of-ec2s-at-once-to-benefit-from-placement-group-each-ec2-with-its-own-sg/16881 "2014-12-03T12:31:10Z")

</div>

Hello all, Was just curious how to accomplish this. Right now I am launching all instances at once, so I am maximizing my chances to have all the EC2s as close as possible. As AWS and common sense advises, it’s desirabl…

---

## [v1.2.2 "Invalid argument" Bug](https://forum.ansible.com/t/v1-2-2-invalid-argument-bug/13083)

<div class="topic-metadata">

**Author:** [@Matt\_Ferrante](https://forum.ansible.com/u/Matt_Ferrante)\
**Replies:** 9\
**Last updated:** [December 3, 2014, 10:27am UTC](https://forum.ansible.com/t/v1-2-2-invalid-argument-bug/13083 "2014-12-03T10:27:12Z")

</div>

Hello, I have a jenkins job that installs to a Ansible to a virtual environment using pip install ansible then runs ansible-playbook like ansible-playbook -v -i my\_host\_file my\_playbook.yml. On 7/5, the execution of ans…

---

## [accessing variable's in dict file stored in host\_vars](https://forum.ansible.com/t/accessing-variables-in-dict-file-stored-in-host-vars/16945)

<div class="topic-metadata">

**Author:** [@Amanda\_Galligan](https://forum.ansible.com/u/Amanda_Galligan)\
**Replies:** 0\
**Last updated:** [December 3, 2014, 9:02am UTC](https://forum.ansible.com/t/accessing-variables-in-dict-file-stored-in-host-vars/16945 "2014-12-03T09:02:55Z")

</div>

Currently have a playbook that is creating template configs for our cisco switches. Most generic variables are kept in group\_vars and we're currently using individual host\_var file per switch to store variables unique to…

---

## [Different behaviour copying templates between centos 6.5 and 7](https://forum.ansible.com/t/different-behaviour-copying-templates-between-centos-6-5-and-7/16934)

<div class="topic-metadata">

**Author:** [@Marc\_Roelofs](https://forum.ansible.com/u/Marc_Roelofs)\
**Replies:** 2\
**Last updated:** [December 3, 2014, 5:56am UTC](https://forum.ansible.com/t/different-behaviour-copying-templates-between-centos-6-5-and-7/16934 "2014-12-03T05:56:29Z")

</div>

Hi All, I am experiencing something weird. I have a couple of template files I need to copy over to different CentOS versions. The task is simple : copy file name: copy my-files template: src={{ item }} dest=/etc/m…

---

## [need clarification on git module update option](https://forum.ansible.com/t/need-clarification-on-git-module-update-option/16933)

<div class="topic-metadata">

**Author:** [@Cliffano\_Subagio](https://forum.ansible.com/u/Cliffano_Subagio)\
**Replies:** 3\
**Last updated:** [December 3, 2014, 4:47am UTC](https://forum.ansible.com/t/need-clarification-on-git-module-update-option/16933 "2014-12-03T04:47:13Z")

</div>

Hi, I would like to get some clarification on the intention of update option in git module. My original understanding: when update=yes, then repo will be cloned once and then updated via git pull every time when …

---

## [ad-hoc module chdir](https://forum.ansible.com/t/ad-hoc-module-chdir/16937)

<div class="topic-metadata">

**Author:** [@Serkan\_C](https://forum.ansible.com/u/Serkan_C)\
**Replies:** 1\
**Last updated:** [December 3, 2014, 12:57am UTC](https://forum.ansible.com/t/ad-hoc-module-chdir/16937 "2014-12-03T00:57:41Z")

</div>

Hi, Is it possible to pass chdir directive to ad-hoc module? I would like to do something like that; ansible server -a 'cd /opt/; java -jar export.jar ’ \[WRONG, don’t use it\] ansible server -a ‘java -jar export.jar’ …

---

## [Ansible 1.8.1 update](https://forum.ansible.com/t/ansible-1-8-1-update/16900)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Replies:** 16\
**Last updated:** [December 3, 2014, 12:21am UTC](https://forum.ansible.com/t/ansible-1-8-1-update/16900 "2014-12-03T00:21:09Z")

</div>

Hi all, We’ve updated 1.8 to include a few fixes that needed to make the release. These include some bugfixes to improve recent quoting changes to the postgresql and mysql modules. Users of database modules will want t…

---

## [Developing modules: documentation is not up to date](https://forum.ansible.com/t/developing-modules-documentation-is-not-up-to-date/16931)

<div class="topic-metadata">

**Author:** [@Marc\_Trudel](https://forum.ansible.com/u/Marc_Trudel)\
**Replies:** 2\
**Last updated:** [December 3, 2014, 12:00am UTC](https://forum.ansible.com/t/developing-modules-documentation-is-not-up-to-date/16931 "2014-12-03T00:00:26Z")

</div>

https://github.com/ansible/ansible/issues/9678#issuecomment-65175648 Essentially, the documentation still mentions “baby JSON”, whereas 1.8.x onward doesn’t support it.

---

## [Nested variables and regex\_replace()](https://forum.ansible.com/t/nested-variables-and-regex-replace/16942)

<div class="topic-metadata">

**Author:** [@Josh\_Smift1](https://forum.ansible.com/u/Josh_Smift1)\
**Replies:** 2\
**Last updated:** [December 2, 2014, 9:33pm UTC](https://forum.ansible.com/t/nested-variables-and-regex-replace/16942 "2014-12-02T21:33:16Z")

</div>

I have some variables like 'service', which can be "abc" or "xyz", and 'site', which can be "bos" or "sfo", on different hosts. I have hosts whose FQDNs are like service-site-thing-N.site.service.care.com, which have …

---

## [with\_ and empty item lists and the copy module in particular](https://forum.ansible.com/t/with-and-empty-item-lists-and-the-copy-module-in-particular/16936)

<div class="topic-metadata">

**Author:** [@willthames](https://forum.ansible.com/u/willthames)\
**Replies:** 0\
**Last updated:** [December 2, 2014, 10:43am UTC](https://forum.ansible.com/t/with-and-empty-item-lists-and-the-copy-module-in-particular/16936 "2014-12-02T10:43:34Z")

</div>

I found an odd behaviour with with\_first\_found, roles and the copy module that I document here https://github.com/willthames/copy\_with\_null\_items/commit/fd924a7045748cdb193f7cf27d5a03915c2a4458 (basically if no file is…

---

## [Setting a None Value](https://forum.ansible.com/t/setting-a-none-value/16932)

<div class="topic-metadata">

**Author:** [@Matt\_Ferrante](https://forum.ansible.com/u/Matt_Ferrante)\
**Replies:** 2\
**Last updated:** [December 2, 2014, 5:10am UTC](https://forum.ansible.com/t/setting-a-none-value/16932 "2014-12-02T05:10:37Z")

</div>

Is there a way to set a variable to None? I end up with the string, “None” every time. The ec2\_lc module passes instance\_profile\_name along to boto’s LaunchConfiguration method. Setting instance\_profile\_name to somethin…

---

## [Task templates / reuse](https://forum.ansible.com/t/task-templates-reuse/16926)

<div class="topic-metadata">

**Author:** [@Yvo](https://forum.ansible.com/u/Yvo)\
**Replies:** 2\
**Last updated:** [December 2, 2014, 5:06am UTC](https://forum.ansible.com/t/task-templates-reuse/16926 "2014-12-02T05:06:39Z")

</div>

In my playbook I have to do a few calls on RVM. I do these calls with the shell action by: 1) impersonating user x (sudo\_user) 2) setting the shell to bash 3) setting the working directory to y 4) prefixing my shell…

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

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