# Latest

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

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

**Page:** 1034

---

## [Action execution conditioned to non-empty output of previous command](https://forum.ansible.com/t/action-execution-conditioned-to-non-empty-output-of-previous-command/13182)

<div class="topic-metadata">

**Author:** [@lucc](https://forum.ansible.com/u/lucc)\
**Replies:** 4\
**Last updated:** [July 25, 2013, 4:02pm UTC](https://forum.ansible.com/t/action-execution-conditioned-to-non-empty-output-of-previous-command/13182 "2013-07-25T16:02:49Z")

</div>

Hello, I'm using ansible 1.2 and I would like to do the following: - script: somescriptA.sh register: resultA - script: somescriptB.sh {{resultA.stdout}} register: resultB when: resultA.stdout.find("somema…

---

## [copying user ssh keys to machines](https://forum.ansible.com/t/copying-user-ssh-keys-to-machines/13196)

<div class="topic-metadata">

**Author:** [@Michael\_Lucas](https://forum.ansible.com/u/Michael_Lucas)\
**Replies:** 1\
**Last updated:** [July 25, 2013, 2:50pm UTC](https://forum.ansible.com/t/copying-user-ssh-keys-to-machines/13196 "2013-07-25T14:50:43Z")

</div>

Hi, I need to copy user SSH authorized\_keys files to servers, as openssh-lpk has annoyed my organization for the last time. So we're using an /etc/ssh/users directory that contains all necessary user SSH. The catch …

---

## [\-K option sets user to root](https://forum.ansible.com/t/k-option-sets-user-to-root/13194)

<div class="topic-metadata">

**Author:** [@Eric\_Horlbeck](https://forum.ansible.com/u/Eric_Horlbeck)\
**Replies:** 1\
**Last updated:** [July 25, 2013, 2:45pm UTC](https://forum.ansible.com/t/k-option-sets-user-to-root/13194 "2013-07-25T14:45:53Z")

</div>

With this playbook (bug.yml): hosts: dev user: soa tasks: name: create a file command: /bin/touch /tmp/file If I run: ansible-playbook bug.yml The resulting file looks like this: ls -l /tmp/file -rw-r–r–.…

---

## [how to exit a sub-playbook tasks and continue with the next actions in the upper playbook ?](https://forum.ansible.com/t/how-to-exit-a-sub-playbook-tasks-and-continue-with-the-next-actions-in-the-upper-playbook/13193)

<div class="topic-metadata">

**Author:** [@Nicolas\_G](https://forum.ansible.com/u/Nicolas_G)\
**Replies:** 2\
**Last updated:** [July 25, 2013, 2:32pm UTC](https://forum.ansible.com/t/how-to-exit-a-sub-playbook-tasks-and-continue-with-the-next-actions-in-the-upper-playbook/13193 "2013-07-25T14:32:47Z")

</div>

Hi list, I have a small playbook tasks file that is called and run from another main playbook task : “”“”“” roles/application/tasks/main.yml : . include: ../../common/tasks/do\_things.yml . . name: next action she…

---

## [Compare binary files](https://forum.ansible.com/t/compare-binary-files/13191)

<div class="topic-metadata">

**Author:** [@celine](https://forum.ansible.com/u/celine)\
**Replies:** 3\
**Last updated:** [July 25, 2013, 2:04pm UTC](https://forum.ansible.com/t/compare-binary-files/13191 "2013-07-25T14:04:53Z")

</div>

Hi, I wish to compare between 2 binary files. action: copy src = {{srcLocation}} dest={{destLocation}} –check --diff. This works well if the 2 binaries are of different sizes. If they are of the same sizes but has dif…

---

## [Ansible Forum?](https://forum.ansible.com/t/ansible-forum/13189)

<div class="topic-metadata">

**Author:** [@Dylan\_Martin](https://forum.ansible.com/u/Dylan_Martin)\
**Replies:** 3\
**Last updated:** [July 25, 2013, 6:51am UTC](https://forum.ansible.com/t/ansible-forum/13189 "2013-07-25T06:51:52Z")

</div>

Hi all. I’m wondering if there is any interest in an ansible forum, as an alternative to a mailing list. Forums (Fora?) are nice because they let you categorize conversations for later readers. This helps keep repetitiv…

---

## [Ansible needs a new website](https://forum.ansible.com/t/ansible-needs-a-new-website/13184)

<div class="topic-metadata">

**Author:** [@Andy\_L](https://forum.ansible.com/u/Andy_L)\
**Replies:** 4\
**Last updated:** [July 25, 2013, 6:44am UTC](https://forum.ansible.com/t/ansible-needs-a-new-website/13184 "2013-07-25T06:44:30Z")

</div>

The Ansible website does a poor job of quickly explaining what the technology does, who would use it, and why Ansible is better than alternatives. In my humble opinion! :slight\_smile: I just had a look at the websites …

---

## [mysql\_user issues handling privileges with wildcards](https://forum.ansible.com/t/mysql-user-issues-handling-privileges-with-wildcards/13190)

<div class="topic-metadata">

**Author:** [@Jesus\_Garcia\_Crespo](https://forum.ansible.com/u/Jesus_Garcia_Crespo)\
**Replies:** 1\
**Last updated:** [July 25, 2013, 6:42am UTC](https://forum.ansible.com/t/mysql-user-issues-handling-privileges-with-wildcards/13190 "2013-07-25T06:42:42Z")

</div>

Hi everyone! Given the following playbook: http://hastebin.com/pibujawasi - I’ve found that the mysql\_user module is not escaping properly database names with wildcards in it, e.g.: foobar\_version% This is the output…

---

## [Complex Problem Strategy Question](https://forum.ansible.com/t/complex-problem-strategy-question/13188)

<div class="topic-metadata">

**Author:** [@Dylan\_Martin](https://forum.ansible.com/u/Dylan_Martin)\
**Replies:** 1\
**Last updated:** [July 25, 2013, 6:40am UTC](https://forum.ansible.com/t/complex-problem-strategy-question/13188 "2013-07-25T06:40:37Z")

</div>

Hi all. I’m trying to configure my bind servers with ansible, and I’m a little stumped about the best way forward. This question is also to help me better understand ansible and how to approach questions like this. I’ll…

---

## [with\_nested loop with more than 3 elements](https://forum.ansible.com/t/with-nested-loop-with-more-than-3-elements/13181)

<div class="topic-metadata">

**Author:** [@Vincent\_Hardion](https://forum.ansible.com/u/Vincent_Hardion)\
**Replies:** 2\
**Last updated:** [July 24, 2013, 5:37pm UTC](https://forum.ansible.com/t/with-nested-loop-with-more-than-3-elements/13181 "2013-07-24T17:37:14Z")

</div>

Hi, I just want to confirm the behavior of “with\_nested” before to submit a pull request. If I add another element to the loop\_nested example like this:

---

## [Re-appropriating (mis-appropriating?) roles - Content organization question](https://forum.ansible.com/t/re-appropriating-mis-appropriating-roles-content-organization-question/13187)

<div class="topic-metadata">

**Author:** [@Dale\_Quigg](https://forum.ansible.com/u/Dale_Quigg)\
**Replies:** 1\
**Last updated:** [July 24, 2013, 5:12pm UTC](https://forum.ansible.com/t/re-appropriating-mis-appropriating-roles-content-organization-question/13187 "2013-07-24T17:12:54Z")

</div>

Hi, I’m looking at the best practices page at Content Organization and Directory Layout. For our application, I’m considering re-appropriating (or mis-appropriating?) the definition of “roles”. I’d prefer to have “role…

---

## [Patch module](https://forum.ansible.com/t/patch-module/12624)

<div class="topic-metadata">

**Author:** [@Lorin\_Hochstein1](https://forum.ansible.com/u/Lorin_Hochstein1)\
**Replies:** 6\
**Last updated:** [July 24, 2013, 3:26pm UTC](https://forum.ansible.com/t/patch-module/12624 "2013-07-24T15:26:10Z")

</div>

I’d like to write a “patch” module that copies over a patch file and runs (idempotenetly) runs the patch program. How do I copy a local file to the remote machine inside an ansible module? Lorin

---

## [copy files in the remote machine](https://forum.ansible.com/t/copy-files-in-the-remote-machine/13185)

<div class="topic-metadata">

**Author:** [@Luis\_Perez](https://forum.ansible.com/u/Luis_Perez)\
**Replies:** 1\
**Last updated:** [July 24, 2013, 3:04pm UTC](https://forum.ansible.com/t/copy-files-in-the-remote-machine/13185 "2013-07-24T15:04:33Z")

</div>

Hi, Is there a way to copy files idempotently in the remote machine (copy a file from one location to another in the same remote machine) ? The only aproach i can think of is to run two actions: a fetch and then a copy…

---

## [Forks option to match the number of hosts in a play](https://forum.ansible.com/t/forks-option-to-match-the-number-of-hosts-in-a-play/13177)

<div class="topic-metadata">

**Author:** [@Jesse\_Keating](https://forum.ansible.com/u/Jesse_Keating)\
**Replies:** 12\
**Last updated:** [July 24, 2013, 3:04pm UTC](https://forum.ansible.com/t/forks-option-to-match-the-number-of-hosts-in-a-play/13177 "2013-07-24T15:04:07Z")

</div>

So I'm playing around with some performance testing, and a realization hit me as I was looking at the code and passing ridiculously high fork counts. Ansible will create as many forks as you ask for, before processing a…

---

## [Allow some %age of failures before quitting the playbook](https://forum.ansible.com/t/allow-some-age-of-failures-before-quitting-the-playbook/13169)

<div class="topic-metadata">

**Author:** [@Kavin\_Kankeshwar](https://forum.ansible.com/u/Kavin_Kankeshwar)\
**Replies:** 7\
**Last updated:** [July 24, 2013, 3:01pm UTC](https://forum.ansible.com/t/allow-some-age-of-failures-before-quitting-the-playbook/13169 "2013-07-24T15:01:20Z")

</div>

Hi, I am trying to see how best I can quit running a playbook , if some %age of nodes have failed and not proceed with upgrading hosts. Use case: Upgrading a Java webapp in rolling fashion, But if some %age of nodes ha…

---

## [Contributing new plugin, adding libcloud as a dependency](https://forum.ansible.com/t/contributing-new-plugin-adding-libcloud-as-a-dependency/13139)

<div class="topic-metadata">

**Author:** [@Eric\_Johnson](https://forum.ansible.com/u/Eric_Johnson)\
**Replies:** 11\
**Last updated:** [July 24, 2013, 12:11pm UTC](https://forum.ansible.com/t/contributing-new-plugin-adding-libcloud-as-a-dependency/13139 "2013-07-24T12:11:51Z")

</div>

Hi, I’m considering contributing a new plugin to the Ansible community. Ideally, I’d like to use libcloud \[http://libcloud.apache.org\] but I believe this would introduce a new dependency so I wanted to check first. It m…

---

## [How do variables really work?](https://forum.ansible.com/t/how-do-variables-really-work/13180)

<div class="topic-metadata">

**Author:** [@David\_Reagan](https://forum.ansible.com/u/David_Reagan)\
**Replies:** 1\
**Last updated:** [July 24, 2013, 1:09am UTC](https://forum.ansible.com/t/how-do-variables-really-work/13180 "2013-07-24T01:09:40Z")

</div>

I’ve read the docs, several topics in this group, the examples github, plus several experiments on some testing vms, but I can’t seem to make it click. The precedence vars take is this: (I think…) vars passed in from …

---

## [Working with rbenv-sudo (environmental variables)](https://forum.ansible.com/t/working-with-rbenv-sudo-environmental-variables/13183)

<div class="topic-metadata">

**Author:** [@Daniel\_Peck](https://forum.ansible.com/u/Daniel_Peck)\
**Replies:** 1\
**Last updated:** [July 24, 2013, 1:05am UTC](https://forum.ansible.com/t/working-with-rbenv-sudo-environmental-variables/13183 "2013-07-24T01:05:54Z")

</div>

Hi everyone, new to ansible and loving it so far, trying to get yaml files for my standard rails deployments built and I’m very close. The last piece of the puzzle is figuring out how to use rbenv-sudo from ansible to …

---

## [Looping a nested data structure](https://forum.ansible.com/t/looping-a-nested-data-structure/13179)

<div class="topic-metadata">

**Author:** [@Andre\_Pereira](https://forum.ansible.com/u/Andre_Pereira)\
**Replies:** 4\
**Last updated:** [July 23, 2013, 5:07pm UTC](https://forum.ansible.com/t/looping-a-nested-data-structure/13179 "2013-07-23T17:07:06Z")

</div>

Hi! I’m converting our configuration and deployment over to Ansible, but I hit a snag with the latter. We use a multi-application-per-host structure, each running as its own Linux user, and each containing its own set …

---

## [wait\_for\_result module](https://forum.ansible.com/t/wait-for-result-module/13174)

<div class="topic-metadata">

**Author:** [@Ludovic\_Petetin](https://forum.ansible.com/u/Ludovic_Petetin)\
**Replies:** 2\
**Last updated:** [July 23, 2013, 12:57pm UTC](https://forum.ansible.com/t/wait-for-result-module/13174 "2013-07-23T12:57:18Z")

</div>

Hi, I wrote a module to loop on a command until you get an expected result. This is useful when you don’t want your playbook to continue until for ex your Solr warmup is done and you engine is ready to take request. B…

---

## [fork modules not included in ansible to github.com/ansible](https://forum.ansible.com/t/fork-modules-not-included-in-ansible-to-github-com-ansible/13178)

<div class="topic-metadata">

**Author:** [@Rene\_Moser](https://forum.ansible.com/u/Rene_Moser)\
**Replies:** 1\
**Last updated:** [July 23, 2013, 12:27pm UTC](https://forum.ansible.com/t/fork-modules-not-included-in-ansible-to-github-com-ansible/13178 "2013-07-23T12:27:39Z")

</div>

Hi I really like to have an overview of all modules, which are not included in ansible of any reason. My suggestion is to handle it like Jenkins CI (https://github.com/Jenkinsci) and have a fork of the modules on https…

---

## [How to update the package cache only once per playbook run?](https://forum.ansible.com/t/how-to-update-the-package-cache-only-once-per-playbook-run/13175)

<div class="topic-metadata">

**Author:** [@David\_Reagan](https://forum.ansible.com/u/David_Reagan)\
**Replies:** 2\
**Last updated:** [July 22, 2013, 8:52pm UTC](https://forum.ansible.com/t/how-to-update-the-package-cache-only-once-per-playbook-run/13175 "2013-07-22T20:52:43Z")

</div>

Every time I install a package, I want to make sure I have the latest version. That means I need to run apt-get update, or it’s equivalent, before I install the package. Currently I have an 'apt update\_cache=yes" task ru…

---

## [ec2\_elb always returns unchanged](https://forum.ansible.com/t/ec2-elb-always-returns-unchanged/13173)

<div class="topic-metadata">

**Author:** [@igor.masen](https://forum.ansible.com/u/igor.masen)\
**Replies:** 3\
**Last updated:** [July 22, 2013, 2:52pm UTC](https://forum.ansible.com/t/ec2-elb-always-returns-unchanged/13173 "2013-07-22T14:52:07Z")

</div>

Hello I am trying to create a shell-script to initiate a new instance and add it to a existing elb. This script will be called later by our monitoring tool to avoid downtime of a service, if the exsting instances fail. …

---

## [Forcing a module to run locally?](https://forum.ansible.com/t/forcing-a-module-to-run-locally/13118)

<div class="topic-metadata">

**Author:** [@Timothy\_Appnel](https://forum.ansible.com/u/Timothy_Appnel)\
**Replies:** 6\
**Last updated:** [July 22, 2013, 2:51am UTC](https://forum.ansible.com/t/forcing-a-module-to-run-locally/13118 "2013-07-22T02:51:11Z")

</div>

How would I optionally force a module to run locally in an action plugin? Can I? If not what is the alternative? I was almost sure I figured this out but apparently not given Serge bug reports that I reproduced. https:…

---

## [Locally skipping a failing test in ansible?](https://forum.ansible.com/t/locally-skipping-a-failing-test-in-ansible/13101)

<div class="topic-metadata">

**Author:** [@Timothy\_Appnel](https://forum.ansible.com/u/Timothy_Appnel)\
**Replies:** 2\
**Last updated:** [July 22, 2013, 2:50am UTC](https://forum.ansible.com/t/locally-skipping-a-failing-test-in-ansible/13101 "2013-07-22T02:50:11Z")

</div>

This is a touch of topic in that the problem is my company's environment than something with ansible. I monitor the state and stability of the devel HEAD using a Jenkins install here. It's been showing red for a month o…

---

## [on the git module and its initial clone](https://forum.ansible.com/t/on-the-git-module-and-its-initial-clone/12047)

<div class="topic-metadata">

**Author:** [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Replies:** 11\
**Last updated:** [July 21, 2013, 4:21pm UTC](https://forum.ansible.com/t/on-the-git-module-and-its-initial-clone/12047 "2013-07-21T16:21:21Z")

</div>

I was browsing the git module code, and noticed that this module, when used initially on an empty target, performs a simple clone. It basically just does this: cmd = "git clone %s %s" % (repo, dest) In other wor…

---

## [What's new on the development branch](https://forum.ansible.com/t/whats-new-on-the-development-branch/13172)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [July 21, 2013, 4:07pm UTC](https://forum.ansible.com/t/whats-new-on-the-development-branch/13172 "2013-07-21T16:07:48Z")

</div>

As promised, I’ve made a very heavy pass through the pull request queue (and bug queue) and have reduced the ticket count by about 100 over the last few days. Per Ohloh, over the last 30 days, we’ve had contributions fro…

---

## [How to debug ansible issues?](https://forum.ansible.com/t/how-to-debug-ansible-issues/13170)

<div class="topic-metadata">

**Author:** [@John\_Anderson](https://forum.ansible.com/u/John_Anderson)\
**Replies:** 1\
**Last updated:** [July 21, 2013, 12:29pm UTC](https://forum.ansible.com/t/how-to-debug-ansible-issues/13170 "2013-07-21T12:29:07Z")

</div>

I have a task like this: name: cloning source from git command: git clone -b {{item.version}} git@url/{{item.name}}.git /opt/src/{{item.name}} with\_items: { name: ‘pkg1’, version: ‘allow\_overriding\_pin’ } { name: ‘pk…

---

## [problem with group intersections](https://forum.ansible.com/t/problem-with-group-intersections/13168)

<div class="topic-metadata">

**Author:** [@James\_Martin2](https://forum.ansible.com/u/James_Martin2)\
**Replies:** 3\
**Last updated:** [July 21, 2013, 12:27pm UTC](https://forum.ansible.com/t/problem-with-group-intersections/13168 "2013-07-21T12:27:55Z")

</div>

For some reason I can't get the group intersection to work. As you can see I have a CentOS group and a riakcs\_cluster group, and then I want to run some plays on the intersection of those two groups, but it seems lik…

---

## [host\_vars question](https://forum.ansible.com/t/host-vars-question/13129)

<div class="topic-metadata">

**Author:** [@Robert\_Beaver](https://forum.ansible.com/u/Robert_Beaver)\
**Replies:** 10\
**Last updated:** [July 20, 2013, 6:01pm UTC](https://forum.ansible.com/t/host-vars-question/13129 "2013-07-20T18:01:29Z")

</div>

Hello, I’ve been using ansible for a few months now and got around to reorganizing my playbooks according to the current best practices recently. I’ve created a host\_vars folder at the top level and put a file in there …

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

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