# Latest

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

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

**Page:** 1087

---

## [Get host name from inventory on remote host?](https://forum.ansible.com/t/get-host-name-from-inventory-on-remote-host/11486)

<div class="topic-metadata">

**Author:** [@seanosh](https://forum.ansible.com/u/seanosh)\
**Replies:** 4\
**Last updated:** [May 2, 2012, 7:56am UTC](https://forum.ansible.com/t/get-host-name-from-inventory-on-remote-host/11486 "2012-05-02T07:56:18Z")

</div>

Was wondering if there's a way to get the hostname I've specified in my inventory available as a var for use in a template on the remote host? Would be useful for setting the hostname properly of a new server that may…

---

## [Reading the SSH config file discussion (devel branch)](https://forum.ansible.com/t/reading-the-ssh-config-file-discussion-devel-branch/11450)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 17\
**Last updated:** [May 2, 2012, 2:44am UTC](https://forum.ansible.com/t/reading-the-ssh-config-file-discussion-devel-branch/11450 "2012-05-02T02:44:36Z")

</div>

Hi... So we have some new code on the devel branch that reads the SSH config file to augment data that is coming from the ansible host file or the playbook config. This is pretty nice stuff but I think we should dis…

---

## [with\_items -- from var](https://forum.ansible.com/t/with-items-from-var/11485)

<div class="topic-metadata">

**Author:** [@Matthew\_Williams](https://forum.ansible.com/u/Matthew_Williams)\
**Replies:** 8\
**Last updated:** [May 2, 2012, 2:37am UTC](https://forum.ansible.com/t/with-items-from-var/11485 "2012-05-02T02:37:26Z")

</div>

Earlier today I brought up on IRC a question about with\_items taking a var list (rather than literal). It doesn’t sound like this is a desirable feature, so I’m turning to the list to ask for suggestions. I need to pass…

---

## [module structure](https://forum.ansible.com/t/module-structure/11484)

<div class="topic-metadata">

**Author:** [@Matthew\_Williams](https://forum.ansible.com/u/Matthew_Williams)\
**Replies:** 5\
**Last updated:** [May 2, 2012, 12:19am UTC](https://forum.ansible.com/t/module-structure/11484 "2012-05-02T00:19:04Z")

</div>

I’d like to (again) propose a (backwards compatible) improvement to the module structure, namely a .d directory, e.g., copy copy.d copy.d would contain advanced usage scripts, such as pre.hook & post.hook (or hooks/pr…

---

## [Today's pushed code summary](https://forum.ansible.com/t/todays-pushed-code-summary/11482)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 1\
**Last updated:** [May 1, 2012, 11:07pm UTC](https://forum.ansible.com/t/todays-pushed-code-summary/11482 "2012-05-01T23:07:54Z")

</div>

New things from today on devel. Async code has been upraded to better kill processes that time out, testing welcome Service module can now take an enable=yes, enable=no flag for chkconfig File module contains a symli…

---

## [Automation Scripts:Handling User Prompts (Similar to expect)](https://forum.ansible.com/t/automation-scripts-handling-user-prompts-similar-to-expect/11481)

<div class="topic-metadata">

**Author:** [@Kumar3](https://forum.ansible.com/u/Kumar3)\
**Replies:** 1\
**Last updated:** [May 1, 2012, 8:59pm UTC](https://forum.ansible.com/t/automation-scripts-handling-user-prompts-similar-to-expect/11481 "2012-05-01T20:59:13Z")

</div>

Hi: I would like to know how we could handle user prompts in ansible ? I am expecting similar feature supported by "expect" or "pexpect", where we can automate the whole process by preconfiguring the script to hand…

---

## [Possibility to see stdout of a shell command?](https://forum.ansible.com/t/possibility-to-see-stdout-of-a-shell-command/11471)

<div class="topic-metadata">

**Author:** [@Frank](https://forum.ansible.com/u/Frank)\
**Replies:** 6\
**Last updated:** [May 1, 2012, 6:04pm UTC](https://forum.ansible.com/t/possibility-to-see-stdout-of-a-shell-command/11471 "2012-05-01T18:04:23Z")

</div>

Hi, is there a possibility to see stadout in addition to stderr of a shell command executed as part of a playbook? Frank

---

## [Ansible playbook for ganglia (on CentOS)](https://forum.ansible.com/t/ansible-playbook-for-ganglia-on-centos/11478)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [May 1, 2012, 12:36pm UTC](https://forum.ansible.com/t/ansible-playbook-for-ganglia-on-centos/11478 "2012-05-01T12:36:58Z")

</div>

Not sure if I brought this up directly before, but this was linked in the highscalability.com article: https://github.com/mpdehaan/ansible-examples It definitely would require adjustment for your environment as the Gan…

---

## [nginx playbook for Debian/Ubuntu](https://forum.ansible.com/t/nginx-playbook-for-debian-ubuntu/11477)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [May 1, 2012, 12:33pm UTC](https://forum.ansible.com/t/nginx-playbook-for-debian-ubuntu/11477 "2012-05-01T12:33:19Z")

</div>

Thanks to Rodney Quillo for writing this: http://www.capsunlock.net/2012/04/ansible-nginx-playbook.html (Rodney, if you have this on github, I can include it in the contrib repo as a git submodule, just let me know the…

---

## [Slow operations with Ansible](https://forum.ansible.com/t/slow-operations-with-ansible/11475)

<div class="topic-metadata">

**Author:** [@Jose\_R](https://forum.ansible.com/u/Jose_R)\
**Replies:** 1\
**Last updated:** [May 1, 2012, 12:18pm UTC](https://forum.ansible.com/t/slow-operations-with-ansible/11475 "2012-05-01T12:18:45Z")

</div>

Hello, I'm doing some basic commands: mkdir, chmod, copy, etc... and most of the commands run slowly. Is there a way to speed things up? If it requires code changes that need to be implemented, what possible strateg…

---

## [Ansible bootsraping itself in 0.4](https://forum.ansible.com/t/ansible-bootsraping-itself-in-0-4/11473)

<div class="topic-metadata">

**Author:** [@Suraj\_Gupta](https://forum.ansible.com/u/Suraj_Gupta)\
**Replies:** 2\
**Last updated:** [April 30, 2012, 7:49pm UTC](https://forum.ansible.com/t/ansible-bootsraping-itself-in-0-4/11473 "2012-04-30T19:49:47Z")

</div>

On the Ansible Getting Started section I see "Ansible 0.4 will have ways to remote bootstrap this, using Ansible itself " Is that feature already in Devel? I didn’t see an open bug for this. If so, where I can I find mo…

---

## [can't get local connection to work](https://forum.ansible.com/t/cant-get-local-connection-to-work/11469)

<div class="topic-metadata">

**Author:** [@Suraj\_Gupta](https://forum.ansible.com/u/Suraj_Gupta)\
**Replies:** 2\
**Last updated:** [April 30, 2012, 7:19pm UTC](https://forum.ansible.com/t/cant-get-local-connection-to-work/11469 "2012-04-30T19:19:11Z")

</div>

Hi! I’m eager to try Ansible, but hit a wall when trying to use a local connection. I’m on fresh install of Ubuntu Precise beta2. I cloned the repo, manually installed the 3 required packages, and called “sudo make inst…

---

## [Structure of role-base configuration of hosts](https://forum.ansible.com/t/structure-of-role-base-configuration-of-hosts/11472)

<div class="topic-metadata">

**Author:** [@Frank](https://forum.ansible.com/u/Frank)\
**Replies:** 4\
**Last updated:** [April 30, 2012, 7:04pm UTC](https://forum.ansible.com/t/structure-of-role-base-configuration-of-hosts/11472 "2012-04-30T19:04:32Z")

</div>

Hi, I really like the idea of role-base configuration of hosts. What do I mean with this? A role means to me e.g. "database-server", "app- server", "web-server". Depending on the environment (test or production) I wo…

---

## [Evaluation of (Python) expressions only in "only\_if" and not in "vars" section of a playbook?](https://forum.ansible.com/t/evaluation-of-python-expressions-only-in-only-if-and-not-in-vars-section-of-a-playbook/11470)

<div class="topic-metadata">

**Author:** [@Frank](https://forum.ansible.com/u/Frank)\
**Replies:** 3\
**Last updated:** [April 30, 2012, 6:39pm UTC](https://forum.ansible.com/t/evaluation-of-python-expressions-only-in-only-if-and-not-in-vars-section-of-a-playbook/11470 "2012-04-30T18:39:48Z")

</div>

Hi, I'm playing around with Ansible for few hours - it is very interesting (and feature list is exactly what I was looking for), but it seams to be a bit inflexible to me. Maybe, I just don't understand the concepts …

---

## [TypeError when using include](https://forum.ansible.com/t/typeerror-when-using-include/11455)

<div class="topic-metadata">

**Author:** [@Duy\_Thang](https://forum.ansible.com/u/Duy_Thang)\
**Replies:** 3\
**Last updated:** [April 30, 2012, 9:32am UTC](https://forum.ansible.com/t/typeerror-when-using-include/11455 "2012-04-30T09:32:27Z")

</div>

Hi, I’m newbie to ansible, and I have a problem when using include feature. I had a search in google and in mailinglist but cant find anything useful. This is my playbook.yml file: hosts: mailservice vars: userdi…

---

## [Optimization - Issue 263](https://forum.ansible.com/t/optimization-issue-263/11468)

<div class="topic-metadata">

**Author:** [@Matthew\_Williams](https://forum.ansible.com/u/Matthew_Williams)\
**Replies:** 4\
**Last updated:** [April 30, 2012, 2:32am UTC](https://forum.ansible.com/t/optimization-issue-263/11468 "2012-04-30T02:32:32Z")

</div>

I have opened ticket 263 (https://github.com/ansible/ansible/issues/263) to track nice to have optimizations. I had originally thought tarring/untarring files to upload would offer some nice speedups. After spending som…

---

## ['group\_names' now available as a variable in templates](https://forum.ansible.com/t/group-names-now-available-as-a-variable-in-templates/11467)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [April 28, 2012, 9:42pm UTC](https://forum.ansible.com/t/group-names-now-available-as-a-variable-in-templates/11467 "2012-04-28T21:42:50Z")

</div>

On the devel branch, you can now do clever things in templates like this thanks to a patch from Jeroen Hoekx: {% if 'oracle' in group\_names %} This is an oracle node {% else %} This is not oracle {% endif %} This m…

---

## [Added tweet/like/+1 buttons to the website](https://forum.ansible.com/t/added-tweet-like-1-buttons-to-the-website/11466)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [April 28, 2012, 3:52pm UTC](https://forum.ansible.com/t/added-tweet-like-1-buttons-to-the-website/11466 "2012-04-28T15:52:37Z")

</div>

If you like ansible and want to help out it’s quest for world domination some, I’ve added some Google +1, Twitter, and Like buttons to the bottom of each page. http://ansible.github.com/ Also, thanks for everyone who’s…

---

## [Sudo clarification, and what it means for DEBUG and -D](https://forum.ansible.com/t/sudo-clarification-and-what-it-means-for-debug-and-d/11465)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [April 28, 2012, 1:26pm UTC](https://forum.ansible.com/t/sudo-clarification-and-what-it-means-for-debug-and-d/11465 "2012-04-28T13:26:14Z")

</div>

Per paramiko docs: Only channels using exec\_command or invoke\_shell WITHOUT a pty will ever have data on the stderr stream. This means modules can’t output things to stderr, more or less. If a module does return somethi…

---

## [\[devel\] playbooks can now take a name](https://forum.ansible.com/t/devel-playbooks-can-now-take-a-name/11464)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [April 28, 2012, 12:59pm UTC](https://forum.ansible.com/t/devel-playbooks-can-now-take-a-name/11464 "2012-04-28T12:59:43Z")

</div>

By popular request, playbooks can now take a “name:” parameter, on the same level with “hosts:” This name will show up when announcing the play, instead, if provided. I think this is much nicer in terms of understandin…

---

## [\[devel\] sudo changes FYI](https://forum.ansible.com/t/devel-sudo-changes-fyi/11463)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [April 28, 2012, 12:58pm UTC](https://forum.ansible.com/t/devel-sudo-changes-fyi/11463 "2012-04-28T12:58:47Z")

</div>

Various code contributed to “upgrade” sudo ended up breaking the ability to of a module to return debug on -D, which in turn breaks any module that returns stderr information. This is not something I noticed earlier bec…

---

## [Selectively importing files based on variables (first\_available\_file)](https://forum.ansible.com/t/selectively-importing-files-based-on-variables-first-available-file/11462)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [April 28, 2012, 2:33am UTC](https://forum.ansible.com/t/selectively-importing-files-based-on-variables-first-available-file/11462 "2012-04-28T02:33:02Z")

</div>

Seth Vidal provided a very nice patch that allows us to conditionally pick a different source for a file based on an ansible, facter, or ohai fact. This is admittedly an advanced sort of thing, but I think it'll be …

---

## [Playbook's --extra-vars reinstated on the devel branch](https://forum.ansible.com/t/playbooks-extra-vars-reinstated-on-the-devel-branch/11461)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 5\
**Last updated:** [April 27, 2012, 6:11pm UTC](https://forum.ansible.com/t/playbooks-extra-vars-reinstated-on-the-devel-branch/11461 "2012-04-27T18:11:19Z")

</div>

Back by popular demand, a much simpler implementation of --extra-vars This allows things like: ansible-playbook release-any-version-of-my-app.yml --extra-vars="version=123 favcolor=red" And to be able to use those …

---

## [ssh setup questions](https://forum.ansible.com/t/ssh-setup-questions/11435)

<div class="topic-metadata">

**Author:** [@Matt\_Coddington](https://forum.ansible.com/u/Matt_Coddington)\
**Replies:** 15\
**Last updated:** [April 27, 2012, 12:06pm UTC](https://forum.ansible.com/t/ssh-setup-questions/11435 "2012-04-27T12:06:28Z")

</div>

Hi all, I'm just getting started with ansible and have a need to run my client's ssh daemon on a different port (let's say 222). I tried this against master and integration branches. It looked like i could just edi…

---

## [More sudo upgrades](https://forum.ansible.com/t/more-sudo-upgrades/11460)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [April 26, 2012, 11:24pm UTC](https://forum.ansible.com/t/more-sudo-upgrades/11460 "2012-04-26T23:24:51Z")

</div>

Per https://github.com/ansible/ansible/pull/250 there are more sudo changes to test on the devel branch that should be a LOT more robust. Each sudo upgrade builds on the next, so thanks for everyone who has beat on it…

---

## [Variable Import Question](https://forum.ansible.com/t/variable-import-question/11458)

<div class="topic-metadata">

**Author:** [@Dave\_Coutu](https://forum.ansible.com/u/Dave_Coutu)\
**Replies:** 4\
**Last updated:** [April 26, 2012, 10:49pm UTC](https://forum.ansible.com/t/variable-import-question/11458 "2012-04-26T22:49:15Z")

</div>

Hey Folks, So in a simple test playbook I am playing with that only plays against 1 host, I do 2 vars\_files imports. When I run the playbook (from the devel branch pulled a day ago), I get an unexpected behavior that se…

---

## [vars\_prompt issues](https://forum.ansible.com/t/vars-prompt-issues/11459)

<div class="topic-metadata">

**Author:** [@Dave\_Coutu](https://forum.ansible.com/u/Dave_Coutu)\
**Replies:** 7\
**Last updated:** [April 26, 2012, 10:36pm UTC](https://forum.ansible.com/t/vars-prompt-issues/11459 "2012-04-26T22:36:03Z")

</div>

Hey Folks, Running into some odd behavior (currently on the devel branch) with vars\_prompt. What I am seeing are 2 things. I get no console echo when inputting the variables that I prompt for. I can’t remember if we d…

---

## ["Cumulative" vars](https://forum.ansible.com/t/cumulative-vars/11446)

<div class="topic-metadata">

**Author:** [@Michel\_Blanc1](https://forum.ansible.com/u/Michel_Blanc1)\
**Replies:** 2\
**Last updated:** [April 26, 2012, 12:23pm UTC](https://forum.ansible.com/t/cumulative-vars/11446 "2012-04-26T12:23:34Z")

</div>

Dear all, Currently, it is possible to have compount vars, where, for instance, a var contains an array like this : - group: base hosts: - all vars: somme\_array\_var: - "foo" - "bar" Howeve…

---

## [Ok, restarting this contrib repo thing… need your repos!](https://forum.ansible.com/t/ok-restarting-this-contrib-repo-thing-need-your-repos/11456)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [April 26, 2012, 12:17pm UTC](https://forum.ansible.com/t/ok-restarting-this-contrib-repo-thing-need-your-repos/11456 "2012-04-26T12:17:43Z")

</div>

Email me URLs to github projects containing your personal ansible example content (play books, modules, scripts), and I will link them up in a contrib repo using git submodules so everybody can find them. I think it wou…

---

## ["Raw" module discussion](https://forum.ansible.com/t/raw-module-discussion/11451)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 1\
**Last updated:** [April 26, 2012, 12:11pm UTC](https://forum.ansible.com/t/raw-module-discussion/11451 "2012-04-26T12:11:13Z")

</div>

Suppose you have some old hosts that don't have python-simplejson on them yet, and no Python 2.6, so no built in JSON. Wouldn't it be nice to install those things with /usr/bin/ansible? Here's a pull request that I or…

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

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