# Latest

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

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

**Page:** 1052

---

## [Congratulations Jim Richardson - winner of the AnsibleWorks Survey Drawing!](https://forum.ansible.com/t/congratulations-jim-richardson-winner-of-the-ansibleworks-survey-drawing/12613)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 4\
**Last updated:** [April 2, 2013, 1:06am UTC](https://forum.ansible.com/t/congratulations-jim-richardson-winner-of-the-ansibleworks-survey-drawing/12613 "2013-04-02T01:06:01Z")

</div>

Jim is the lucky winner of the iPad mini giveway for taking the survey. A huge thanks to everyone who responded for providing lots of valuable information about what you are looking for in automation tooling.

---

## [delegate\_to on included tasks?](https://forum.ansible.com/t/delegate-to-on-included-tasks/12513)

<div class="topic-metadata">

**Author:** [@Asad\_Khan](https://forum.ansible.com/u/Asad_Khan)\
**Replies:** 5\
**Last updated:** [April 1, 2013, 2:24pm UTC](https://forum.ansible.com/t/delegate-to-on-included-tasks/12513 "2013-04-01T14:24:17Z")

</div>

I have a sequence of actions that I’ve encapsulated in a task, and that in some use-cases I need to run on a remote server. Rather than duplicating the task, I’m going to try: put a delegate\_to: ${target} on each acti…

---

## [connection refused to "localhost" with paramiko](https://forum.ansible.com/t/connection-refused-to-localhost-with-paramiko/12610)

<div class="topic-metadata">

**Author:** [@Lorin\_Hochstein1](https://forum.ansible.com/u/Lorin_Hochstein1)\
**Replies:** 2\
**Last updated:** [April 1, 2013, 1:48pm UTC](https://forum.ansible.com/t/connection-refused-to-localhost-with-paramiko/12610 "2013-04-01T13:48:04Z")

</div>

I ran into a strange issue with the paramiko tranpsort today. I launched a vagrant instance on my local machine (ssh port defaults to 2222). I created a hosts file that looks like this: vagrant ansible\_ssh\_port=2222 an…

---

## [Ansible modules documentation](https://forum.ansible.com/t/ansible-modules-documentation/12604)

<div class="topic-metadata">

**Author:** [@Marco\_Vito\_Moscarito](https://forum.ansible.com/u/Marco_Vito_Moscarito)\
**Replies:** 5\
**Last updated:** [April 1, 2013, 12:56pm UTC](https://forum.ansible.com/t/ansible-modules-documentation/12604 "2013-04-01T12:56:39Z")

</div>

Hi guy, I'm working on automatic docs generator for Ansible (HTML, e-pub, HTML, ..), but I find some "inconsistencies", before start to fix it and send pull request I ask to you what do you think about change propo…

---

## [playbook YAML hash for module flags](https://forum.ansible.com/t/playbook-yaml-hash-for-module-flags/12609)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 2\
**Last updated:** [April 1, 2013, 12:54pm UTC](https://forum.ansible.com/t/playbook-yaml-hash-for-module-flags/12609 "2013-04-01T12:54:21Z")

</div>

Looks like you are indenting too much. name: “creating a config file from a rendered template” template: dest: /tmp/foobar.conf group: bar mode: 493 owner: foo src: /home/vagrant/ansible-templates/foobar.j2 Work…

---

## [Adding "all" to group\_vars examples in ansible documentation](https://forum.ansible.com/t/adding-all-to-group-vars-examples-in-ansible-documentation/12611)

<div class="topic-metadata">

**Author:** [@Jaime\_Gago1](https://forum.ansible.com/u/Jaime_Gago1)\
**Replies:** 1\
**Last updated:** [April 1, 2013, 12:53pm UTC](https://forum.ansible.com/t/adding-all-to-group-vars-examples-in-ansible-documentation/12611 "2013-04-01T12:53:26Z")

</div>

If I may, in the doc about group\_vars (1) the "all" option to have vars for all hosts is not referenced, I understand from the non-newbie perspective this is quite implicit, from the newbie perspective though it didn't s…

---

## [ansible-playbook --check](https://forum.ansible.com/t/ansible-playbook-check/12593)

<div class="topic-metadata">

**Author:** [@Oleg\_A\_Mamontov](https://forum.ansible.com/u/Oleg_A_Mamontov)\
**Replies:** 7\
**Last updated:** [March 31, 2013, 8:30pm UTC](https://forum.ansible.com/t/ansible-playbook-check/12593 "2013-03-31T20:30:33Z")

</div>

Hello! In one of playbooks i have template action with: 'owner=pgsql group=pgsql mode=0400'. Playbook has 'sudo: yes' declared and work properly. But ansible-playbook called with '--check --diff' can't diff file, i …

---

## [Travis for Ansible](https://forum.ansible.com/t/travis-for-ansible/12607)

<div class="topic-metadata">

**Author:** [@Tin\_Tvrtkovic](https://forum.ansible.com/u/Tin_Tvrtkovic)\
**Replies:** 4\
**Last updated:** [March 31, 2013, 2:18pm UTC](https://forum.ansible.com/t/travis-for-ansible/12607 "2013-03-31T14:18:34Z")

</div>

Hey guys, it occured to me it might be interesting to set up Travis for Ansible. Travis is a (free) continuous integration service for open source projects. Without getting too much into technical details, when set up …

---

## [Is there a way to use same IP for different host groups?](https://forum.ansible.com/t/is-there-a-way-to-use-same-ip-for-different-host-groups/12606)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [March 30, 2013, 4:27pm UTC](https://forum.ansible.com/t/is-there-a-way-to-use-same-ip-for-different-host-groups/12606 "2013-03-30T16:27:08Z")

</div>

This has nothing to do with groups of hosts, actually, but everything to do with hosts. Example: alias1 ansible\_ssh\_host=portal ansible\_ssh\_port=1000 alias2 ansible\_ssh\_host=portal ansible\_ssh\_port=1001 and can also…

---

## [Is there a way to use same IP for different host groups?](https://forum.ansible.com/t/is-there-a-way-to-use-same-ip-for-different-host-groups/12605)

<div class="topic-metadata">

**Author:** [@CWS](https://forum.ansible.com/u/CWS)\
**Replies:** 0\
**Last updated:** [March 30, 2013, 4:27pm UTC](https://forum.ansible.com/t/is-there-a-way-to-use-same-ip-for-different-host-groups/12605 "2013-03-30T16:27:00Z")

</div>

Use a hostname alias

---

## [Paths relative to tasks](https://forum.ansible.com/t/paths-relative-to-tasks/12603)

<div class="topic-metadata">

**Author:** [@matt](https://forum.ansible.com/u/matt)\
**Replies:** 0\
**Last updated:** [March 30, 2013, 11:00am UTC](https://forum.ansible.com/t/paths-relative-to-tasks/12603 "2013-03-30T11:00:46Z")

</div>

I’ve been making quite liberal use of tasks to encourage re use. These tasks then get used in variety of playbooks. I’ve had to take great care in keeping all playbooks at the same level so the relative pathing works whe…

---

## [Parameterised task vars - default values](https://forum.ansible.com/t/parameterised-task-vars-default-values/12584)

<div class="topic-metadata">

**Author:** [@matt](https://forum.ansible.com/u/matt)\
**Replies:** 4\
**Last updated:** [March 30, 2013, 10:45am UTC](https://forum.ansible.com/t/parameterised-task-vars-default-values/12584 "2013-03-30T10:45:32Z")

</div>

Hi, Is it possible to assign default values to parameters passed to tasks with having to assign them at playbook level or other lower precedence levels? e.g. for:

---

## [ip aliases inside a template](https://forum.ansible.com/t/ip-aliases-inside-a-template/12189)

<div class="topic-metadata">

**Author:** [@tomdymond](https://forum.ansible.com/u/tomdymond)\
**Replies:** 1\
**Last updated:** [March 30, 2013, 1:30am UTC](https://forum.ansible.com/t/ip-aliases-inside-a-template/12189 "2013-03-30T01:30:08Z")

</div>

Hi, I fixed this by using: hostvars\[inventory\_hostname\]\[‘ansible\_bond1:0’\]\[‘ipv4’\]\[‘address’\] Cheers Tom

---

## [Limited Selected Hosts](https://forum.ansible.com/t/limited-selected-hosts/12601)

<div class="topic-metadata">

**Author:** [@lars\_svenson](https://forum.ansible.com/u/lars_svenson)\
**Replies:** 2\
**Last updated:** [March 29, 2013, 1:04pm UTC](https://forum.ansible.com/t/limited-selected-hosts/12601 "2013-03-29T13:04:21Z")

</div>

Hey people, today I ran the following ansible line: “ansible all:webserver -m command -a “sudo aptitude safe-upgrade -y””. For sure webserver is a group defined in the /etc/hosts. But it updated all machines. Am I righ…

---

## [How to set sudo with variable?](https://forum.ansible.com/t/how-to-set-sudo-with-variable/12539)

<div class="topic-metadata">

**Author:** [@rella.guo](https://forum.ansible.com/u/rella.guo)\
**Replies:** 11\
**Last updated:** [March 29, 2013, 10:19am UTC](https://forum.ansible.com/t/how-to-set-sudo-with-variable/12539 "2013-03-29T10:19:43Z")

</div>

In my playbook, I want to use variable values to set hosts, user and sudo. Just like this: hosts: $webserver user: $user sudo: $sudo\_mode I can use extra variables to set hosts and user, but sudo failed whatever I us…

---

## [Using multiple vars\_files](https://forum.ansible.com/t/using-multiple-vars-files/12597)

<div class="topic-metadata">

**Author:** [@Mathieu\_Guillaume](https://forum.ansible.com/u/Mathieu_Guillaume)\
**Replies:** 1\
**Last updated:** [March 28, 2013, 11:08pm UTC](https://forum.ansible.com/t/using-multiple-vars-files/12597 "2013-03-28T23:08:05Z")

</div>

I want to read from multiple vars\_files in a playbook. Using a list of lists works, but I’m wondering if it’s actually intended or if I’m just lucky due do how it’s coded. Example: vars\_files: vars/myapp/defaults …

---

## [Ansible book](https://forum.ansible.com/t/ansible-book/12600)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [March 28, 2013, 11:04pm UTC](https://forum.ansible.com/t/ansible-book/12600 "2013-03-28T23:04:56Z")

</div>

Not to my knowledge. I think in general tech docs go out of date pretty quick, so we prefer to collaborate around the central documentation where we can. A book would be awesome to see though, but would always be behi…

---

## [Custom python module not working](https://forum.ansible.com/t/custom-python-module-not-working/12599)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [March 28, 2013, 6:00pm UTC](https://forum.ansible.com/t/custom-python-module-not-working/12599 "2013-03-28T18:00:10Z")

</div>

Hi, I would recommend you use the ./hacking/test-module script as you develop your module to work out any errors you may be getting.

---

## [any thought about docker?](https://forum.ansible.com/t/any-thought-about-docker/12598)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [March 28, 2013, 5:55pm UTC](https://forum.ansible.com/t/any-thought-about-docker/12598 "2013-03-28T17:55:30Z")

</div>

Lorin was suggesting an Ansible transport on twitter. This might be interesting.

---

## [Adding vars\_files to include](https://forum.ansible.com/t/adding-vars-files-to-include/12586)

<div class="topic-metadata">

**Author:** [@Mathieu\_Guillaume](https://forum.ansible.com/u/Mathieu_Guillaume)\
**Replies:** 11\
**Last updated:** [March 28, 2013, 1:09am UTC](https://forum.ansible.com/t/adding-vars-files-to-include/12586 "2013-03-28T01:09:08Z")

</div>

Hello list, Id like to add the functionality to specify vars\_files statements to “include” so we could use vars\_files that depend on $item (with the understanding that since includes are “unrolled” when the task list is…

---

## [Copy module regular expression](https://forum.ansible.com/t/copy-module-regular-expression/12596)

<div class="topic-metadata">

**Author:** [@Kavin](https://forum.ansible.com/u/Kavin)\
**Replies:** 3\
**Last updated:** [March 27, 2013, 10:54pm UTC](https://forum.ansible.com/t/copy-module-regular-expression/12596 "2013-03-27T22:54:08Z")

</div>

Hi, Is it possible in copy module to select the source by regular expression, e.g : copy: src=/mnt/release/$build/prod dest=/var/www/web/ This will just regular expression will pick just 1 file. and move it. If not …

---

## [Where to find Ansible related variables?](https://forum.ansible.com/t/where-to-find-ansible-related-variables/12595)

<div class="topic-metadata">

**Author:** [@Steven\_Truong](https://forum.ansible.com/u/Steven_Truong)\
**Replies:** 5\
**Last updated:** [March 27, 2013, 10:10pm UTC](https://forum.ansible.com/t/where-to-find-ansible-related-variables/12595 "2013-03-27T22:10:33Z")

</div>

Hi all, I would like to know where can I find all the related Ansible variables such as ansible\_python\_interpreter and ANSIBLE\_\* ? Please excuse me for my ignorance and low google skills but I could not seem to locate …

---

## [Action plugins.](https://forum.ansible.com/t/action-plugins/12594)

<div class="topic-metadata">

**Author:** [@C\_Morgan\_Hamill](https://forum.ansible.com/u/C_Morgan_Hamill)\
**Replies:** 4\
**Last updated:** [March 27, 2013, 6:47pm UTC](https://forum.ansible.com/t/action-plugins/12594 "2013-03-27T18:47:47Z")

</div>

A quick question: Is it possible for a user-made action plugin to be called with the shorthand task syntax (module: arg=argval ...)? The built-in action plugins (like fail, debug, etc.) are able to be called this way…

---

## [vars /etc/ansible/hosts](https://forum.ansible.com/t/vars-etc-ansible-hosts/12592)

<div class="topic-metadata">

**Author:** [@Dmytro\_Polushyn](https://forum.ansible.com/u/Dmytro_Polushyn)\
**Replies:** 1\
**Last updated:** [March 27, 2013, 12:51pm UTC](https://forum.ansible.com/t/vars-etc-ansible-hosts/12592 "2013-03-27T12:51:45Z")

</div>

Yes, I know, if you think that this logic is right, ok But what do you think about this? https://gist.github.com/ovad/5252769 user oko1 has not been created on the host 10.132.219.68. Yes, I can declare my values in …

---

## [Referencing paths inside roles](https://forum.ansible.com/t/referencing-paths-inside-roles/12580)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 10\
**Last updated:** [March 27, 2013, 12:49pm UTC](https://forum.ansible.com/t/referencing-paths-inside-roles/12580 "2013-03-27T12:49:37Z")

</div>

The ansible best pracitces content currently is using "../" I strongly dislike any notion of new syntax, and because your playbooks might be run at different levels, some notion of a variable named "$base" does not ma…

---

## [vars /etc/ansible/hosts](https://forum.ansible.com/t/vars-etc-ansible-hosts/12591)

<div class="topic-metadata">

**Author:** [@Dmytro\_Polushyn](https://forum.ansible.com/u/Dmytro_Polushyn)\
**Replies:** 1\
**Last updated:** [March 27, 2013, 8:35am UTC](https://forum.ansible.com/t/vars-etc-ansible-hosts/12591 "2013-03-27T08:35:26Z")

</div>

Michael, Thank you for your answer. I have attached the files - https://gist.github.com/anonymous/5252645 Actually, I do not know is this a problem or not. But when I do the the following in the inventory file (/etc/a…

---

## [Arguments passed to OpenSSH too intrusive.](https://forum.ansible.com/t/arguments-passed-to-openssh-too-intrusive/12588)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 3\
**Last updated:** [March 26, 2013, 11:34pm UTC](https://forum.ansible.com/t/arguments-passed-to-openssh-too-intrusive/12588 "2013-03-26T23:34:56Z")

</div>

First off, JumpHosts work fine with -c ssh. The only thing we pass along that overrides is the user, and I still maintain setting that is pretty vital to multi-user operation. Don't think about it as SSH, think abou…

---

## [vars /etc/ansible/hosts](https://forum.ansible.com/t/vars-etc-ansible-hosts/12590)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [March 26, 2013, 10:48pm UTC](https://forum.ansible.com/t/vars-etc-ansible-hosts/12590 "2013-03-26T22:48:11Z")

</div>

Can you please paste this via gist.github.com without the slashes in there, exactly as you have the actual file?

---

## [File / Directory \[not\] exits condition?](https://forum.ansible.com/t/file-directory-not-exits-condition/12589)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [March 26, 2013, 10:47pm UTC](https://forum.ansible.com/t/file-directory-not-exits-condition/12589 "2013-03-26T22:47:22Z")

</div>

I've suggested previously on list that if someone wants to make the creates= and removes= functionality generic through use of AnsibleModuleCommon code, I'll support that. Until then, you should use a "register" state…

---

## [vars merging](https://forum.ansible.com/t/vars-merging/12573)

<div class="topic-metadata">

**Author:** [@C\_Morgan\_Hamill](https://forum.ansible.com/u/C_Morgan_Hamill)\
**Replies:** 5\
**Last updated:** [March 26, 2013, 4:01pm UTC](https://forum.ansible.com/t/vars-merging/12573 "2013-03-26T16:01:53Z")

</div>

In ansible.cfg, under the '\[defaults\]' section, you can put 'hash\_behavior = merge'. I think this is new as of the pending 1.1 release, so you'll need a gift checkout. See \<https://github.com/ansible/ansible/blob/devel/…

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

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