# Latest

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

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

**Page:** 1054

---

## [intersection matches for empty string](https://forum.ansible.com/t/intersection-matches-for-empty-string/12547)

<div class="topic-metadata">

**Author:** [@kahlil.hodgson](https://forum.ansible.com/u/kahlil.hodgson)\
**Replies:** 2\
**Last updated:** [March 21, 2013, 9:02pm UTC](https://forum.ansible.com/t/intersection-matches-for-empty-string/12547 "2013-03-21T21:02:48Z")

</div>

I've been playing with intersection (&) and negation (!) matches a bit lately. All very cool -- allowing me to target subsets of groups both inside a playbook and with the --limit command line option. I'm looking at th…

---

## [Maintain file timestamp during copy](https://forum.ansible.com/t/maintain-file-timestamp-during-copy/12546)

<div class="topic-metadata">

**Author:** [@kahlil.hodgson](https://forum.ansible.com/u/kahlil.hodgson)\
**Replies:** 1\
**Last updated:** [March 21, 2013, 5:56pm UTC](https://forum.ansible.com/t/maintain-file-timestamp-during-copy/12546 "2013-03-21T17:56:34Z")

</div>

Argument could go the other way. Preserving the timestamp hides the destination file timestamp. You would not be able to tell, by looking at the server, exactly when the configuration changes took effect. This info cou…

---

## [rsync module](https://forum.ansible.com/t/rsync-module/12549)

<div class="topic-metadata">

**Author:** [@Nigel\_Metheringham](https://forum.ansible.com/u/Nigel_Metheringham)\
**Replies:** 5\
**Last updated:** [March 21, 2013, 2:25pm UTC](https://forum.ansible.com/t/rsync-module/12549 "2013-03-21T14:25:59Z")

</div>

A couple of thoughts that have been bubbling around my head following the many mentions of using rsync from within ansible to move sets of files from the management host to the destination host(s). We can use rsync as a…

---

## [The ansible-repository project](https://forum.ansible.com/t/the-ansible-repository-project/12548)

<div class="topic-metadata">

**Author:** [@ggaspaio](https://forum.ansible.com/u/ggaspaio)\
**Replies:** 5\
**Last updated:** [March 21, 2013, 12:15pm UTC](https://forum.ansible.com/t/the-ansible-repository-project/12548 "2013-03-21T12:15:26Z")

</div>

Actually I did already and it doesn’t work for me : tasks are copied from lamp\_simple to lamp\_haproxy rather than reused. For example, the apache install file exists in both directories. Imagine the two playbooks (hapro…

---

## [Maintain file timestamp during copy](https://forum.ansible.com/t/maintain-file-timestamp-during-copy/12533)

<div class="topic-metadata">

**Author:** [@mtovey](https://forum.ansible.com/u/mtovey)\
**Replies:** 2\
**Last updated:** [March 21, 2013, 4:15am UTC](https://forum.ansible.com/t/maintain-file-timestamp-during-copy/12533 "2013-03-21T04:15:11Z")

</div>

Let me explain a scenario. I have an environment with several hundred servers running in it. We needed to add a few more, and the new servers need to be configured identically to the already existing servers. I have a re…

---

## [Attempting to run a command with shell returns syntax error](https://forum.ansible.com/t/attempting-to-run-a-command-with-shell-returns-syntax-error/12343)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 4\
**Last updated:** [March 20, 2013, 6:10pm UTC](https://forum.ansible.com/t/attempting-to-run-a-command-with-shell-returns-syntax-error/12343 "2013-03-20T18:10:14Z")

</div>

Hi Dale, If you want to get the last octet of the IP, I would probably try to get it from one of the built in facts, like $ansible\_ipaddress\_eth0. You can see available facts from "ansible hostname -m setup". These a…

---

## [Maintain file timestamp during copy](https://forum.ansible.com/t/maintain-file-timestamp-during-copy/12536)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 5\
**Last updated:** [March 20, 2013, 5:48pm UTC](https://forum.ansible.com/t/maintain-file-timestamp-during-copy/12536 "2013-03-20T17:48:13Z")

</div>

I believe I indicated I was open to making it configurable, if it were a global setting. Send me a patch. It needs to work for both paramiko and ssh connection types, as well as ssh in scp and sftp modes.

---

## [The ansible-repository project](https://forum.ansible.com/t/the-ansible-repository-project/12538)

<div class="topic-metadata">

**Author:** [@ggaspaio](https://forum.ansible.com/u/ggaspaio)\
**Replies:** 1\
**Last updated:** [March 20, 2013, 3:01pm UTC](https://forum.ansible.com/t/the-ansible-repository-project/12538 "2013-03-20T15:01:53Z")

</div>

Hello everybody, My company’s making the swtich from Puppet to Ansible ; i’m one of those pushing the change. As such, i’m trying to create an internal coding standard and a set of common building blocks that each team…

---

## [The ansible-repository project](https://forum.ansible.com/t/the-ansible-repository-project/12545)

<div class="topic-metadata">

**Author:** [@benno\_joy](https://forum.ansible.com/u/benno_joy)\
**Replies:** 0\
**Last updated:** [March 20, 2013, 2:59pm UTC](https://forum.ansible.com/t/the-ansible-repository-project/12545 "2013-03-20T14:59:10Z")

</div>

Hey Rodolfo, You may want to have a look at http://ansible.cc/docs/bestpractices.html and https://github.com/ansible/ansible-examples Regards, benno

---

## [please share Ansible and OS versions in questions/tickets...](https://forum.ansible.com/t/please-share-ansible-and-os-versions-in-questions-tickets/12542)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [March 20, 2013, 12:44pm UTC](https://forum.ansible.com/t/please-share-ansible-and-os-versions-in-questions-tickets/12542 "2013-03-20T12:44:40Z")

</div>

Hi everyone. I've shared this before so this is mostly a reminder for new users, seeing we have a fantastic volume of traffic now, sharing a bit more info on tickets will greatly help me out. When asking questions or…

---

## [Secondary loop](https://forum.ansible.com/t/secondary-loop/12540)

<div class="topic-metadata">

**Author:** [@Ben\_Hood](https://forum.ansible.com/u/Ben_Hood)\
**Replies:** 2\
**Last updated:** [March 20, 2013, 12:37pm UTC](https://forum.ansible.com/t/secondary-loop/12540 "2013-03-20T12:37:44Z")

</div>

Hi, I was wondering if there is an idiomatic way to have a secondary loop in a with\_items stanza. I am trying to template the following directory structure: /opt/my\_app/instance-1/foo.cfg /opt/my\_app/instance-1/bar.c…

---

## [Getting started for installing eXist-db.](https://forum.ansible.com/t/getting-started-for-installing-exist-db/12541)

<div class="topic-metadata">

**Author:** [@Eric\_Palmer1](https://forum.ansible.com/u/Eric_Palmer1)\
**Replies:** 0\
**Last updated:** [March 20, 2013, 11:57am UTC](https://forum.ansible.com/t/getting-started-for-installing-exist-db/12541 "2013-03-20T11:57:51Z")

</div>

I want to introduce myself. I’m Eric Palmer from the University of Richmond. I am a developer and development manager (php, Java, groovy, …) and not a system admin. I’m working with several other people to create ansibl…

---

## [Issues with notify chains](https://forum.ansible.com/t/issues-with-notify-chains/12535)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [March 19, 2013, 11:39pm UTC](https://forum.ansible.com/t/issues-with-notify-chains/12535 "2013-03-19T23:39:07Z")

</div>

There's an open ticket to be able to improve handlers, though what you may want to do is use "register" with the result of each task and then "when\_changed". It is true that they run in the order defined, that's a fea…

---

## [who is going to ansiblefest?](https://forum.ansible.com/t/who-is-going-to-ansiblefest/12502)

<div class="topic-metadata">

**Author:** [@Seth\_Vidal](https://forum.ansible.com/u/Seth_Vidal)\
**Replies:** 6\
**Last updated:** [March 19, 2013, 11:05pm UTC](https://forum.ansible.com/t/who-is-going-to-ansiblefest/12502 "2013-03-19T23:05:43Z")

</div>

Hi all, I'm thinking about signing up for ansiblefest but i'm curious who all is going. Has anyone already signed up? Is anyone thinking about giving a talk? I'm trying to figure out what kind of talk I'd give if I w…

---

## [Network interface information](https://forum.ansible.com/t/network-interface-information/12496)

<div class="topic-metadata">

**Author:** [@C\_Morgan\_Hamill](https://forum.ansible.com/u/C_Morgan_Hamill)\
**Replies:** 3\
**Last updated:** [March 19, 2013, 11:01pm UTC](https://forum.ansible.com/t/network-interface-information/12496 "2013-03-19T23:01:48Z")

</div>

Howdy, I’ve stumbled across this old-ish Github issue: https://github.com/ansible/ansible/issues/1001 The information described there is something I’d really like to have access to through ansible, and the issue’s pag…

---

## [Proposal: module to dump available data structures in a playbook](https://forum.ansible.com/t/proposal-module-to-dump-available-data-structures-in-a-playbook/12534)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [March 19, 2013, 10:00pm UTC](https://forum.ansible.com/t/proposal-module-to-dump-available-data-structures-in-a-playbook/12534 "2013-03-19T22:00:12Z")

</div>

Per discussion on the list, I think I like the idea of just using the template module to do this, and then showing how to do this on coderwall and in the docs. Otherwise we end up duplicating too much logic to have a …

---

## [multiple instances, multiple paths, one server](https://forum.ansible.com/t/multiple-instances-multiple-paths-one-server/12532)

<div class="topic-metadata">

**Author:** [@Timothy\_Appnel](https://forum.ansible.com/u/Timothy_Appnel)\
**Replies:** 2\
**Last updated:** [March 19, 2013, 9:18pm UTC](https://forum.ansible.com/t/multiple-instances-multiple-paths-one-server/12532 "2013-03-19T21:18:25Z")

</div>

I haven’t had the time to pay as close attention to discussions on the list here as I should. Hoping these haven’t been discussed and my search over the archives missed them. Is anyone dealing with managing multiple ins…

---

## [Unofficial OpenStack modules](https://forum.ansible.com/t/unofficial-openstack-modules/12531)

<div class="topic-metadata">

**Author:** [@Lorin\_Hochstein1](https://forum.ansible.com/u/Lorin_Hochstein1)\
**Replies:** 2\
**Last updated:** [March 19, 2013, 3:49pm UTC](https://forum.ansible.com/t/unofficial-openstack-modules/12531 "2013-03-19T15:49:43Z")

</div>

Aince the official Ansible OpenStack effort is still ramping up, I wrote a set of unofficial modules that I needed for a local deployment (on Ubuntu). You can find them at https://github.com/lorin/openstack-ansible-modul…

---

## [msg:Failed to add path to set. When service restart on fedora 18](https://forum.ansible.com/t/msg-failed-to-add-path-to-set-when-service-restart-on-fedora-18/12530)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [March 19, 2013, 12:22pm UTC](https://forum.ansible.com/t/msg-failed-to-add-path-to-set-when-service-restart-on-fedora-18/12530 "2013-03-19T12:22:34Z")

</div>

The "failed to add path to set" error is not one I've seen before. Handler file doesn't seem to be the problem, can I see the playbook? Also let me know your OS and such.

---

## [Introducing "ansible-examples", a new github repository](https://forum.ansible.com/t/introducing-ansible-examples-a-new-github-repository/12527)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 1\
**Last updated:** [March 19, 2013, 10:56am UTC](https://forum.ansible.com/t/introducing-ansible-examples-a-new-github-repository/12527 "2013-03-19T10:56:51Z")

</div>

One of the requests that comes in a lot is to see more examples. So, yeah! We're starting a repo of curated examples of how to do some interesting (mostly full stack, full use case) things with Ansible. It's here,…

---

## [Maintain file timestamp during copy](https://forum.ansible.com/t/maintain-file-timestamp-during-copy/12526)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 3\
**Last updated:** [March 19, 2013, 4:42am UTC](https://forum.ansible.com/t/maintain-file-timestamp-during-copy/12526 "2013-03-19T04:42:19Z")

</div>

This seems to be a dangerous idea, as it would cover up the last modified time of the file. You should just check to see that the file md5sums are the same. Ansible will already not transfer the file if it does not ne…

---

## [Config management of passwords/sensitive material](https://forum.ansible.com/t/config-management-of-passwords-sensitive-material/12528)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [March 19, 2013, 4:13am UTC](https://forum.ansible.com/t/config-management-of-passwords-sensitive-material/12528 "2013-03-19T04:13:06Z")

</div>

A popular way to do it is to keep your passwords outside of the tree, using something like: vars\_files: - /some/dir/my\_passwords.yml You could keep these in a different git repo. I think someone else was doing t…

---

## [Conditional import for playbooks import](https://forum.ansible.com/t/conditional-import-for-playbooks-import/12523)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 4\
**Last updated:** [March 19, 2013, 2:10am UTC](https://forum.ansible.com/t/conditional-import-for-playbooks-import/12523 "2013-03-19T02:10:25Z")

</div>

You really should not try to include different playbooks based on environment levels in my opinion, but keep different \*variables\* based on those environments. Different playbooks would most likely correspond to a bra…

---

## [Paramiko error](https://forum.ansible.com/t/paramiko-error/12522)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 2\
**Last updated:** [March 19, 2013, 2:07am UTC](https://forum.ansible.com/t/paramiko-error/12522 "2013-03-19T02:07:39Z")

</div>

I believe we silenced some paramiko warnings earlier, though this also seems to be a warning. Did you install paramiko from RPM? What version of ansible?

---

## [SSH timeout?](https://forum.ansible.com/t/ssh-timeout/11803)

<div class="topic-metadata">

**Author:** [@James8](https://forum.ansible.com/u/James8)\
**Replies:** 8\
**Last updated:** [March 18, 2013, 9:41pm UTC](https://forum.ansible.com/t/ssh-timeout/11803 "2013-03-18T21:41:23Z")

</div>

bash-3.2$ ansible WS000 -m command -a "echo dork" -u jmarcus -f 1 -K sudo password: ws002.test.com | FAILED =\> ssh connection closed waiting for password prompt Is this configurable? Thanks, James

---

## [Ansible survey reminder!](https://forum.ansible.com/t/ansible-survey-reminder/12524)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [March 18, 2013, 2:23pm UTC](https://forum.ansible.com/t/ansible-survey-reminder/12524 "2013-03-18T14:23:40Z")

</div>

This is a quick reminder that you still have another week to take the Ansible survey and win a free iPad mini. Thanks to everyone who replied so far! (As mentioned previously, you need to be already subscribed to th…

---

## [question about setting variables](https://forum.ansible.com/t/question-about-setting-variables/12520)

<div class="topic-metadata">

**Author:** [@Dale\_Quigg](https://forum.ansible.com/u/Dale_Quigg)\
**Replies:** 1\
**Last updated:** [March 18, 2013, 1:30pm UTC](https://forum.ansible.com/t/question-about-setting-variables/12520 "2013-03-18T13:30:52Z")

</div>

Hi, I've just started working with Ansible and first want to say, "Nice work Michael!". I was able to understand the concepts and get a 'hello world' example running in hours. I've been looking a Puppet/ Chef off a…

---

## [Newline in copy module, content parameter](https://forum.ansible.com/t/newline-in-copy-module-content-parameter/12521)

<div class="topic-metadata">

**Author:** [@Tin\_Tvrtkovic](https://forum.ansible.com/u/Tin_Tvrtkovic)\
**Replies:** 2\
**Last updated:** [March 18, 2013, 12:12pm UTC](https://forum.ansible.com/t/newline-in-copy-module-content-parameter/12521 "2013-03-18T12:12:13Z")

</div>

Hi, just a quick question regarding the copy module, content parameter. Is there a way of making this operation output a line separator in the destination file? For example, copy: dest=/etc/blabla content=“VAR=var\\nVAR…

---

## [rhn module](https://forum.ansible.com/t/rhn-module/12516)

<div class="topic-metadata">

**Author:** [@Vincent\_Van\_der\_Kuss](https://forum.ansible.com/u/Vincent_Van_der_Kuss)\
**Replies:** 2\
**Last updated:** [March 17, 2013, 9:16pm UTC](https://forum.ansible.com/t/rhn-module/12516 "2013-03-17T21:16:46Z")

</div>

Hi, We are currently getting started with Ansible, and we really like it! Since we use RHEL for a large part of our infra I did an attempt to create an Ansible module that allows you to add or remove software channel…

---

## [ignore\_errors](https://forum.ansible.com/t/ignore-errors/12519)

<div class="topic-metadata">

**Author:** [@Yves\_Dorfsman](https://forum.ansible.com/u/Yves_Dorfsman)\
**Replies:** 1\
**Last updated:** [March 17, 2013, 7:16pm UTC](https://forum.ansible.com/t/ignore-errors/12519 "2013-03-17T19:16:11Z")

</div>

I like ignore\_errors because it let the rest of the playbook being played even after a failure that I can live with, BUT, I'm bothered by the fact that it doesn't mark the packages as failed (I still like to know that so…

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

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