# Latest

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

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

**Page:** 813

---

## [Ansible playbook fails on ssh in between the tasks.](https://forum.ansible.com/t/ansible-playbook-fails-on-ssh-in-between-the-tasks/19892)

<div class="topic-metadata">

**Author:** [@Vani\_Paridhyani](https://forum.ansible.com/u/Vani_Paridhyani)\
**Replies:** 2\
**Last updated:** [December 4, 2015, 6:31pm UTC](https://forum.ansible.com/t/ansible-playbook-fails-on-ssh-in-between-the-tasks/19892 "2015-12-04T18:31:05Z")

</div>

Hi! After 5 out of 11 ansible tasks ran successfuly, my playbook failed throwing the below error: failed: \[\<ip\>\] =\> {"changed": true, "rc": 1} stderr: OpenSSH\_6.2p2, OpenSSL 1.0.1k-fips 8 Jan 2015 debug1: Reading confi…

---

## [Create Multiple Nginx Virtual Hosts with one Ansible role](https://forum.ansible.com/t/create-multiple-nginx-virtual-hosts-with-one-ansible-role/19938)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 2\
**Last updated:** [December 4, 2015, 3:36pm UTC](https://forum.ansible.com/t/create-multiple-nginx-virtual-hosts-with-one-ansible-role/19938 "2015-12-04T15:36:48Z")

</div>

Hi, How I can Create Multiple Nginx Virtual Hosts with one Ansible role, can someone give me an idea? Thanks,

---

## [Retrieve ec2 facts](https://forum.ansible.com/t/retrieve-ec2-facts/19939)

<div class="topic-metadata">

**Author:** [@Adithya\_Khamithkar](https://forum.ansible.com/u/Adithya_Khamithkar)\
**Replies:** 1\
**Last updated:** [December 4, 2015, 3:36pm UTC](https://forum.ansible.com/t/retrieve-ec2-facts/19939 "2015-12-04T15:36:35Z")

</div>

How to retrieve ec2 facts of a host using local action if the host is in the stopped state?

---

## [Why use Ansible](https://forum.ansible.com/t/why-use-ansible/19865)

<div class="topic-metadata">

**Author:** [@fabgcruz](https://forum.ansible.com/u/fabgcruz)\
**Replies:** 2\
**Last updated:** [December 4, 2015, 12:15pm UTC](https://forum.ansible.com/t/why-use-ansible/19865 "2015-12-04T12:15:01Z")

</div>

Hello! I'm conducting a search for Differences among other tools and ansible . Where can I find the advantages of using the ansible ? My question is : Why use ansible , he is better than the puppet ? Tks, Fabrici…

---

## [django\_manage with custom django manage commands.](https://forum.ansible.com/t/django-manage-with-custom-django-manage-commands/19936)

<div class="topic-metadata">

**Author:** [@anoop.kolari](https://forum.ansible.com/u/anoop.kolari)\
**Replies:** 0\
**Last updated:** [December 4, 2015, 6:46am UTC](https://forum.ansible.com/t/django-manage-with-custom-django-manage-commands/19936 "2015-12-04T06:46:29Z")

</div>

Does ansible 1.7.1 supports execution of custom django manage commands with ansible django\_manage module?

---

## [how to abort ansible execution in callback](https://forum.ansible.com/t/how-to-abort-ansible-execution-in-callback/19935)

<div class="topic-metadata">

**Author:** [@Leon\_Xie](https://forum.ansible.com/u/Leon_Xie)\
**Replies:** 0\
**Last updated:** [December 4, 2015, 6:35am UTC](https://forum.ansible.com/t/how-to-abort-ansible-execution-in-callback/19935 "2015-12-04T06:35:50Z")

</div>

hi all, I want to abort entire ansible execution in a callback file. how could I implement that? The below code doesn’t work: def runner\_on\_failed(self, host, res, ignore\_errors=False): sys.exit(1) thanks a lot in …

---

## [Template file location best practice?](https://forum.ansible.com/t/template-file-location-best-practice/19934)

<div class="topic-metadata">

**Author:** [@Brian\_Jones](https://forum.ansible.com/u/Brian_Jones)\
**Replies:** 3\
**Last updated:** [December 4, 2015, 2:08am UTC](https://forum.ansible.com/t/template-file-location-best-practice/19934 "2015-12-04T02:08:14Z")

</div>

Where should I locate files that Ansible template steps need? My developers want to locate the files next to their Java code. I want the template files located in the Ansible source repository under the roles/name/templa…

---

## [Ansible playbook-wide variable?](https://forum.ansible.com/t/ansible-playbook-wide-variable/19933)

<div class="topic-metadata">

**Author:** [@Hristo\_Stoyanov](https://forum.ansible.com/u/Hristo_Stoyanov)\
**Replies:** 0\
**Last updated:** [December 4, 2015, 12:45am UTC](https://forum.ansible.com/t/ansible-playbook-wide-variable/19933 "2015-12-04T00:45:17Z")

</div>

Can anyone help : http://stackoverflow.com/questions/33992153/ansible-playbook-wide-variable Thanks

---

## [3rd machine fails on moving a tar file...every time, not the same machine](https://forum.ansible.com/t/3rd-machine-fails-on-moving-a-tar-file-every-time-not-the-same-machine/19908)

<div class="topic-metadata">

**Author:** [@richard\_kappler](https://forum.ansible.com/u/richard_kappler)\
**Replies:** 1\
**Last updated:** [December 3, 2015, 9:30pm UTC](https://forum.ansible.com/t/3rd-machine-fails-on-moving-a-tar-file-every-time-not-the-same-machine/19908 "2015-12-03T21:30:33Z")

</div>

Good day. We’re new to Ansible so we might be missing something obvious. We have a playbook that deploys a splunk forwarder to remote machines:

---

## [copy module: fail if remote file exists and is different from source?](https://forum.ansible.com/t/copy-module-fail-if-remote-file-exists-and-is-different-from-source/19878)

<div class="topic-metadata">

**Author:** [@Nusenu1](https://forum.ansible.com/u/Nusenu1)\
**Replies:** 2\
**Last updated:** [December 3, 2015, 7:21pm UTC](https://forum.ansible.com/t/copy-module-fail-if-remote-file-exists-and-is-different-from-source/19878 "2015-12-03T19:21:31Z")

</div>

Hi, is there an (easy) way to make the copy module \[1\] fail if the remote file exists and is different from the source file? The goal is to - not override the destination (force=no) and - abort if the file exists an…

---

## [Converting a general list of values to specific role-parameters](https://forum.ansible.com/t/converting-a-general-list-of-values-to-specific-role-parameters/19931)

<div class="topic-metadata">

**Author:** [@Michael\_Lutonsky](https://forum.ansible.com/u/Michael_Lutonsky)\
**Replies:** 0\
**Last updated:** [December 3, 2015, 6:31pm UTC](https://forum.ansible.com/t/converting-a-general-list-of-values-to-specific-role-parameters/19931 "2015-12-03T18:31:12Z")

</div>

Hello! Assume there is a general list of entities (for example: users), which looks like this: - hosts: 127.0.0.1 gather\_facts: false vars: - users: - name: luto realname: Michael Lutonsky …

---

## [Get sudo/vault pass from stdin](https://forum.ansible.com/t/get-sudo-vault-pass-from-stdin/16173)

<div class="topic-metadata">

**Author:** [@Nate\_Coraor](https://forum.ansible.com/u/Nate_Coraor)\
**Replies:** 3\
**Last updated:** [December 3, 2015, 5:48pm UTC](https://forum.ansible.com/t/get-sudo-vault-pass-from-stdin/16173 "2015-12-03T17:48:23Z")

</div>

Moving the discussion over from Twitter: https://twitter.com/natefoo/status/509540916932014080 I have my vault passwords in pass (http://www.passwordstore.org/), so to run a playbook that requires vault decryption, I’ll…

---

## [checking java process](https://forum.ansible.com/t/checking-java-process/19794)

<div class="topic-metadata">

**Author:** [@skr989](https://forum.ansible.com/u/skr989)\
**Replies:** 3\
**Last updated:** [December 3, 2015, 5:28pm UTC](https://forum.ansible.com/t/checking-java-process/19794 "2015-12-03T17:28:17Z")

</div>

I have the below play to check if JBoss application server is RUNNING. I am getting the message “JBoss Process is running on localhost” (inventory\_hostname = localhost) even when JBoss is DOWN. Am I doing anything wrong …

---

## [pressed late\_command ansibe-pull](https://forum.ansible.com/t/pressed-late-command-ansibe-pull/19926)

<div class="topic-metadata">

**Author:** [@Eric\_Keller](https://forum.ansible.com/u/Eric_Keller)\
**Replies:** 1\
**Last updated:** [December 3, 2015, 5:10pm UTC](https://forum.ansible.com/t/pressed-late-command-ansibe-pull/19926 "2015-12-03T17:10:07Z")

</div>

Hi there, I am using foreman for setting up some Ubuntu clients, using ansible as configuration management. I was struggeling with preseed late\_command and ansible-pull, that’s why I would like to post about a working s…

---

## [Expand group\_name in a loop with\_items](https://forum.ansible.com/t/expand-group-name-in-a-loop-with-items/19929)

<div class="topic-metadata">

**Author:** [@Manuel\_Jimenez](https://forum.ansible.com/u/Manuel_Jimenez)\
**Replies:** 1\
**Last updated:** [December 3, 2015, 5:05pm UTC](https://forum.ansible.com/t/expand-group-name-in-a-loop-with-items/19929 "2015-12-03T17:05:13Z")

</div>

Hello, I need to expand the group\_name for each host in the iteration because I would like to have different folders for each group. So if the playbook is doing frontend1 I wan’t to access to frontends templates Examp…

---

## [Ansible fails with deployment\_type assertion](https://forum.ansible.com/t/ansible-fails-with-deployment-type-assertion/19930)

<div class="topic-metadata">

**Author:** [@Suryaveer\_Chauhan](https://forum.ansible.com/u/Suryaveer_Chauhan)\
**Replies:** 0\
**Last updated:** [December 3, 2015, 5:05pm UTC](https://forum.ansible.com/t/ansible-fails-with-deployment-type-assertion/19930 "2015-12-03T17:05:00Z")

</div>

Hi All, I am trying to install OpenShift Origin V3 (following this) using ansible and it fails with following error: TASK: \[openshift\_facts | Ensure PyYaml is installed\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* ok: \[192.168.144.132…

---

## [ansible2.0 expect module not working](https://forum.ansible.com/t/ansible2-0-expect-module-not-working/19909)

<div class="topic-metadata">

**Author:** [@Karan\_Singh](https://forum.ansible.com/u/Karan_Singh)\
**Replies:** 3\
**Last updated:** [December 3, 2015, 4:41pm UTC](https://forum.ansible.com/t/ansible2-0-expect-module-not-working/19909 "2015-12-03T16:41:03Z")

</div>

Hello Guys Here is my ansible task name: Firmware path lookup shell: rpm -ql hp-firmware-“{{ device.stdout }}” | grep ‘.scexe’ register: FirmwarePath expect: command: sh “{{ FirmwarePath.stdout }}” responses: …

---

## [unarchive fails?!](https://forum.ansible.com/t/unarchive-fails/19928)

<div class="topic-metadata">

**Author:** [@Christian\_Schmitt](https://forum.ansible.com/u/Christian_Schmitt)\
**Replies:** 1\
**Last updated:** [December 3, 2015, 4:32pm UTC](https://forum.ansible.com/t/unarchive-fails/19928 "2015-12-03T16:32:24Z")

</div>

Hello, currently I try to unarchive a file via ansible however I always get the following: msg: Failed to find handler to unarchive. Make sure the required command to extract the file is installed. Currently my Machine…

---

## [Retrieve group children](https://forum.ansible.com/t/retrieve-group-children/19927)

<div class="topic-metadata">

**Author:** [@Laurent\_DEVIGNES](https://forum.ansible.com/u/Laurent_DEVIGNES)\
**Replies:** 1\
**Last updated:** [December 3, 2015, 3:52pm UTC](https://forum.ansible.com/t/retrieve-group-children/19927 "2015-12-03T15:52:05Z")

</div>

I don’t know how to retrieve simply group children I have this structure \[group1\] foo1 foo2 \[group2\] bar1 bar2 \[group3\] baz1 baz2 \[MetaGroupA:children\] group1 group2 \[MetaGroupB:children\] group3 For some …

---

## [Get IP Address of server](https://forum.ansible.com/t/get-ip-address-of-server/19918)

<div class="topic-metadata">

**Author:** [@saikrishnakhanday](https://forum.ansible.com/u/saikrishnakhanday)\
**Replies:** 6\
**Last updated:** [December 3, 2015, 2:31pm UTC](https://forum.ansible.com/t/get-ip-address-of-server/19918 "2015-12-03T14:31:26Z")

</div>

Can any one please help me how can I write a script to fetch its own IP Address.

---

## [Hipchat module not compatible with hipchat API v2?](https://forum.ansible.com/t/hipchat-module-not-compatible-with-hipchat-api-v2/15345)

<div class="topic-metadata">

**Author:** [@Lars\_Sommer](https://forum.ansible.com/u/Lars_Sommer)\
**Replies:** 6\
**Last updated:** [December 3, 2015, 1:50pm UTC](https://forum.ansible.com/t/hipchat-module-not-compatible-with-hipchat-api-v2/15345 "2015-12-03T13:50:43Z")

</div>

http://docs.ansible.com/hipchat\_module.html https://www.hipchat.com/docs/apiv2/method/send\_room\_notification Difference in expected URL: https://api.hipchat.com/v1/rooms/message vs https://api.hipchat.com/v2/room/{i…

---

## [ansible didn't stop execution upon a task failure](https://forum.ansible.com/t/ansible-didnt-stop-execution-upon-a-task-failure/19893)

<div class="topic-metadata">

**Author:** [@Leon\_Xie](https://forum.ansible.com/u/Leon_Xie)\
**Replies:** 5\
**Last updated:** [December 3, 2015, 8:04am UTC](https://forum.ansible.com/t/ansible-didnt-stop-execution-upon-a-task-failure/19893 "2015-12-03T08:04:42Z")

</div>

hi I have the below ansible playbook named backup\_data.yml, which is included by the main playbook named upgrade.yml. backup\_data.yml

---

## [Unable to create /etc/ansible/facts.d/openshift.fact, permission denied](https://forum.ansible.com/t/unable-to-create-etc-ansible-facts-d-openshift-fact-permission-denied/19923)

<div class="topic-metadata">

**Author:** [@Suryaveer\_Chauhan](https://forum.ansible.com/u/Suryaveer_Chauhan)\
**Replies:** 3\
**Last updated:** [December 3, 2015, 7:02am UTC](https://forum.ansible.com/t/unable-to-create-etc-ansible-facts-d-openshift-fact-permission-denied/19923 "2015-12-03T07:02:59Z")

</div>

Hi All, I am a newbie to ansible. I am following this blog to install OpenShift Origin V3 on OpenStack using ansible. But I am getting error as below: “Could not create fact file: %s, error: %s” % (filename, ex) main.…

---

## [Access include\_vars variables within callback plugin](https://forum.ansible.com/t/access-include-vars-variables-within-callback-plugin/19911)

<div class="topic-metadata">

**Author:** [@Sam\_S](https://forum.ansible.com/u/Sam_S)\
**Replies:** 1\
**Last updated:** [December 3, 2015, 12:11am UTC](https://forum.ansible.com/t/access-include-vars-variables-within-callback-plugin/19911 "2015-12-03T00:11:16Z")

</div>

I can access all vars within group\_vars by using the following code. \` host\_vars = self.playbook.inventory.get\_variables(hosts\[0\]) \` However, my playbook is based on the server name, so it loads the correct variable …

---

## [\# of ssh connections / timeout function?](https://forum.ansible.com/t/of-ssh-connections-timeout-function/19921)

<div class="topic-metadata">

**Author:** [@richard\_kappler](https://forum.ansible.com/u/richard_kappler)\
**Replies:** 1\
**Last updated:** [December 2, 2015, 11:46pm UTC](https://forum.ansible.com/t/of-ssh-connections-timeout-function/19921 "2015-12-02T23:46:38Z")

</div>

This is a two part question. I sort of worked around the problem I asked about yesterday (third task crashes on third of 4 machines) by splitting up my playbook into 3 parts. Ugly, but for now it works, at least on four …

---

## [ansible-playbook hangs during execution](https://forum.ansible.com/t/ansible-playbook-hangs-during-execution/19880)

<div class="topic-metadata">

**Author:** [@Guy\_Knights](https://forum.ansible.com/u/Guy_Knights)\
**Replies:** 3\
**Last updated:** [December 2, 2015, 6:46pm UTC](https://forum.ansible.com/t/ansible-playbook-hangs-during-execution/19880 "2015-12-02T18:46:26Z")

</div>

I have a playbook (site.yml) which includes a bunch of other playbooks. Each of these individual playbooks includes one or more roles. I’ve had problems with site.yml hanging at a specific point during execution, so I ra…

---

## [chown recursively with file module is very slow](https://forum.ansible.com/t/chown-recursively-with-file-module-is-very-slow/19919)

<div class="topic-metadata">

**Author:** [@Thomas\_Steinbach](https://forum.ansible.com/u/Thomas_Steinbach)\
**Replies:** 1\
**Last updated:** [December 2, 2015, 6:29pm UTC](https://forum.ansible.com/t/chown-recursively-with-file-module-is-very-slow/19919 "2015-12-02T18:29:42Z")

</div>

Hi, I want to ensure that a directory and all its children belongs to a user/group. Normally I would do following with Ansible: file: dest: /path/to/dir owner: userx group: groupx recurse: yes However this approach ta…

---

## [Escaping curly braces in a dictionary.](https://forum.ansible.com/t/escaping-curly-braces-in-a-dictionary/19917)

<div class="topic-metadata">

**Author:** [@brian.lycett](https://forum.ansible.com/u/brian.lycett)\
**Replies:** 0\
**Last updated:** [December 2, 2015, 4:18pm UTC](https://forum.ansible.com/t/escaping-curly-braces-in-a-dictionary/19917 "2015-12-02T16:18:18Z")

</div>

Hi. I’m struggling to escape double curly braces in a dictionary. I’ve tried the {{ ‘{{’ }} blah {{ ‘}}’ }} method, tried using backslashes and also tried using {% raw %}{{blah}}{% endraw %} I need to be able to do this…

---

## [Unexpected exception when including tasks from main.yml](https://forum.ansible.com/t/unexpected-exception-when-including-tasks-from-main-yml/19915)

<div class="topic-metadata">

**Author:** [@Yongzhi\_Pan](https://forum.ansible.com/u/Yongzhi_Pan)\
**Replies:** 3\
**Last updated:** [December 2, 2015, 4:15pm UTC](https://forum.ansible.com/t/unexpected-exception-when-including-tasks-from-main-yml/19915 "2015-12-02T16:15:47Z")

</div>

Ansible assumes that roles/x/tasks/main.yml is a plain list of tasks, but when the file is in the format: tasks: xxx … it fails with unexpected exception (AssertionError): File “/opt/ansible/ansible/lib/ansible/pla…

---

## [anyone know how to pass extra\_vars in tower callback via curl?](https://forum.ansible.com/t/anyone-know-how-to-pass-extra-vars-in-tower-callback-via-curl/19916)

<div class="topic-metadata">

**Author:** [@Adrian\_Black1](https://forum.ansible.com/u/Adrian_Black1)\
**Replies:** 1\
**Last updated:** [December 2, 2015, 2:02pm UTC](https://forum.ansible.com/t/anyone-know-how-to-pass-extra-vars-in-tower-callback-via-curl/19916 "2015-12-02T14:02:20Z")

</div>

Anybody any idea how to pass in extra\_vars when doing a callback request to tower? https://docs.ansible.com/ansible-tower/2.2.0/html/userguide/job\_templates.html#ug-provisioning-callbacks I cant see how you can combine…

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

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