# Latest

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

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

**Page:** 1060

---

## [A really nice Ansible youtube presentation from Alexandre Bourget](https://forum.ansible.com/t/a-really-nice-ansible-youtube-presentation-from-alexandre-bourget/12340)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 5\
**Last updated:** [February 13, 2013, 6:45pm UTC](https://forum.ansible.com/t/a-really-nice-ansible-youtube-presentation-from-alexandre-bourget/12340 "2013-02-13T18:45:10Z")

</div>

Alexandre can code playbooks and modules faster than me! I'm hoping it's just the miracle of television. Check it out here: http://www.youtube.com/watch?v=up3ofvQNm8c&feature=youtu.be&a --Michael

---

## [Building RPM of ansible 1.0 -- issues encountered](https://forum.ansible.com/t/building-rpm-of-ansible-1-0-issues-encountered/12346)

<div class="topic-metadata">

**Author:** [@VK1](https://forum.ansible.com/u/VK1)\
**Replies:** 6\
**Last updated:** [February 13, 2013, 4:52pm UTC](https://forum.ansible.com/t/building-rpm-of-ansible-1-0-issues-encountered/12346 "2013-02-13T16:52:24Z")

</div>

Hi, This is in RHEL6: I'm trying to build ansible with 'rpmbuild -tb \<tarball\>' by re-creating ansible-1.0.tar.gz Issues: 1. Minor - rpmbuild and the spec file assume ansible-1.0.tar.gz containing a directory called …

---

## [Appending options with ini\_file?](https://forum.ansible.com/t/appending-options-with-ini-file/12345)

<div class="topic-metadata">

**Author:** [@Nolan\_Darilek](https://forum.ansible.com/u/Nolan_Darilek)\
**Replies:** 8\
**Last updated:** [February 13, 2013, 4:47pm UTC](https://forum.ansible.com/t/appending-options-with-ini-file/12345 "2013-02-13T16:47:30Z")

</div>

I'm using Ansible to create a backupninja config, which claims to be an INI. I have a default .rdiff file which specifies things like so: \[source\] ... include = /root include = /home include = /usr/local and I want…

---

## [Using ansible in a host-centric fashion](https://forum.ansible.com/t/using-ansible-in-a-host-centric-fashion/12347)

<div class="topic-metadata">

**Author:** [@martin\_f\_krafft](https://forum.ansible.com/u/martin_f_krafft)\
**Replies:** 2\
**Last updated:** [February 13, 2013, 1:13pm UTC](https://forum.ansible.com/t/using-ansible-in-a-host-centric-fashion/12347 "2013-02-13T13:13:44Z")

</div>

Dear list, Ansible configuration management seems to be based on the idea that I invoke a playbook, which then specifies which tasks to run on whatever the nodes may be. By this logic, one might create a playbook con…

---

## [mode option for lineinfile](https://forum.ansible.com/t/mode-option-for-lineinfile/12344)

<div class="topic-metadata">

**Author:** [@Yves\_Dorfsman](https://forum.ansible.com/u/Yves_Dorfsman)\
**Replies:** 6\
**Last updated:** [February 12, 2013, 10:46pm UTC](https://forum.ansible.com/t/mode-option-for-lineinfile/12344 "2013-02-12T22:46:29Z")

</div>

Since lineinfile has a create= option, would it make sense to have a mode= option as well? Otherwise we end up relying on the user's umask...

---

## [Bug/crash  in the setup module in detecting virtual devices (md0).](https://forum.ansible.com/t/bug-crash-in-the-setup-module-in-detecting-virtual-devices-md0/12341)

<div class="topic-metadata">

**Author:** [@Kavin](https://forum.ansible.com/u/Kavin)\
**Replies:** 7\
**Last updated:** [February 12, 2013, 7:00pm UTC](https://forum.ansible.com/t/bug-crash-in-the-setup-module-in-detecting-virtual-devices-md0/12341 "2013-02-12T19:00:58Z")

</div>

So i just pulled the latest release of ansible, as it has a much needed feature for me, to get devices information , When i tried to run it against our inventory, it kept giving this stack trace, Then i compared against…

---

## [conditional gziping of files](https://forum.ansible.com/t/conditional-gziping-of-files/12342)

<div class="topic-metadata">

**Author:** [@kahlil.hodgson](https://forum.ansible.com/u/kahlil.hodgson)\
**Replies:** 4\
**Last updated:** [February 12, 2013, 6:42pm UTC](https://forum.ansible.com/t/conditional-gziping-of-files/12342 "2013-02-12T18:42:20Z")

</div>

Hi All, I'm using the following task to ensure static files have an up to date pre-compressed version (so nginx can serve them more quickly): - name: 'ensure static files have been gziped' with\_lines: - find …

---

## [instance\_tags format](https://forum.ansible.com/t/instance-tags-format/12339)

<div class="topic-metadata">

**Author:** [@Filip\_Slunecko](https://forum.ansible.com/u/Filip_Slunecko)\
**Replies:** 6\
**Last updated:** [February 12, 2013, 8:55am UTC](https://forum.ansible.com/t/instance-tags-format/12339 "2013-02-12T08:55:40Z")

</div>

Hi, I am trying to use instance\_tags from ec2 module and I am not able to figure out the right syntaxe. I tried: ec2\_instance\_tags: ‘{“Name”: “test”}’ ec2\_instance\_tags: Name: test and still no luck to find right f…

---

## [Condition Pauses?](https://forum.ansible.com/t/condition-pauses/12321)

<div class="topic-metadata">

**Author:** [@fdavis](https://forum.ansible.com/u/fdavis)\
**Replies:** 5\
**Last updated:** [February 12, 2013, 12:26am UTC](https://forum.ansible.com/t/condition-pauses/12321 "2013-02-12T00:26:37Z")

</div>

The other day we noticed that the Pause module is unconditional. only\_if/when\_\* don’t effect its being used or not. I believe that this is related to its “BYPASS HOST LOOP” behaviour. (Being that it bypasses the host l…

---

## [insertbefore](https://forum.ansible.com/t/insertbefore/12334)

<div class="topic-metadata">

**Author:** [@Yves\_Dorfsman](https://forum.ansible.com/u/Yves_Dorfsman)\
**Replies:** 8\
**Last updated:** [February 11, 2013, 11:19pm UTC](https://forum.ansible.com/t/insertbefore/12334 "2013-02-11T23:19:34Z")

</div>

If there is appetite for an "insertbefore" option for the lineinfile module, I have just added a pull request for it. I know that in my short use of ansible, there are a few times where this would have been useful. Also…

---

## [Playbook full path variable](https://forum.ansible.com/t/playbook-full-path-variable/12338)

<div class="topic-metadata">

**Author:** [@Ernest0x](https://forum.ansible.com/u/Ernest0x)\
**Replies:** 2\
**Last updated:** [February 11, 2013, 5:16pm UTC](https://forum.ansible.com/t/playbook-full-path-variable/12338 "2013-02-11T17:16:35Z")

</div>

Hello, Well, this must be really simple, but I cannot find an answer... How can I get the full path of the playbook that is being deployed (I mean getting this value inside that playbook)? Is there any variable (in f…

---

## [Preventing a sql script from running again?](https://forum.ansible.com/t/preventing-a-sql-script-from-running-again/12336)

<div class="topic-metadata">

**Author:** [@Tin\_Tvrtkovic](https://forum.ansible.com/u/Tin_Tvrtkovic)\
**Replies:** 1\
**Last updated:** [February 11, 2013, 1:10pm UTC](https://forum.ansible.com/t/preventing-a-sql-script-from-running-again/12336 "2013-02-11T13:10:54Z")

</div>

I generally drop the database before hand and recreate it (as was suggested by a few of the regulars here a few weeks ago). Sure you’ll lose all your data, but it’s idempotent and will apply any potential changes to the …

---

## [group\_by is a conditional](https://forum.ansible.com/t/group-by-is-a-conditional/12335)

<div class="topic-metadata">

**Author:** [@Ahmad\_Khayyat](https://forum.ansible.com/u/Ahmad_Khayyat)\
**Replies:** 1\
**Last updated:** [February 11, 2013, 1:10pm UTC](https://forum.ansible.com/t/group-by-is-a-conditional/12335 "2013-02-11T13:10:39Z")

</div>

A suggestion for the docs: Shouldn’t group\_by be discussed as a conditional mechanism? It allows conditional actions based on facts. Effectively, it’s a coarse-grain conditional construct that applies to an entire pla…

---

## [Arbitrary environment and proxy support implemented](https://forum.ansible.com/t/arbitrary-environment-and-proxy-support-implemented/12326)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 5\
**Last updated:** [February 11, 2013, 1:03pm UTC](https://forum.ansible.com/t/arbitrary-environment-and-proxy-support-implemented/12326 "2013-02-11T13:03:55Z")

</div>

I just implemented the ability to pass arbitrary environments to any task. Currently there is no support to set this for an entire \*play\* though that's quite easy to do and then we can just merge the hashes together…

---

## [ufw or iptables module](https://forum.ansible.com/t/ufw-or-iptables-module/12337)

<div class="topic-metadata">

**Author:** [@Tin\_Tvrtkovic](https://forum.ansible.com/u/Tin_Tvrtkovic)\
**Replies:** 0\
**Last updated:** [February 11, 2013, 9:15am UTC](https://forum.ansible.com/t/ufw-or-iptables-module/12337 "2013-02-11T09:15:34Z")

</div>

I’ve generally only needed to open up very specific ports on my hosts, nothing very complicated. For that I’ve used snippets like: name: ensure PostgreSQL main port is open shell: iptables -D INPUT -p tcp --dport 5432…

---

## [Newbie question - parsing filenames to fetch in output of command on remote host.](https://forum.ansible.com/t/newbie-question-parsing-filenames-to-fetch-in-output-of-command-on-remote-host/12300)

<div class="topic-metadata">

**Author:** [@VK1](https://forum.ansible.com/u/VK1)\
**Replies:** 2\
**Last updated:** [February 11, 2013, 4:44am UTC](https://forum.ansible.com/t/newbie-question-parsing-filenames-to-fetch-in-output-of-command-on-remote-host/12300 "2013-02-11T04:44:53Z")

</div>

Hi, I'm just starting to experiment with ansible. A simple use case (using ansible-0.9 on a RHEL 6 control node as root with a key trusted by clients) I'm copying a source tarball from one host to a build server (RHEL6…

---

## [Preventing a sql script from running again?](https://forum.ansible.com/t/preventing-a-sql-script-from-running-again/12331)

<div class="topic-metadata">

**Author:** [@Romeo\_Theriault](https://forum.ansible.com/u/Romeo_Theriault)\
**Replies:** 1\
**Last updated:** [February 11, 2013, 12:11am UTC](https://forum.ansible.com/t/preventing-a-sql-script-from-running-again/12331 "2013-02-11T00:11:55Z")

</div>

What Lorin pointed you at is good but if you're running the script against a remote sql server you might have to create a task ahead of the sql script task, which checks if the schema exists and store the result in a r…

---

## [Preventing a sql script from running again?](https://forum.ansible.com/t/preventing-a-sql-script-from-running-again/12330)

<div class="topic-metadata">

**Author:** [@Lorin\_Hochstein1](https://forum.ansible.com/u/Lorin_Hochstein1)\
**Replies:** 0\
**Last updated:** [February 10, 2013, 11:20pm UTC](https://forum.ansible.com/t/preventing-a-sql-script-from-running-again/12330 "2013-02-10T23:20:29Z")

</div>

Hi Simon: Take a look at this tip: https://coderwall.com/p/7viila Take care, Lorin

---

## [Expanding the command module: rc\_ok, rc\_changed, rc\_failed?](https://forum.ansible.com/t/expanding-the-command-module-rc-ok-rc-changed-rc-failed/12329)

<div class="topic-metadata">

**Author:** [@fdavis](https://forum.ansible.com/u/fdavis)\
**Replies:** 1\
**Last updated:** [February 10, 2013, 9:43pm UTC](https://forum.ansible.com/t/expanding-the-command-module-rc-ok-rc-changed-rc-failed/12329 "2013-02-10T21:43:00Z")

</div>

An issue that seems to come up here and there is that the command module assumes changed, unless rc!=0, in which case it assumes failure. Maybe we could add “rc\_changed”, “rc\_failed”, and “rc\_ok”. This way the comman…

---

## [Ansible and configuration verification?](https://forum.ansible.com/t/ansible-and-configuration-verification/12328)

<div class="topic-metadata">

**Author:** [@fdavis](https://forum.ansible.com/u/fdavis)\
**Replies:** 1\
**Last updated:** [February 10, 2013, 9:39pm UTC](https://forum.ansible.com/t/ansible-and-configuration-verification/12328 "2013-02-10T21:39:13Z")

</div>

Hello, (short version) We want to discuss adding a test parameter to playbooks and tasks. Verification of configuration is an important step to making sure your systems are in the state you believe they are in. An …

---

## [Group project? Adding --check mode to core modules](https://forum.ansible.com/t/group-project-adding-check-mode-to-core-modules/12323)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 3\
**Last updated:** [February 10, 2013, 5:39pm UTC](https://forum.ansible.com/t/group-project-adding-check-mode-to-core-modules/12323 "2013-02-10T17:39:55Z")

</div>

Currently right now only the file/template and copy modules support check mode, which allows you to see if something would change without making changes. It would be desirable if all modules could do this. Would folk…

---

## [Gathering facts on a host not in the playbook](https://forum.ansible.com/t/gathering-facts-on-a-host-not-in-the-playbook/12322)

<div class="topic-metadata">

**Author:** [@fdavis](https://forum.ansible.com/u/fdavis)\
**Replies:** 2\
**Last updated:** [February 10, 2013, 5:26am UTC](https://forum.ansible.com/t/gathering-facts-on-a-host-not-in-the-playbook/12322 "2013-02-10T05:26:35Z")

</div>

Hello again, I came across a situation where I was having a playbook run just to gather facts for a template later on.

---

## [Want to help close some bugs? Here are a handful of easy tickets](https://forum.ansible.com/t/want-to-help-close-some-bugs-here-are-a-handful-of-easy-tickets/12324)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [February 10, 2013, 4:55am UTC](https://forum.ansible.com/t/want-to-help-close-some-bugs-here-are-a-handful-of-easy-tickets/12324 "2013-02-10T04:55:19Z")

</div>

I've went through and organized our tickets again. If folks are looking for some easy contributions to dive in with Ansible, these might be a good choice: https://github.com/ansible/ansible/issues?labels=bug&state=ope…

---

## [Global vars file?](https://forum.ansible.com/t/global-vars-file/12320)

<div class="topic-metadata">

**Author:** [@fdavis](https://forum.ansible.com/u/fdavis)\
**Replies:** 5\
**Last updated:** [February 10, 2013, 4:38am UTC](https://forum.ansible.com/t/global-vars-file/12320 "2013-02-10T04:38:00Z")

</div>

In the case of variables that don’t change for an entire infrastructure. Such as, the ticket queue gets emails at “admin@your.domain.here” I was wondering if there could be an easier/automatic way to include a ‘global-…

---

## [Getting excited about things merged in for 1.1! (modules for RabbitMQ, MongoDB, and more)](https://forum.ansible.com/t/getting-excited-about-things-merged-in-for-1-1-modules-for-rabbitmq-mongodb-and-more/12319)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [February 9, 2013, 7:54pm UTC](https://forum.ansible.com/t/getting-excited-about-things-merged-in-for-1-1-modules-for-rabbitmq-mongodb-and-more/12319 "2013-02-09T19:54:10Z")

</div>

I've written previously about --check mode and --diff mode being added (and still working on making these even better). Did you also know about? 3 new Rabbit MQ modules -- users, plugins, and vhosts a MongoDB user mo…

---

## [New in 1.1 -- Diff mode for templates! Works with and without --check, but prefers --limit](https://forum.ansible.com/t/new-in-1-1-diff-mode-for-templates-works-with-and-without-check-but-prefers-limit/12312)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 9\
**Last updated:** [February 9, 2013, 2:46pm UTC](https://forum.ansible.com/t/new-in-1-1-diff-mode-for-templates-works-with-and-without-check-but-prefers-limit/12312 "2013-02-09T14:46:11Z")

</div>

So --check is a recently added "pseudo dry run" feature which I just recently talked about. So far, modules like file, template, and copy respond to --check and will give you whether things would change or not, and th…

---

## [feature request ansible alias](https://forum.ansible.com/t/feature-request-ansible-alias/12315)

<div class="topic-metadata">

**Author:** [@Fff\_Fff](https://forum.ansible.com/u/Fff_Fff)\
**Replies:** 7\
**Last updated:** [February 9, 2013, 2:22am UTC](https://forum.ansible.com/t/feature-request-ansible-alias/12315 "2013-02-09T02:22:58Z")

</div>

Rather than type “ansible” every time I want to do something I have created alias an=‘/usr/bin/ansible’ in .bashrc I was wondering if something like this has been considered as a feature in ansible?

---

## [Notifying handlers only on items in loop that changed](https://forum.ansible.com/t/notifying-handlers-only-on-items-in-loop-that-changed/12308)

<div class="topic-metadata">

**Author:** [@Andrew\_Berman](https://forum.ansible.com/u/Andrew_Berman)\
**Replies:** 4\
**Last updated:** [February 9, 2013, 1:50am UTC](https://forum.ansible.com/t/notifying-handlers-only-on-items-in-loop-that-changed/12308 "2013-02-09T01:50:23Z")

</div>

Hello, I was wondering if it’s possible to do something like this scenario: Create a bunch of users using a with\_items loop, then notify #2 Set the password on those users using the with\_items loop Then at a later dat…

---

## [coderwall for ansible tips?](https://forum.ansible.com/t/coderwall-for-ansible-tips/12317)

<div class="topic-metadata">

**Author:** [@Lorin\_Hochstein1](https://forum.ansible.com/u/Lorin_Hochstein1)\
**Replies:** 1\
**Last updated:** [February 8, 2013, 10:46pm UTC](https://forum.ansible.com/t/coderwall-for-ansible-tips/12317 "2013-02-08T22:46:41Z")

</div>

Is anybody using coderwall? Seems like a potentially interesting place to put Ansible-related tips. I put a couple of ansible-related tips on there, but that’s it so far. https://coderwall.com/p/t/ansible Lorin

---

## [only\_if last\_result.changed](https://forum.ansible.com/t/only-if-last-result-changed/12316)

<div class="topic-metadata">

**Author:** [@James8](https://forum.ansible.com/u/James8)\
**Replies:** 4\
**Last updated:** [February 8, 2013, 7:44pm UTC](https://forum.ansible.com/t/only-if-last-result-changed/12316 "2013-02-08T19:44:54Z")

</div>

Hi, Am I doing this wrong? I’m not sure if I’m doing the only\_if correctly? name: copy a better SSH Config action: copy src=…/…/…/global/templates/sshd\_config.j2 dest=/etc/ssh/sshd\_config owner=root group=root mode=…

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

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