# Latest

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

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

**Page:** 1083

---

## [Execute command only\_if some file does not exists yet](https://forum.ansible.com/t/execute-command-only-if-some-file-does-not-exists-yet/11612)

<div class="topic-metadata">

**Author:** [@Harm\_Aarts](https://forum.ansible.com/u/Harm_Aarts)\
**Replies:** 4\
**Last updated:** [June 14, 2012, 12:48pm UTC](https://forum.ansible.com/t/execute-command-only-if-some-file-does-not-exists-yet/11612 "2012-06-14T12:48:14Z")

</div>

Dear list, I’m creating a playbook. In it I create a user. For that user I want to create an SSH key. But I want this to be idempotent. Currently I try to do this with: name: generate an SSH key for ops action: comma…

---

## [Variable overwriting](https://forum.ansible.com/t/variable-overwriting/11609)

<div class="topic-metadata">

**Author:** [@Brad\_Olson](https://forum.ansible.com/u/Brad_Olson)\
**Replies:** 2\
**Last updated:** [June 13, 2012, 4:29pm UTC](https://forum.ansible.com/t/variable-overwriting/11609 "2012-06-13T16:29:30Z")

</div>

Michael, What’s the intended behavior about variable re-definition? Will later vars\_files overwrite earlier ones? I guess that leads to a best practice problem. Use case is variable for a webserver, web app, and config…

---

## [Test builds of Ansible-0.4.1 available](https://forum.ansible.com/t/test-builds-of-ansible-0-4-1-available/11611)

<div class="topic-metadata">

**Author:** [@Tim\_Bielawa](https://forum.ansible.com/u/Tim_Bielawa)\
**Replies:** 0\
**Last updated:** [June 13, 2012, 1:55pm UTC](https://forum.ansible.com/t/test-builds-of-ansible-0-4-1-available/11611 "2012-06-13T13:55:20Z")

</div>

Fedora 16: http://koji.fedoraproject.org/koji/taskinfo?taskID=4158977 Fedora 17: http://koji.fedoraproject.org/koji/taskinfo?taskID=4158985 EPEL 6: http://koji.fedoraproject.org/koji/taskinfo?taskID=4158981 testtestte…

---

## [using apt on ubuntu hardy 8.04](https://forum.ansible.com/t/using-apt-on-ubuntu-hardy-8-04/11610)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [June 13, 2012, 1:16am UTC](https://forum.ansible.com/t/using-apt-on-ubuntu-hardy-8-04/11610 "2012-06-13T01:16:30Z")

</div>

Looks like the apt module needs some changes to work around this. (You or those with Debian/Ubuntu machines can submit a pull request – I mostly use CentOS) –Michael

---

## [Ansible constants vs defaults.](https://forum.ansible.com/t/ansible-constants-vs-defaults/11606)

<div class="topic-metadata">

**Author:** [@Timothy\_Appnel](https://forum.ansible.com/u/Timothy_Appnel)\
**Replies:** 12\
**Last updated:** [June 12, 2012, 7:41pm UTC](https://forum.ansible.com/t/ansible-constants-vs-defaults/11606 "2012-06-12T19:41:15Z")

</div>

One more implementation question. It's pretty clear that we are going to have a different type of setup here. I respect that. Rather than have every user input all the switches to override the defaults every time, we'd …

---

## [Why fetch yielded md5 mismatch message?](https://forum.ansible.com/t/why-fetch-yielded-md5-mismatch-message/11603)

<div class="topic-metadata">

**Author:** [@Zack\_Perry](https://forum.ansible.com/u/Zack_Perry)\
**Replies:** 3\
**Last updated:** [June 11, 2012, 5:06am UTC](https://forum.ansible.com/t/why-fetch-yielded-md5-mismatch-message/11603 "2012-06-11T05:06:06Z")

</div>

I am new to Ansible - still going over the wiki and practicing using 5 KVM guests running SL6.2. Ansible 5.0 cloned from github is used. While reviewing http://ansible.github.com/modules.html and practicing the fetch …

---

## [SSH config file no longer read](https://forum.ansible.com/t/ssh-config-file-no-longer-read/11539)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 5\
**Last updated:** [June 8, 2012, 2:10am UTC](https://forum.ansible.com/t/ssh-config-file-no-longer-read/11539 "2012-06-08T02:10:48Z")

</div>

This was a point of major confusion -- why read part of the local SSH config when we don't read ALL of it? This was much discussed and we ultimately resolved to not read the config file. So, for now, we're reading not…

---

## [Problem with conditional execution in playbook & hostvars](https://forum.ansible.com/t/problem-with-conditional-execution-in-playbook-hostvars/11602)

<div class="topic-metadata">

**Author:** [@jpmens1](https://forum.ansible.com/u/jpmens1)\
**Replies:** 1\
**Last updated:** [June 8, 2012, 2:10am UTC](https://forum.ansible.com/t/problem-with-conditional-execution-in-playbook-hostvars/11602 "2012-06-08T02:10:16Z")

</div>

Hello, I'm trying to understand conditional execution in a playbook and use hostvars in a template. I'm using latest dev snapshot of ansible. hosts:

---

## [ansible over SSH with GSSAPI?](https://forum.ansible.com/t/ansible-over-ssh-with-gssapi/11601)

<div class="topic-metadata">

**Author:** [@jpmens1](https://forum.ansible.com/u/jpmens1)\
**Replies:** 1\
**Last updated:** [June 8, 2012, 2:05am UTC](https://forum.ansible.com/t/ansible-over-ssh-with-gssapi/11601 "2012-06-08T02:05:25Z")

</div>

Hello, Getting my feet wet with Ansible, and the first I run into is I can't use ansible over SSH with GSSAPI (Kerberos) authentication. I've found a pointer \[1\] that paramiko doesn't support GSSAPI. Am I right that …

---

## [FYI: back from vacation, messages to list now all approved, pull requests to be reviewed soon](https://forum.ansible.com/t/fyi-back-from-vacation-messages-to-list-now-all-approved-pull-requests-to-be-reviewed-soon/11604)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [June 8, 2012, 1:59am UTC](https://forum.ansible.com/t/fyi-back-from-vacation-messages-to-list-now-all-approved-pull-requests-to-be-reviewed-soon/11604 "2012-06-08T01:59:11Z")

</div>

Apologies on not approving messages from new posters to the list over the last week – google seems to want to not allow list administration from the mobile app, which was unexpected. I also see we’ve got a good string o…

---

## [Playbook reflections.](https://forum.ansible.com/t/playbook-reflections/11597)

<div class="topic-metadata">

**Author:** [@Brad\_Olson](https://forum.ansible.com/u/Brad_Olson)\
**Replies:** 3\
**Last updated:** [June 5, 2012, 9:08pm UTC](https://forum.ansible.com/t/playbook-reflections/11597 "2012-06-05T21:08:49Z")

</div>

I just finished another take at describing a modest infrastructure in playbooks. Trying to keep simplicity at the forefront, I found myself wishing for a couple modest enhancements: 1. Process vars\_files BEFORE vars. …

---

## [fetch module fails - Mac OS X](https://forum.ansible.com/t/fetch-module-fails-mac-os-x/11600)

<div class="topic-metadata">

**Author:** [@Kumar3](https://forum.ansible.com/u/Kumar3)\
**Replies:** 3\
**Last updated:** [June 5, 2012, 9:07pm UTC](https://forum.ansible.com/t/fetch-module-fails-mac-os-x/11600 "2012-06-05T21:07:41Z")

</div>

Hi : Looks like the fetch module is using md5sum tool and Mac OS X the tool is md5. For Quick fix: I created a symlink for md5 as md5sum. Kumars-MacBook-Pro:ansible kumarkandasami$ ls -l /sbin/md\* -r-xr-xr-x 1 ro…

---

## [Empty blocks are not allowed ?](https://forum.ansible.com/t/empty-blocks-are-not-allowed/11584)

<div class="topic-metadata">

**Author:** [@ansibleguest](https://forum.ansible.com/u/ansibleguest)\
**Replies:** 3\
**Last updated:** [June 5, 2012, 9:07pm UTC](https://forum.ansible.com/t/empty-blocks-are-not-allowed/11584 "2012-06-05T21:07:18Z")

</div>

Hi, found that if you have the blocks from a playbook template and you leave the blocks empty you get python errors :frowning: vars: some: true vars\_files: vars\_prompt: tasks: action: command.... …

---

## ["with\_item" clause support for list variables ?](https://forum.ansible.com/t/with-item-clause-support-for-list-variables/11576)

<div class="topic-metadata">

**Author:** [@Kumar3](https://forum.ansible.com/u/Kumar3)\
**Replies:** 3\
**Last updated:** [June 5, 2012, 9:04pm UTC](https://forum.ansible.com/t/with-item-clause-support-for-list-variables/11576 "2012-06-05T21:04:01Z")

</div>

Hi : I am trying to pass a array variable to an task with "with\_item" clause, and would like to know whether there is support for this or any other alternative ways. Thanks, - name:print eth action: command ec…

---

## [Ansible Design Pattern Question](https://forum.ansible.com/t/ansible-design-pattern-question/11598)

<div class="topic-metadata">

**Author:** [@Jonathan\_Palley](https://forum.ansible.com/u/Jonathan_Palley)\
**Replies:** 2\
**Last updated:** [June 5, 2012, 8:54pm UTC](https://forum.ansible.com/t/ansible-design-pattern-question/11598 "2012-06-05T20:54:22Z")

</div>

All - I'm trying to get my head around "the ansible way" for organizing things. I greatly appreciate the design goals of ansible and find it mirrors largely how I think; but I still am a bit confused about proper …

---

## [the ansible way](https://forum.ansible.com/t/the-ansible-way/11599)

<div class="topic-metadata">

**Author:** [@damaex](https://forum.ansible.com/u/damaex)\
**Replies:** 2\
**Last updated:** [June 4, 2012, 2:43pm UTC](https://forum.ansible.com/t/the-ansible-way/11599 "2012-06-04T14:43:33Z")

</div>

Hi, I am pretty happy with ansible but I still don’t get my head fully around some of the concepts. Maybe somebody can give me input which helps me to handle ansible the correct way. Task: I want to do the pub IP conf…

---

## [sonnectivity problem](https://forum.ansible.com/t/sonnectivity-problem/11574)

<div class="topic-metadata">

**Author:** [@Andreas\_Davour](https://forum.ansible.com/u/Andreas_Davour)\
**Replies:** 12\
**Last updated:** [June 4, 2012, 3:03am UTC](https://forum.ansible.com/t/sonnectivity-problem/11574 "2012-06-04T03:03:33Z")

</div>

I see the following errors when trying to run a play. Ansible 0.4 version. \[root@se1ts00x yaml\]# ansible-playbook -k playbook-sx2-nscd.yaml SSH password: PLAY \[sx2\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* SETUP PHASE \*\*\*\*\*\*\*\*\*\*…

---

## [playbook multiple actions per task not working](https://forum.ansible.com/t/playbook-multiple-actions-per-task-not-working/11596)

<div class="topic-metadata">

**Author:** [@damaex](https://forum.ansible.com/u/damaex)\
**Replies:** 4\
**Last updated:** [June 1, 2012, 7:23pm UTC](https://forum.ansible.com/t/playbook-multiple-actions-per-task-not-working/11596 "2012-06-01T19:23:40Z")

</div>

Hi, I am running the dev release of ansible from github. I am having issues with multiple action’s per task. It seems only one action is working. The following playbook won’t deploy any files to the target host: hos…

---

## [hosts file pattern](https://forum.ansible.com/t/hosts-file-pattern/11594)

<div class="topic-metadata">

**Author:** [@Jonathan\_Palley](https://forum.ansible.com/u/Jonathan_Palley)\
**Replies:** 3\
**Last updated:** [June 1, 2012, 3:05pm UTC](https://forum.ansible.com/t/hosts-file-pattern/11594 "2012-06-01T15:05:55Z")

</div>

All - New to ansible and trying to understand the pattern of putting hosts in the /etc/ansible directory. I want ansible accessible from multiple machines and my intuition is to put something like a .hosts file in …

---

## [variable fun](https://forum.ansible.com/t/variable-fun/11595)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 1\
**Last updated:** [June 1, 2012, 1:36pm UTC](https://forum.ansible.com/t/variable-fun/11595 "2012-06-01T13:36:08Z")

</div>

\--Michael Hi, I am using the devel branch from github. Two problems for me with variables: 1) Thanks for testing! Are you saying only\_if is not expanding variables or are you saying only\_if is generally not worki…

---

## [Vars changed or broken?](https://forum.ansible.com/t/vars-changed-or-broken/11591)

<div class="topic-metadata">

**Author:** [@Tom\_Dimiduk](https://forum.ansible.com/u/Tom_Dimiduk)\
**Replies:** 4\
**Last updated:** [June 1, 2012, 11:58am UTC](https://forum.ansible.com/t/vars-changed-or-broken/11591 "2012-06-01T11:58:10Z")

</div>

Did a recent commit change or break vars? They don't seem to be getting expanded for me anymore. For example:

---

## [Bug in 0.4: Playbook with non-root user play after a root-user play fails with permissions errors](https://forum.ansible.com/t/bug-in-0-4-playbook-with-non-root-user-play-after-a-root-user-play-fails-with-permissions-errors/11579)

<div class="topic-metadata">

**Author:** [@John\_Callender](https://forum.ansible.com/u/John_Callender)\
**Replies:** 5\
**Last updated:** [June 1, 2012, 2:23am UTC](https://forum.ansible.com/t/bug-in-0-4-playbook-with-non-root-user-play-after-a-root-user-play-fails-with-permissions-errors/11579 "2012-06-01T02:23:00Z")

</div>

I encountered the following today with ansible 0.4. Here’s a section of my playbook: hosts: dev user: root tasks: include: tasks/yum\_common.yml include: tasks/cpan\_common.yml include: tasks/users\_common.yml …

---

## [copy command only if another file does not exist](https://forum.ansible.com/t/copy-command-only-if-another-file-does-not-exist/11586)

<div class="topic-metadata">

**Author:** [@ansibleguest](https://forum.ansible.com/u/ansibleguest)\
**Replies:** 5\
**Last updated:** [May 31, 2012, 3:09pm UTC](https://forum.ansible.com/t/copy-command-only-if-another-file-does-not-exist/11586 "2012-05-31T15:09:16Z")

</div>

Hi, for the 'copy' command that nice 'if'- option creates=filename does not seam to be available ? Alternative would be to get variable filled somehow with 'if a file exists or not' and based on this to use some onl…

---

## [If you post about ansible, please specify what version you are asking about](https://forum.ansible.com/t/if-you-post-about-ansible-please-specify-what-version-you-are-asking-about/11593)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 2\
**Last updated:** [May 31, 2012, 2:27pm UTC](https://forum.ansible.com/t/if-you-post-about-ansible-please-specify-what-version-you-are-asking-about/11593 "2012-05-31T14:27:45Z")

</div>

Hi all, It’s unclear as to whether people are talking about 0.5, 0.4, or even 0.3 (which is what is in EPEL) when asking questions. 0.5 is the development branch 0.4 is the last stable release. I will accept hot fixes…

---

## [Small error in the man ansible?](https://forum.ansible.com/t/small-error-in-the-man-ansible/11592)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [May 31, 2012, 1:38pm UTC](https://forum.ansible.com/t/small-error-in-the-man-ansible/11592 "2012-05-31T13:38:15Z")

</div>

Which version of Ansible and what error? I assume you are talking about the devel branch, in which case this is possible, and if so, please file a ticket in the github issue tracker.

---

## [(devel) libssh2 integration status](https://forum.ansible.com/t/devel-libssh2-integration-status/11590)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [May 31, 2012, 1:20am UTC](https://forum.ansible.com/t/devel-libssh2-integration-status/11590 "2012-05-31T01:20:24Z")

</div>

Previously, mgw sent in a VERY nice patch to add support for libssh2. Unfortunately, I've hit some roadblocks in testing. The pylibssh2 as available in the latest github has support for SSH agent, which is super impor…

---

## [Magic Variables: To access host within a group](https://forum.ansible.com/t/magic-variables-to-access-host-within-a-group/11588)

<div class="topic-metadata">

**Author:** [@Kumar3](https://forum.ansible.com/u/Kumar3)\
**Replies:** 3\
**Last updated:** [May 30, 2012, 2:28pm UTC](https://forum.ansible.com/t/magic-variables-to-access-host-within-a-group/11588 "2012-05-30T14:28:28Z")

</div>

Is there any way to access the list of hosts within each "groups" (magic) variable ? {% if 'webserver' in groups %} # some part of a configuration file that only applies to webservers {% endif %} Kumar

---

## [AIX and Solaris support](https://forum.ansible.com/t/aix-and-solaris-support/11587)

<div class="topic-metadata">

**Author:** [@Dag\_Wieers](https://forum.ansible.com/u/Dag_Wieers)\
**Replies:** 3\
**Last updated:** [May 30, 2012, 2:27pm UTC](https://forum.ansible.com/t/aix-and-solaris-support/11587 "2012-05-30T14:27:04Z")

</div>

Hi, Although the subject looks terrifying for most (or at least me ;-)), I am looking into the project's stance on AIX and Solaris support. One of the projects I am working on is the selection of a management tool that …

---

## [sshd\_config or a banner file](https://forum.ansible.com/t/sshd-config-or-a-banner-file/11570)

<div class="topic-metadata">

**Author:** [@James8](https://forum.ansible.com/u/James8)\
**Replies:** 7\
**Last updated:** [May 30, 2012, 1:36pm UTC](https://forum.ansible.com/t/sshd-config-or-a-banner-file/11570 "2012-05-30T13:36:39Z")

</div>

Hi, Today I'm making another go at Ansible. Part of using Ansible is getting rid of some of the bad decisions the previous administrators did in the name of "security". I want to deploy a standard sshd\_config file a…

---

## [Installation inside a virtualenv](https://forum.ansible.com/t/installation-inside-a-virtualenv/11582)

<div class="topic-metadata">

**Author:** [@Yaniv\_Aknin](https://forum.ansible.com/u/Yaniv_Aknin)\
**Replies:** 8\
**Last updated:** [May 29, 2012, 5:20pm UTC](https://forum.ansible.com/t/installation-inside-a-virtualenv/11582 "2012-05-29T17:20:49Z")

</div>

Hi, Perhaps I overlooked something obvious, but it seemed to me that creating a blank virtualenv and running ‘python setup.py install’ from a checkout wasn’t sufficient to install ansible, nor if I manually install the …

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

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