# Latest

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

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

**Page:** 983

---

## [Problem with local variables in Jinja2 template includes](https://forum.ansible.com/t/problem-with-local-variables-in-jinja2-template-includes/14819)

<div class="topic-metadata">

**Author:** [@Mike\_Yumatov](https://forum.ansible.com/u/Mike_Yumatov)\
**Replies:** 1\
**Last updated:** [March 21, 2014, 8:30pm UTC](https://forum.ansible.com/t/problem-with-local-variables-in-jinja2-template-includes/14819 "2014-03-21T20:30:40Z")

</div>

Hi It seems there is a problem with locals in Jinja2 templates. For example, this works in vanilla Jinja2 environment, but doesn't work in ansible environment ("One or more undefined variables: 'publisher' is undefined"…

---

## [Ansible deployment in OpenStack](https://forum.ansible.com/t/ansible-deployment-in-openstack/14823)

<div class="topic-metadata">

**Author:** [@phillip.corchary](https://forum.ansible.com/u/phillip.corchary)\
**Replies:** 1\
**Last updated:** [March 21, 2014, 8:19pm UTC](https://forum.ansible.com/t/ansible-deployment-in-openstack/14823 "2014-03-21T20:19:40Z")

</div>

Question - I’ve been using Bang (http://fr33jc.github.io/bang/index.html) for Ansible deployments into OpenStack environments, but I’m wondering if there is work on other solutions? Most of what I’ve seen googling and di…

---

## [ansible.runner.HostVars object has no element](https://forum.ansible.com/t/ansible-runner-hostvars-object-has-no-element/14821)

<div class="topic-metadata">

**Author:** [@david.neudorfer](https://forum.ansible.com/u/david.neudorfer)\
**Replies:** 2\
**Last updated:** [March 21, 2014, 8:18pm UTC](https://forum.ansible.com/t/ansible-runner-hostvars-object-has-no-element/14821 "2014-03-21T20:18:15Z")

</div>

Ansible is telling me that the HostVars object has no element, but when I run setup I see the object! setup: “ansible\_eth1”: { “active”: true, “device”: “eth1”, “ipv4”: { “address”: “10.209.169.109”, “netmask”: “2…

---

## [ansible on beaglebone black](https://forum.ansible.com/t/ansible-on-beaglebone-black/14824)

<div class="topic-metadata">

**Author:** [@Eric\_Palmer1](https://forum.ansible.com/u/Eric_Palmer1)\
**Replies:** 2\
**Last updated:** [March 21, 2014, 6:20pm UTC](https://forum.ansible.com/t/ansible-on-beaglebone-black/14824 "2014-03-21T18:20:49Z")

</div>

Anyone using ansible to configure a BBB ARM board? Which OS and what is your experience?

---

## [Running ansible on local Linux desktop hangs on Gathering Facts](https://forum.ansible.com/t/running-ansible-on-local-linux-desktop-hangs-on-gathering-facts/13483)

<div class="topic-metadata">

**Author:** [@Ben\_Turner](https://forum.ansible.com/u/Ben_Turner)\
**Replies:** 5\
**Last updated:** [March 21, 2014, 4:46pm UTC](https://forum.ansible.com/t/running-ansible-on-local-linux-desktop-hangs-on-gathering-facts/13483 "2014-03-21T16:46:29Z")

</div>

Hi, I’ve used ansible with some success on remote servers, but wanted to build up a quick playbook to build on dev boxes quickly. So I wrote out a small playbook to just install some apt packages, and run it - but it s…

---

## [copy module with force=no intermittently reports "ok" status even when destination file does not exist](https://forum.ansible.com/t/copy-module-with-force-no-intermittently-reports-ok-status-even-when-destination-file-does-not-exist/14793)

<div class="topic-metadata">

**Author:** [@David\_Banks](https://forum.ansible.com/u/David_Banks)\
**Replies:** 1\
**Last updated:** [March 21, 2014, 1:36pm UTC](https://forum.ansible.com/t/copy-module-with-force-no-intermittently-reports-ok-status-even-when-destination-file-does-not-exist/14793 "2014-03-21T13:36:02Z")

</div>

Hey there, I am spawning some VMs using vagrant (CentOS 6.5 images) and copying a file to them. I only want to copy the file if it does not already exist, so that I can repeatedly run my playbooks against the host. My …

---

## [Access role file different than main.yml](https://forum.ansible.com/t/access-role-file-different-than-main-yml/14775)

<div class="topic-metadata">

**Author:** [@James\_Goodhouse](https://forum.ansible.com/u/James_Goodhouse)\
**Replies:** 9\
**Last updated:** [March 21, 2014, 1:31pm UTC](https://forum.ansible.com/t/access-role-file-different-than-main-yml/14775 "2014-03-21T13:31:53Z")

</div>

When specifying a role to use in a playbook, is it possible to target a different file other than main.yml? I ask because I’m struggling to find the proper way to layout a playbook and role for my project. Currently I h…

---

## [It is possible to delay "delegate\_to" until remote server is ready?](https://forum.ansible.com/t/it-is-possible-to-delay-delegate-to-until-remote-server-is-ready/14797)

<div class="topic-metadata">

**Author:** [@Juergen\_Brendel](https://forum.ansible.com/u/Juergen_Brendel)\
**Replies:** 2\
**Last updated:** [March 21, 2014, 1:30pm UTC](https://forum.ansible.com/t/it-is-possible-to-delay-delegate-to-until-remote-server-is-ready/14797 "2014-03-21T13:30:35Z")

</div>

Hello! I have a site.yml file, which includes a ‘frontend.yml’ and a ‘backend.yml’ playbook to configure app servers and database servers. The frontend.yml playbook is applied to the hosts in the “frontend” group, while…

---

## [lineinfile with\_items only updates last line, despite four changed messages](https://forum.ansible.com/t/lineinfile-with-items-only-updates-last-line-despite-four-changed-messages/14796)

<div class="topic-metadata">

**Author:** [@Mark\_Conlin](https://forum.ansible.com/u/Mark_Conlin)\
**Replies:** 2\
**Last updated:** [March 21, 2014, 1:10pm UTC](https://forum.ansible.com/t/lineinfile-with-items-only-updates-last-line-despite-four-changed-messages/14796 "2014-03-21T13:10:47Z")

</div>

I would like to add a few lines to the end of a config file using lineinfile and with\_items. When I run this yaml, I see changed log messages for all four entries (see below). However when I look at the file, only the v…

---

## [Problem accessing variables in nested templates](https://forum.ansible.com/t/problem-accessing-variables-in-nested-templates/14816)

<div class="topic-metadata">

**Author:** [@eoblar](https://forum.ansible.com/u/eoblar)\
**Replies:** 2\
**Last updated:** [March 21, 2014, 12:53pm UTC](https://forum.ansible.com/t/problem-accessing-variables-in-nested-templates/14816 "2014-03-21T12:53:49Z")

</div>

I’m trying to use ansible to generate a file using nested templates, and I’m running into issues with having the variables available to me in the nested templates. I’ll try to explain this concisely. File ./hosts.yml:

---

## [Sudo issues... again](https://forum.ansible.com/t/sudo-issues-again/14812)

<div class="topic-metadata">

**Author:** [@Makimoto\_Marakatti](https://forum.ansible.com/u/Makimoto_Marakatti)\
**Replies:** 10\
**Last updated:** [March 21, 2014, 11:28am UTC](https://forum.ansible.com/t/sudo-issues-again/14812 "2014-03-21T11:28:51Z")

</div>

Hi all I had few sudo issues in the past, and those got solved. Now after updating to latest release (1.5.3) the problem has resurfaced again. My master box has an ansible user. Which connects through ssh certs and has…

---

## [Ansible vagrant - refuses to use vagrant user](https://forum.ansible.com/t/ansible-vagrant-refuses-to-use-vagrant-user/14207)

<div class="topic-metadata">

**Author:** [@bryan\_hunt1](https://forum.ansible.com/u/bryan_hunt1)\
**Replies:** 4\
**Last updated:** [March 21, 2014, 7:32am UTC](https://forum.ansible.com/t/ansible-vagrant-refuses-to-use-vagrant-user/14207 "2014-03-21T07:32:50Z")

</div>

Hi, I have been trying to get Ansible working with Vagrant for a day or two now. Vagrant instances are configured with a sudo enabled user, ‘vagrant’. The auto-generated ssh config does not provide password-less acces…

---

## [Generate documentation (HTML?) for my module.](https://forum.ansible.com/t/generate-documentation-html-for-my-module/13929)

<div class="topic-metadata">

**Author:** [@Kashyap\_Bhatt](https://forum.ansible.com/u/Kashyap_Bhatt)\
**Replies:** 4\
**Last updated:** [March 20, 2014, 6:44pm UTC](https://forum.ansible.com/t/generate-documentation-html-for-my-module/13929 "2014-03-20T18:44:25Z")

</div>

Hi, How do I generate the documentation from the docstrings in my module? Is there some python module available? My module has the required syntax for ansible module documentation. module: xxx short\_description: xxxx …

---

## [Registering service output fails](https://forum.ansible.com/t/registering-service-output-fails/14811)

<div class="topic-metadata">

**Author:** [@Vincent\_Van\_der\_Kuss](https://forum.ansible.com/u/Vincent_Van_der_Kuss)\
**Replies:** 2\
**Last updated:** [March 20, 2014, 1:43pm UTC](https://forum.ansible.com/t/registering-service-output-fails/14811 "2014-03-20T13:43:27Z")

</div>

Hi, I've a playbook where I register the state of a service. I have a task in the same playbook that is executed based on the output of the registered state. Everything works but when the service is stopped the task…

---

## [Abridged summary of ansible-devel@googlegroups.com - 7 Messages in 2 Topics](https://forum.ansible.com/t/abridged-summary-of-ansible-devel-googlegroups-com-7-messages-in-2-topics/14810)

<div class="topic-metadata">

**Author:** [@Kesten\_Broughton2](https://forum.ansible.com/u/Kesten_Broughton2)\
**Replies:** 5\
**Last updated:** [March 20, 2014, 1:32am UTC](https://forum.ansible.com/t/abridged-summary-of-ansible-devel-googlegroups-com-7-messages-in-2-topics/14810 "2014-03-20T01:32:35Z")

</div>

I’m trying to upload my first ansible-galaxy project. I followed the instructions on the About tab. I’m not sure if there is a separate “getting started” doc referred to in the message. Not sure what the problem is. me…

---

## [Single host failes on ansible-playbook](https://forum.ansible.com/t/single-host-failes-on-ansible-playbook/14809)

<div class="topic-metadata">

**Author:** [@Frank\_Schiebel](https://forum.ansible.com/u/Frank_Schiebel)\
**Replies:** 0\
**Last updated:** [March 19, 2014, 8:35pm UTC](https://forum.ansible.com/t/single-host-failes-on-ansible-playbook/14809 "2014-03-19T20:35:15Z")

</div>

Hello! Im new to ansible, and have a problem which i just cannot solve: I use some very simple playbooks to do simple tasks in clasroom management on linux clients (ubuntu). I.e. i use a playbook for shutting them dow…

---

## [lininfile fails on line with colon in it](https://forum.ansible.com/t/lininfile-fails-on-line-with-colon-in-it/12557)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 13\
**Last updated:** [March 19, 2014, 4:27pm UTC](https://forum.ansible.com/t/lininfile-fails-on-line-with-colon-in-it/12557 "2014-03-19T16:27:26Z")

</div>

If there is a colon in a YAML line, it must be quoted. Because you have escaped your starting quote with \\", that doesn't count as a quote, and does not serve to quote the colon. It appears the answer is to not escape…

---

## [How to exclude openvz guests?](https://forum.ansible.com/t/how-to-exclude-openvz-guests/14802)

<div class="topic-metadata">

**Author:** [@Ilya](https://forum.ansible.com/u/Ilya)\
**Replies:** 6\
**Last updated:** [March 19, 2014, 3:47pm UTC](https://forum.ansible.com/t/how-to-exclude-openvz-guests/14802 "2014-03-19T15:47:39Z")

</div>

I want to exclude all openvz guests the task being run. I’ve tried “when: not (ansible\_virtualization\_type == ‘openvz’ and ansible\_virtualization\_role == ‘guest’)” and some variations, but it doesn’t work (“error while e…

---

## [Prevent Module Arguments from Logging](https://forum.ansible.com/t/prevent-module-arguments-from-logging/14779)

<div class="topic-metadata">

**Author:** [@Jason\_Schwanz](https://forum.ansible.com/u/Jason_Schwanz)\
**Replies:** 13\
**Last updated:** [March 19, 2014, 3:07pm UTC](https://forum.ansible.com/t/prevent-module-arguments-from-logging/14779 "2014-03-19T15:07:11Z")

</div>

I’ve started incorporating the capabilities of Vault to encrypt private data (e.g. passphrases), and I want to make sure this data is still secure once I use it in a play. Specifically, I’m looking to develop a module to…

---

## [On replaying notifications after failures](https://forum.ansible.com/t/on-replaying-notifications-after-failures/14782)

<div class="topic-metadata">

**Author:** [@Julio\_Monteiro](https://forum.ansible.com/u/Julio_Monteiro)\
**Replies:** 14\
**Last updated:** [March 19, 2014, 2:55pm UTC](https://forum.ansible.com/t/on-replaying-notifications-after-failures/14782 "2014-03-19T14:55:18Z")

</div>

Hello all, I am curious if/how Ansible plans on solving the “replay notifications” issue. I am having the exact same issue as reported on this StackOverflow question (the author does a great job describing the issue): h…

---

## [Hang issue when use ansible](https://forum.ansible.com/t/hang-issue-when-use-ansible/14804)

<div class="topic-metadata">

**Author:** [@Chunlin\_Zhang](https://forum.ansible.com/u/Chunlin_Zhang)\
**Replies:** 1\
**Last updated:** [March 19, 2014, 12:16pm UTC](https://forum.ansible.com/t/hang-issue-when-use-ansible/14804 "2014-03-19T12:16:46Z")

</div>

More accurate description of my issue is: that is ssh’s issue. Because sometimes I use ssh directly to connect to some linux computer,it also hang.Yes.it just hang,no timeout,no return,I don’t know why,maybe it is somet…

---

## [Best practices for deriving host-level var from a group var?](https://forum.ansible.com/t/best-practices-for-deriving-host-level-var-from-a-group-var/14799)

<div class="topic-metadata">

**Author:** [@Jakub\_Holy](https://forum.ansible.com/u/Jakub_Holy)\
**Replies:** 2\
**Last updated:** [March 19, 2014, 8:04am UTC](https://forum.ansible.com/t/best-practices-for-deriving-host-level-var-from-a-group-var/14799 "2014-03-19T08:04:14Z")

</div>

Hello! I have the following group var in group\_vars/staging: jboss\_master\_host: barad-dur.example.com And I need to set, for each host in a play, its jboss\_host\_type = master | slave based on that variable - the jboss…

---

## [Telnet as a transport mechanism?](https://forum.ansible.com/t/telnet-as-a-transport-mechanism/14801)

<div class="topic-metadata">

**Author:** [@Will\_McLendon](https://forum.ansible.com/u/Will_McLendon)\
**Replies:** 1\
**Last updated:** [March 18, 2014, 9:01pm UTC](https://forum.ansible.com/t/telnet-as-a-transport-mechanism/14801 "2014-03-18T21:01:11Z")

</div>

Greetings all, Not sure if this is the appropriate place for a feature request, but here goes – in my searching it does not look like telnet is an available transport method in Ansible – would it be possible to get it …

---

## [Contemplating a URI Module](https://forum.ansible.com/t/contemplating-a-uri-module/12292)

<div class="topic-metadata">

**Author:** [@Romeo\_Theriault](https://forum.ansible.com/u/Romeo_Theriault)\
**Replies:** 20\
**Last updated:** [March 18, 2014, 8:48pm UTC](https://forum.ansible.com/t/contemplating-a-uri-module/12292 "2014-03-18T20:48:36Z")

</div>

So, I’ve been thinking about creating a general purpose http client URI/URL module for ansible; allowing ansible to interact with web services. Some example use cases I’ve thought of: Create a JIRA ticket on some condi…

---

## [group\_vars appear to be skipped for implicit localhost when using inventory plugin](https://forum.ansible.com/t/group-vars-appear-to-be-skipped-for-implicit-localhost-when-using-inventory-plugin/14800)

<div class="topic-metadata">

**Author:** [@Mark\_Casey](https://forum.ansible.com/u/Mark_Casey)\
**Replies:** 3\
**Last updated:** [March 18, 2014, 8:07pm UTC](https://forum.ansible.com/t/group-vars-appear-to-be-skipped-for-implicit-localhost-when-using-inventory-plugin/14800 "2014-03-18T20:07:36Z")

</div>

Hello list, I think I’m seeing “group\_vars/all” get skipped for implicit localhost when using the ec2.py inventory script. I’ve tried writing a few simplified example plays but they all worked, so I’m either missing som…

---

## [ec2 module works...ec2.py does not (confused!)](https://forum.ansible.com/t/ec2-module-works-ec2-py-does-not-confused/14333)

<div class="topic-metadata">

**Author:** [@Mark\_Casey](https://forum.ansible.com/u/Mark_Casey)\
**Replies:** 10\
**Last updated:** [March 18, 2014, 8:02pm UTC](https://forum.ansible.com/t/ec2-module-works-ec2-py-does-not-confused/14333 "2014-03-18T20:02:47Z")

</div>

I have a role that uses the ec2 module and it is working fine, so I’m assuming I’m ok on dependencies like boto… but when I try to run ec2.py --list I get back: root@ip-1-1-1-1:/etc/ansible/elastirax# ./ec2.py --list …

---

## [Variable ansible\_python\_interpreter ignored?](https://forum.ansible.com/t/variable-ansible-python-interpreter-ignored/14692)

<div class="topic-metadata">

**Author:** [@Marco\_Corte](https://forum.ansible.com/u/Marco_Corte)\
**Replies:** 7\
**Last updated:** [March 18, 2014, 6:52pm UTC](https://forum.ansible.com/t/variable-ansible-python-interpreter-ignored/14692 "2014-03-18T18:52:17Z")

</div>

Hi all. I am very new to Ansible and installed version 1.5 yesterday on Arch Linux using the package provided by the distribution. I started trying to connect to a solaris node that has /usr/bin/python, I tried to set …

---

## [Inventory groups with same hosts but differnts ansible\_ssh\_user](https://forum.ansible.com/t/inventory-groups-with-same-hosts-but-differnts-ansible-ssh-user/14798)

<div class="topic-metadata">

**Author:** [@Herve\_Leclerc](https://forum.ansible.com/u/Herve_Leclerc)\
**Replies:** 1\
**Last updated:** [March 18, 2014, 9:01am UTC](https://forum.ansible.com/t/inventory-groups-with-same-hosts-but-differnts-ansible-ssh-user/14798 "2014-03-18T09:01:13Z")

</div>

hello, Here is a sample inventory that i want to use \[paadadm\] machine1 ansible\_ssh\_user=admin comment=“Sandbox Admin Node” \[paadsrvwbsa\] machine1 ansible\_ssh\_user=doe comment=“Sandbox Node A” \[paadsrvwbsb\] machin…

---

## [gce module problems](https://forum.ansible.com/t/gce-module-problems/14510)

<div class="topic-metadata">

**Author:** [@Warren\_Strange](https://forum.ansible.com/u/Warren_Strange)\
**Replies:** 6\
**Last updated:** [March 18, 2014, 2:46am UTC](https://forum.ansible.com/t/gce-module-problems/14510 "2014-03-18T02:46:06Z")

</div>

I am running into a problem the gce module. I suspect it has something to do with my environment. Any tips to further troubleshoot this would be welcome. I am running ansible from git (as of a couple of days ago), and u…

---

## [keystone\_user questions](https://forum.ansible.com/t/keystone-user-questions/14795)

<div class="topic-metadata">

**Author:** [@Kesten\_Broughton2](https://forum.ansible.com/u/Kesten_Broughton2)\
**Replies:** 1\
**Last updated:** [March 17, 2014, 9:36pm UTC](https://forum.ansible.com/t/keystone-user-questions/14795 "2014-03-17T21:36:21Z")

</div>

I am able to connect to my openstack private cloud directly using pyrax. I have ~/.pyrax.cfg and ~/.pyrax.creds to accomplish this. Now i'm trying to get it working via ansible. In the docs, it's not clear how the ex…

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

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