# Latest

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

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

**Page:** 799

---

## [Debugging hang at the end of a playbook run](https://forum.ansible.com/t/debugging-hang-at-the-end-of-a-playbook-run/20357)

<div class="topic-metadata">

**Author:** [@Tim\_Moore](https://forum.ansible.com/u/Tim_Moore)\
**Replies:** 0\
**Last updated:** [January 27, 2016, 8:19am UTC](https://forum.ansible.com/t/debugging-hang-at-the-end-of-a-playbook-run/20357 "2016-01-27T08:19:32Z")

</div>

Often (but not always) when I run ansible-playbook with one of my playbooks, the entire thing will seem to run successfully, but at the very end of the run (after printing the PLAY RECAP section) it hangs rather than exi…

---

## [Ansible 2.x - AWS ec2\_asg problem -\> AttributeError: 'module' object has no attribute 'InvalidInstance'](https://forum.ansible.com/t/ansible-2-x-aws-ec2-asg-problem-attributeerror-module-object-has-no-attribute-invalidinstance/20259)

<div class="topic-metadata">

**Author:** [@davidg](https://forum.ansible.com/u/davidg)\
**Replies:** 2\
**Last updated:** [January 26, 2016, 9:34pm UTC](https://forum.ansible.com/t/ansible-2-x-aws-ec2-asg-problem-attributeerror-module-object-has-no-attribute-invalidinstance/20259 "2016-01-26T21:34:42Z")

</div>

I am running a playbook to update an existing AWS Autoscaling group and have started to encounter an error message that I was not seeing before. Environment: Amazon Linux Python 2.7.10 ansible (2.0.0.2) boto (2.38.0…

---

## [Iterate Hash in template.](https://forum.ansible.com/t/iterate-hash-in-template/20349)

<div class="topic-metadata">

**Author:** [@David\_Blackburn](https://forum.ansible.com/u/David_Blackburn)\
**Replies:** 3\
**Last updated:** [January 26, 2016, 4:22pm UTC](https://forum.ansible.com/t/iterate-hash-in-template/20349 "2016-01-26T16:22:13Z")

</div>

I am trying to iterate over a hash of hash of a list, but I do not seem to be having much luck, I have setup a group variable which I select using a variable, which appears to be working correctly as per the debug, but o…

---

## [Jinja2 variable substitution in the YAML map key](https://forum.ansible.com/t/jinja2-variable-substitution-in-the-yaml-map-key/20352)

<div class="topic-metadata">

**Author:** [@Jiri](https://forum.ansible.com/u/Jiri)\
**Replies:** 0\
**Last updated:** [January 26, 2016, 1:03pm UTC](https://forum.ansible.com/t/jinja2-variable-substitution-in-the-yaml-map-key/20352 "2016-01-26T13:03:05Z")

</div>

I have notices that if I use a Jinja2 variable in the YAML map key, it’s not substituted by the variable’s value as in the array and the map value. For example if I have the following playbook: \`

---

## [Frozen process when you run "dpkg-reconfigure"](https://forum.ansible.com/t/frozen-process-when-you-run-dpkg-reconfigure/19968)

<div class="topic-metadata">

**Author:** [@Ivan\_Nunes](https://forum.ansible.com/u/Ivan_Nunes)\
**Replies:** 2\
**Last updated:** [January 26, 2016, 12:42pm UTC](https://forum.ansible.com/t/frozen-process-when-you-run-dpkg-reconfigure/19968 "2016-01-26T12:42:20Z")

</div>

The process stand by and simply does not end the execution of the playbook. It will be a failure ansible or failure is a parameter of dpkg command?

---

## [variables overriding in dependent role in version 1.9.x](https://forum.ansible.com/t/variables-overriding-in-dependent-role-in-version-1-9-x/20351)

<div class="topic-metadata">

**Author:** [@Hleb\_Valoshka](https://forum.ansible.com/u/Hleb_Valoshka)\
**Replies:** 1\
**Last updated:** [January 26, 2016, 12:22pm UTC](https://forum.ansible.com/t/variables-overriding-in-dependent-role-in-version-1-9-x/20351 "2016-01-26T12:22:33Z")

</div>

Hi all. I have role\_a and role\_b which depends on role\_a. role\_a defines variable var\_foo (in vars/main.yml), role\_b wants to redefine it (in its own vars/main.yml). With 1.7.2 this works, but with 1.9.\[24\] - not. I’v…

---

## [What parameters are possible for "include"?](https://forum.ansible.com/t/what-parameters-are-possible-for-include/20337)

<div class="topic-metadata">

**Author:** [@t.hirsch](https://forum.ansible.com/u/t.hirsch)\
**Replies:** 3\
**Last updated:** [January 26, 2016, 8:55am UTC](https://forum.ansible.com/t/what-parameters-are-possible-for-include/20337 "2016-01-26T08:55:50Z")

</div>

Hello, when I want to include another file, which includes a list of tasks, what parameters are possible to pas to the include to have them forwarded to the task? For example, I set “tags” when including something, mayb…

---

## [Ansible ping get FAILED =\> SSH Error: Permission denied](https://forum.ansible.com/t/ansible-ping-get-failed-ssh-error-permission-denied/20322)

<div class="topic-metadata">

**Author:** [@Hongjun\_Ma](https://forum.ansible.com/u/Hongjun_Ma)\
**Replies:** 1\
**Last updated:** [January 26, 2016, 4:34am UTC](https://forum.ansible.com/t/ansible-ping-get-failed-ssh-error-permission-denied/20322 "2016-01-26T04:34:51Z")

</div>

I’m getting permission error on basic ansible ping command. I verified ssh to remote hostname and ip address so the ssh host key is not an issue. Using CentOS7.0 If I cut/paste ssh command in ansible debug, the output w…

---

## [win\_nssm - How to specify Startup directory](https://forum.ansible.com/t/win-nssm-how-to-specify-startup-directory/20347)

<div class="topic-metadata">

**Author:** [@Joe\_Levis](https://forum.ansible.com/u/Joe_Levis)\
**Replies:** 1\
**Last updated:** [January 26, 2016, 12:33am UTC](https://forum.ansible.com/t/win-nssm-how-to-specify-startup-directory/20347 "2016-01-26T00:33:12Z")

</div>

Does anyone know a way to specify the Startup directory when installing a new service using win\_nssm? I may be missing something in the documentation, but I don’t see it. Thanks, -Joe

---

## [command - only if one out of several files doesn't exist? (creates)](https://forum.ansible.com/t/command-only-if-one-out-of-several-files-doesnt-exist-creates/20346)

<div class="topic-metadata">

**Author:** [@Nusenu1](https://forum.ansible.com/u/Nusenu1)\
**Replies:** 0\
**Last updated:** [January 25, 2016, 9:48pm UTC](https://forum.ansible.com/t/command-only-if-one-out-of-several-files-doesnt-exist-creates/20346 "2016-01-25T21:48:08Z")

</div>

Hi, I'd like to run a command only if at least one out of several files does not exist, is that possible with the creates parameter of the command module? thanks!

---

## [SCP instead of SFTP](https://forum.ansible.com/t/scp-instead-of-sftp/20340)

<div class="topic-metadata">

**Author:** [@Heinrich\_Piard](https://forum.ansible.com/u/Heinrich_Piard)\
**Replies:** 2\
**Last updated:** [January 25, 2016, 9:47pm UTC](https://forum.ansible.com/t/scp-instead-of-sftp/20340 "2016-01-25T21:47:46Z")

</div>

Hi all, I am using this ansible.cfg \[defaults\] host\_key\_checking=false ansible\_user=ich ansible\_ssh\_private\_key\_file=/home/mylocation/key remote\_user = root transport=smart \[ssh\_connection\] scp\_if\_ssh=True When…

---

## [user-module shows changed for user after reboot.](https://forum.ansible.com/t/user-module-shows-changed-for-user-after-reboot/20344)

<div class="topic-metadata">

**Author:** [@Sebastian\_Gumprich](https://forum.ansible.com/u/Sebastian_Gumprich)\
**Replies:** 0\
**Last updated:** [January 25, 2016, 8:05pm UTC](https://forum.ansible.com/t/user-module-shows-changed-for-user-after-reboot/20344 "2016-01-25T20:05:27Z")

</div>

Hi, I’m hitting a strange problem on a freshly installed Ubuntu 14.04 box. There’s a user named “irc” by default. When I alter the user with the following playbook, the run shows ‘changed’. A subsequent run does not sh…

---

## [custom jinja filter inside role](https://forum.ansible.com/t/custom-jinja-filter-inside-role/20279)

<div class="topic-metadata">

**Author:** [@Hleb\_Valoshka](https://forum.ansible.com/u/Hleb_Valoshka)\
**Replies:** 4\
**Last updated:** [January 25, 2016, 8:01pm UTC](https://forum.ansible.com/t/custom-jinja-filter-inside-role/20279 "2016-01-25T20:01:29Z")

</div>

I want to add own jinja filter to my role, is it possible? If yes, where I should put it. I’ve tried library subdir but unsuccessfully.

---

## [role callback dependencies](https://forum.ansible.com/t/role-callback-dependencies/20343)

<div class="topic-metadata">

**Author:** [@Mike\_Biancaniello](https://forum.ansible.com/u/Mike_Biancaniello)\
**Replies:** 0\
**Last updated:** [January 25, 2016, 7:15pm UTC](https://forum.ansible.com/t/role-callback-dependencies/20343 "2016-01-25T19:15:28Z")

</div>

So I have been playing around with multiple callbacks and ordering. I created two callback plugins: calltest1, calltest2. Each one simply prints its number and fcn to the screen: e.g. \` TEST1: v2\_playbook\_on\_start() …

---

## [Dependencies between Roles (parent out of sync)](https://forum.ansible.com/t/dependencies-between-roles-parent-out-of-sync/20342)

<div class="topic-metadata">

**Author:** [@Richard\_O\_Mahony](https://forum.ansible.com/u/Richard_O_Mahony)\
**Replies:** 0\
**Last updated:** [January 25, 2016, 5:46pm UTC](https://forum.ansible.com/t/dependencies-between-roles-parent-out-of-sync/20342 "2016-01-25T17:46:34Z")

</div>

Hi I am new to Ansible so apologies if I am going about this the wrong way. I am creating a project with two roles. A ‘java’ role and a ‘jetty’ role. Jetty has a dependency on java being installed so I was going to mode…

---

## [AWS vpc creation problem on Mac OS X](https://forum.ansible.com/t/aws-vpc-creation-problem-on-mac-os-x/20267)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 2\
**Last updated:** [January 25, 2016, 4:53pm UTC](https://forum.ansible.com/t/aws-vpc-creation-problem-on-mac-os-x/20267 "2016-01-25T16:53:03Z")

</div>

Hi, I have a problem while creating aws vpc from mac os x but the exact same command/role is working from ubuntu. Steps that I have already taken on Mac OS X: update the time using ntp upgrade the ansible to version …

---

## [Problem using default(omit) in docker environment variable](https://forum.ansible.com/t/problem-using-default-omit-in-docker-environment-variable/20341)

<div class="topic-metadata">

**Author:** [@Chad\_McElligott](https://forum.ansible.com/u/Chad_McElligott)\
**Replies:** 2\
**Last updated:** [January 25, 2016, 4:31pm UTC](https://forum.ansible.com/t/problem-using-default-omit-in-docker-environment-variable/20341 "2016-01-25T16:31:50Z")

</div>

I am trying to use the | default(omit) filter in the environment variable declaration of my docker role, for example: name: start container docker: name: foo image: foo state: reloaded pull: always restart\_policy…

---

## [Wrong variable substituion in template](https://forum.ansible.com/t/wrong-variable-substituion-in-template/20336)

<div class="topic-metadata">

**Author:** [@Jonatas\_Baldin](https://forum.ansible.com/u/Jonatas_Baldin)\
**Replies:** 1\
**Last updated:** [January 25, 2016, 4:05pm UTC](https://forum.ansible.com/t/wrong-variable-substituion-in-template/20336 "2016-01-25T16:05:15Z")

</div>

Hi, how are you guys? I got a problem in variable substitution in one template. I don’t know if I’m doing something wrong or it may be a bug. Here’s the deal: I’ve got this playbook:

---

## [Install local package](https://forum.ansible.com/t/install-local-package/20338)

<div class="topic-metadata">

**Author:** [@jupitertt84](https://forum.ansible.com/u/jupitertt84)\
**Replies:** 0\
**Last updated:** [January 25, 2016, 2:03pm UTC](https://forum.ansible.com/t/install-local-package/20338 "2016-01-25T14:03:48Z")

</div>

Hi, I’m trying to install a rpm file on my remote hosts. The file is present on the controller. How should I proceed to do that ? I tried using a combination of copying the file, then installing it with yum, then removi…

---

## [Manage dict with empty keys](https://forum.ansible.com/t/manage-dict-with-empty-keys/20196)

<div class="topic-metadata">

**Author:** [@Pierre\_Mavro](https://forum.ansible.com/u/Pierre_Mavro)\
**Replies:** 3\
**Last updated:** [January 25, 2016, 2:01pm UTC](https://forum.ansible.com/t/manage-dict-with-empty-keys/20196 "2016-01-25T14:01:28Z")

</div>

Hi, I’m trying to find a way to grab RabbitMQ plugins when an URL is specified as value of a key (because some of them are include but not activated with RabbitMQ, while others are not included). I’d like to have a sin…

---

## [Can't run playbook against multiple nodes using ec2.py and AWS tags](https://forum.ansible.com/t/cant-run-playbook-against-multiple-nodes-using-ec2-py-and-aws-tags/20317)

<div class="topic-metadata">

**Author:** [@alexander.altanis](https://forum.ansible.com/u/alexander.altanis)\
**Replies:** 3\
**Last updated:** [January 25, 2016, 12:42pm UTC](https://forum.ansible.com/t/cant-run-playbook-against-multiple-nodes-using-ec2-py-and-aws-tags/20317 "2016-01-25T12:42:37Z")

</div>

Hello, I’m using the Amazon Dynamic inventory script from here. I’ve created some instances on EC2, and have given all of them a custom tag called Purpose, with a value like NodePurpose, and instance names Node1, Node2 …

---

## [Using handlers with non-dynamic includes in 2.0](https://forum.ansible.com/t/using-handlers-with-non-dynamic-includes-in-2-0/20335)

<div class="topic-metadata">

**Author:** [@Stefan\_Midjich](https://forum.ansible.com/u/Stefan_Midjich)\
**Replies:** 0\
**Last updated:** [January 25, 2016, 10:08am UTC](https://forum.ansible.com/t/using-handlers-with-non-dynamic-includes-in-2-0/20335 "2016-01-25T10:08:03Z")

</div>

I recently upgraded to 2.0 and noticed that none of my handlers were executing because I’ve gathered them centrally to be used by many roles and playbooks. Since handlers almost exclusively restart services they are eas…

---

## [delegate\_to in Jinja2](https://forum.ansible.com/t/delegate-to-in-jinja2/20334)

<div class="topic-metadata">

**Author:** [@Dewangga\_Bachrul\_Ala](https://forum.ansible.com/u/Dewangga_Bachrul_Ala)\
**Replies:** 0\
**Last updated:** [January 25, 2016, 2:18am UTC](https://forum.ansible.com/t/delegate-to-in-jinja2/20334 "2016-01-25T02:18:20Z")

</div>

Hi, I tried to build templates on mariadb (galera) and this templates should be suites on any additional nodes. For the example, on the \`wsrep\_cluster\_address\`, I put wsrep\_cluster\_address = "gcomm://{% if (groups\['d…

---

## [Wrong variable substituion in template](https://forum.ansible.com/t/wrong-variable-substituion-in-template/20333)

<div class="topic-metadata">

**Author:** [@Jonatas\_Baldin](https://forum.ansible.com/u/Jonatas_Baldin)\
**Replies:** 0\
**Last updated:** [January 25, 2016, 1:51am UTC](https://forum.ansible.com/t/wrong-variable-substituion-in-template/20333 "2016-01-25T01:51:37Z")

</div>

Hi, how are you guys? I got a problem in variable substitution in one template. I don’t know if I’m doing something wrong or it may be a bug. Here’s the deal: I’ve got this playbook:

---

## [Filter plugin proposal: Compact list of dicts](https://forum.ansible.com/t/filter-plugin-proposal-compact-list-of-dicts/20329)

<div class="topic-metadata">

**Author:** [@Dominic\_Barnard](https://forum.ansible.com/u/Dominic_Barnard)\
**Replies:** 2\
**Last updated:** [January 24, 2016, 8:05pm UTC](https://forum.ansible.com/t/filter-plugin-proposal-compact-list-of-dicts/20329 "2016-01-24T20:05:41Z")

</div>

I’ve created a filter plugin for use with my own project and thought it might be useful to others. It’s a filter which takes a list of dicts which have been compacted down to reduce duplicated values between items and i…

---

## [Custom module with connection via TCP API. No files transfered.](https://forum.ansible.com/t/custom-module-with-connection-via-tcp-api-no-files-transfered/20332)

<div class="topic-metadata">

**Author:** [@Lukasz\_Kostka](https://forum.ansible.com/u/Lukasz_Kostka)\
**Replies:** 0\
**Last updated:** [January 24, 2016, 5:29pm UTC](https://forum.ansible.com/t/custom-module-with-connection-via-tcp-api-no-files-transfered/20332 "2016-01-24T17:29:39Z")

</div>

Hi I’d like to develop custom module that will configure remote network device (MikroTik) via API (TCP). I know that I need a connection plugin and a module for specific task. If I add with\_items to my module, will it …

---

## [How to undefine a variable?](https://forum.ansible.com/t/how-to-undefine-a-variable/20323)

<div class="topic-metadata">

**Author:** [@Weiwen\_Chen](https://forum.ansible.com/u/Weiwen_Chen)\
**Replies:** 2\
**Last updated:** [January 24, 2016, 4:57pm UTC](https://forum.ansible.com/t/how-to-undefine-a-variable/20323 "2016-01-24T16:57:28Z")

</div>

Help pls. I like to undefine a variable in a task.

---

## [prevent usage of backported filter on ansible \>= 2.0](https://forum.ansible.com/t/prevent-usage-of-backported-filter-on-ansible-2-0/20331)

<div class="topic-metadata">

**Author:** [@Hleb\_Valoshka](https://forum.ansible.com/u/Hleb_Valoshka)\
**Replies:** 0\
**Last updated:** [January 24, 2016, 12:22pm UTC](https://forum.ansible.com/t/prevent-usage-of-backported-filter-on-ansible-2-0/20331 "2016-01-24T12:22:58Z")

</div>

Hi all. For my needs I’ve backported combine filter from ansible 2.0 to 1.7. As my role is written for 3rd party I can’t control used ansible version. So the question is: how can I prevent usage of my module with ansib…

---

## [security implications of: local\_action: shell command {{ fact\_var }}](https://forum.ansible.com/t/security-implications-of-local-action-shell-command-fact-var/20330)

<div class="topic-metadata">

**Author:** [@Nusenu1](https://forum.ansible.com/u/Nusenu1)\
**Replies:** 2\
**Last updated:** [January 23, 2016, 7:12pm UTC](https://forum.ansible.com/t/security-implications-of-local-action-shell-command-fact-var/20330 "2016-01-23T19:12:46Z")

</div>

Hi, similar to a previous question \[1\] that was answered by Brian I'm wondering if the following example gives the remote server remote command execution privileges on the ansible host (which obviously no one wants): …

---

## [Ansible windows kerberos issue](https://forum.ansible.com/t/ansible-windows-kerberos-issue/20232)

<div class="topic-metadata">

**Author:** [@Mayur\_Barge](https://forum.ansible.com/u/Mayur_Barge)\
**Replies:** 4\
**Last updated:** [January 23, 2016, 4:19pm UTC](https://forum.ansible.com/t/ansible-windows-kerberos-issue/20232 "2016-01-23T16:19:37Z")

</div>

Hi I’m facing below issue while connecting to windows machine using AD accounts File “/usr/lib/python2.7/site-packages/ansible/runner/init.py”, line 586, in \_executor exec\_rc = self.\_executor\_internal(host, new\_stdin) …

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

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