# Latest

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

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

**Page:** 1075

---

## [if file exist condition to execute action](https://forum.ansible.com/t/if-file-exist-condition-to-execute-action/11862)

<div class="topic-metadata">

**Author:** [@Marco\_Vito\_Moscarito](https://forum.ansible.com/u/Marco_Vito_Moscarito)\
**Replies:** 1\
**Last updated:** [September 5, 2012, 11:11am UTC](https://forum.ansible.com/t/if-file-exist-condition-to-execute-action/11862 "2012-09-05T11:11:37Z")

</div>

Hello, I knoww is possible execute a action only if some file don't not exist using creates param, eg: - name: activate apache2 modules action: command /usr/sbin/a2enmod $item creates=/etc/apache2/mods-enabled/$…

---

## [request for comments: Ansible reference card](https://forum.ansible.com/t/request-for-comments-ansible-reference-card/11859)

<div class="topic-metadata">

**Author:** [@jpmens1](https://forum.ansible.com/u/jpmens1)\
**Replies:** 3\
**Last updated:** [September 5, 2012, 5:15am UTC](https://forum.ansible.com/t/request-for-comments-ansible-reference-card/11859 "2012-09-05T05:15:11Z")

</div>

Hello, Please find attached a DRAFT INITIAL FIRST VERYBASIC /dev/null-VERSION (!!) for an Ansible reference card. As usual, this kind of an idea turns out to be more work than anticipated... The idea is to create a d…

---

## [iptables doesn't persist](https://forum.ansible.com/t/iptables-doesnt-persist/11854)

<div class="topic-metadata">

**Author:** [@Mark\_Nottingham](https://forum.ansible.com/u/Mark_Nottingham)\
**Replies:** 4\
**Last updated:** [September 4, 2012, 6:12am UTC](https://forum.ansible.com/t/iptables-doesnt-persist/11854 "2012-09-04T06:12:54Z")

</div>

I’m trying to get iptables https://github.com/brainpage/ansible-library running, and while an individual rule seems to work OK, specifying multiple ones seems to “forget” the previous changes. E.g., if I run: hosts:…

---

## [Yum module problem](https://forum.ansible.com/t/yum-module-problem/11858)

<div class="topic-metadata">

**Author:** [@Seth\_Vidal](https://forum.ansible.com/u/Seth_Vidal)\
**Replies:** 0\
**Last updated:** [September 3, 2012, 7:41pm UTC](https://forum.ansible.com/t/yum-module-problem/11858 "2012-09-03T19:41:10Z")

</div>

For centos 5 try this syntax: name=kernel=2.6.18-308.13.1.el5 notice the difference between the = and the - -sv

---

## [(developers) 0.8 feature preview, modularized server actions in Runner code](https://forum.ansible.com/t/developers-0-8-feature-preview-modularized-server-actions-in-runner-code/11857)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [September 2, 2012, 6:18pm UTC](https://forum.ansible.com/t/developers-0-8-feature-preview-modularized-server-actions-in-runner-code/11857 "2012-09-02T18:18:23Z")

</div>

Of possible interest to Ansible developers, a bit of a preview of an upcoming small code tweak. This coming for 0.8, which is not officially available as a branch as I haven't released 0.7 just yet. Basically this make…

---

## [Yum module problem](https://forum.ansible.com/t/yum-module-problem/11856)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 2\
**Last updated:** [September 2, 2012, 4:50pm UTC](https://forum.ansible.com/t/yum-module-problem/11856 "2012-09-02T16:50:17Z")

</div>

The name is a package specification, so qualifiers like \>= and so on can be used at install time. I'm also not immediately sure whether those can be used at removal time, and haven't tried this yet, but: instead of: …

---

## [The position of argument is mandatory: bug or missing docs?](https://forum.ansible.com/t/the-position-of-argument-is-mandatory-bug-or-missing-docs/11850)

<div class="topic-metadata">

**Author:** [@Marco\_Vito\_Moscarito](https://forum.ansible.com/u/Marco_Vito_Moscarito)\
**Replies:** 2\
**Last updated:** [September 1, 2012, 2:15pm UTC](https://forum.ansible.com/t/the-position-of-argument-is-mandatory-bug-or-missing-docs/11850 "2012-09-01T14:15:38Z")

</div>

Hello, after a day of test using ansible 0.7 (checkout today) i find this "bug": WORK: - name: deploy test application action: file path=/var/www/test owner=www-data group=www-data state=directory FAIL: -…

---

## [ec2\_external\_inventory.py - Present(0.6) & Absent (0.7-Dev)](https://forum.ansible.com/t/ec2-external-inventory-py-present-0-6-absent-0-7-dev/11855)

<div class="topic-metadata">

**Author:** [@\_harsha](https://forum.ansible.com/u/_harsha)\
**Replies:** 2\
**Last updated:** [September 1, 2012, 11:50am UTC](https://forum.ansible.com/t/ec2-external-inventory-py-present-0-6-absent-0-7-dev/11855 "2012-09-01T11:50:51Z")

</div>

Was just starting to experiment with this but any particular reason ec2\_external\_inventory.py is excluded in the latest dev branch? Also executing ansible with the older example script does not help. Its also detailed in…

---

## [Reusing SSH Connections](https://forum.ansible.com/t/reusing-ssh-connections/11848)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 1\
**Last updated:** [September 1, 2012, 1:07am UTC](https://forum.ansible.com/t/reusing-ssh-connections/11848 "2012-09-01T01:07:26Z")

</div>

Have you tried the SSH connection type vs paramiko? That's just "-c ssh" in all versions and can also be configured in 0.7's configuration file. If your SSH supports ControlPersist that should do what you want. How…

---

## [Noob Question: Automating Playbook Execution](https://forum.ansible.com/t/noob-question-automating-playbook-execution/11851)

<div class="topic-metadata">

**Author:** [@Mark\_Theunissen](https://forum.ansible.com/u/Mark_Theunissen)\
**Replies:** 1\
**Last updated:** [August 31, 2012, 8:24pm UTC](https://forum.ansible.com/t/noob-question-automating-playbook-execution/11851 "2012-08-31T20:24:57Z")

</div>

You can make a playbook that includes other playbooks, so you only have to run one to have them all execute. You can also have the ntp, sshd, etc. divided into tasks files, and then include those tasks into a single pla…

---

## [Execute local task pre/pos ansible execution](https://forum.ansible.com/t/execute-local-task-pre-pos-ansible-execution/11847)

<div class="topic-metadata">

**Author:** [@Marco\_Vito\_Moscarito](https://forum.ansible.com/u/Marco_Vito_Moscarito)\
**Replies:** 4\
**Last updated:** [August 31, 2012, 11:50am UTC](https://forum.ansible.com/t/execute-local-task-pre-pos-ansible-execution/11847 "2012-08-31T11:50:51Z")

</div>

Hello all, as first requeest into this ml i need to thank Michel to writing ansible and all other people that help this project with articles, docs, code, patches, tests, .. :slight\_smile: In my test i need to do s…

---

## [require passing a tag ?](https://forum.ansible.com/t/require-passing-a-tag/11846)

<div class="topic-metadata">

**Author:** [@ansibleguest](https://forum.ansible.com/u/ansibleguest)\
**Replies:** 1\
**Last updated:** [August 31, 2012, 11:48am UTC](https://forum.ansible.com/t/require-passing-a-tag/11846 "2012-08-31T11:48:39Z")

</div>

I am using my playbooks right now like in this example: ansible-playbook -i hosts product.yml --tags "dependencies,createuser,install,createdb,configudpate,importdata" With the tags i do the steering which parts of th…

---

## [Any CSS/JS wizards out there want to help me out on the doc site?](https://forum.ansible.com/t/any-css-js-wizards-out-there-want-to-help-me-out-on-the-doc-site/11842)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 1\
**Last updated:** [August 31, 2012, 9:56am UTC](https://forum.ansible.com/t/any-css-js-wizards-out-there-want-to-help-me-out-on-the-doc-site/11842 "2012-08-31T09:56:18Z")

</div>

Hoping someone might like to help with this -- We're using the Sphinx bootstrap theme -- which I like the way it looks a lot -- and want to keep. However, the nav bar at the top is giving some trouble on a few pages (…

---

## [SELinux Module RFC](https://forum.ansible.com/t/selinux-module-rfc/11841)

<div class="topic-metadata">

**Author:** [@Derek\_Carter1](https://forum.ansible.com/u/Derek_Carter1)\
**Replies:** 4\
**Last updated:** [August 30, 2012, 5:06pm UTC](https://forum.ansible.com/t/selinux-module-rfc/11841 "2012-08-30T17:06:02Z")

</div>

I've written the first-draft of an SELinux module. I'm not sure it's ready for a pull request, but I would like your feedback. Let's call it a code review if you like. Here's the code: https://github.com/goozbach/ans…

---

## [Pedantically commented playbook example](https://forum.ansible.com/t/pedantically-commented-playbook-example/11607)

<div class="topic-metadata">

**Author:** [@Fred\_Alger](https://forum.ansible.com/u/Fred_Alger)\
**Replies:** 23\
**Last updated:** [August 30, 2012, 1:15pm UTC](https://forum.ansible.com/t/pedantically-commented-playbook-example/11607 "2012-08-30T13:15:35Z")

</div>

I’ve been working on describing all of the options & useful combinations possible in a playbook by writing one LONG super-commented playbook. This is about 60% done, but I’d love feedback and comments. Is this useful to …

---

## [apt users -- easy bug to squash in apt module](https://forum.ansible.com/t/apt-users-easy-bug-to-squash-in-apt-module/11844)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [August 30, 2012, 12:10pm UTC](https://forum.ansible.com/t/apt-users-easy-bug-to-squash-in-apt-module/11844 "2012-08-30T12:10:32Z")

</div>

Anyone with knowledge/need of the apt module want to fix this? It would be greatly appreciated. https://github.com/ansible/ansible/issues/962 Thanks! --Michael

---

## [module get\_url](https://forum.ansible.com/t/module-get-url/11843)

<div class="topic-metadata">

**Author:** [@yerrysherry](https://forum.ansible.com/u/yerrysherry)\
**Replies:** 1\
**Last updated:** [August 30, 2012, 7:24am UTC](https://forum.ansible.com/t/module-get-url/11843 "2012-08-30T07:24:37Z")

</div>

Hi, In curl: curl -o /var/tmp/web-2.0.1.war -x forward-proxy-nr1.mmis.be:3128 --user user:pass https://www…/web-2.0.1.war Is this possible with get\_url, passing user, password and proxy server? Regards, Gerrit

---

## [Semi-Complicated Ansible OSS Project](https://forum.ansible.com/t/semi-complicated-ansible-oss-project/11838)

<div class="topic-metadata">

**Author:** [@Time\_Less](https://forum.ansible.com/u/Time_Less)\
**Replies:** 6\
**Last updated:** [August 29, 2012, 8:20pm UTC](https://forum.ansible.com/t/semi-complicated-ansible-oss-project/11838 "2012-08-29T20:20:46Z")

</div>

I want to make it as easy to set up a full realistically-sized and realistically-configured distributed database cluster (MySQL, HBase, Cassandra, et al) as it is to set up a single database today. That goal is probably …

---

## [Editing /etc/sudoers with ansible + sed = gobs back slashes?](https://forum.ansible.com/t/editing-etc-sudoers-with-ansible-sed-gobs-back-slashes/11837)

<div class="topic-metadata">

**Author:** [@Zack\_Perry](https://forum.ansible.com/u/Zack_Perry)\
**Replies:** 6\
**Last updated:** [August 29, 2012, 1:13am UTC](https://forum.ansible.com/t/editing-etc-sudoers-with-ansible-sed-gobs-back-slashes/11837 "2012-08-29T01:13:00Z")

</div>

I am setting up a bunch of Fedora 17 nodes. Right after the server provisioning, I use ansible to do configuration management. I wanted to add a Cmd\_Alias to the /etc/sudoers and decided to use a playbook to get it done…

---

## [Ansible support to RackSpace](https://forum.ansible.com/t/ansible-support-to-rackspace/11839)

<div class="topic-metadata">

**Author:** [@Marco\_Vito\_Moscarito](https://forum.ansible.com/u/Marco_Vito_Moscarito)\
**Replies:** 0\
**Last updated:** [August 28, 2012, 8:34pm UTC](https://forum.ansible.com/t/ansible-support-to-rackspace/11839 "2012-08-28T20:34:03Z")

</div>

I start to work on ansible inventory for RackSpace (using OpenCloud API, so i think can be portable, but I'm not able to test on other environment for now). You can see the first relase at: \* https://github.com/mavim…

---

## [On the new (pending) nagios module](https://forum.ansible.com/t/on-the-new-pending-nagios-module/11834)

<div class="topic-metadata">

**Author:** [@Tim\_Bielawa](https://forum.ansible.com/u/Tim_Bielawa)\
**Replies:** 4\
**Last updated:** [August 28, 2012, 2:22pm UTC](https://forum.ansible.com/t/on-the-new-pending-nagios-module/11834 "2012-08-28T14:22:29Z")

</div>

Oh hi, So you may have heard by now that I've ported my func nagios module into an ansible module. \[1\] I thought I'd start a discussion on the lists to see if anyone is testing it, or has questions. And to just gener…

---

## [Stupid Question from a Rookie :)](https://forum.ansible.com/t/stupid-question-from-a-rookie/11836)

<div class="topic-metadata">

**Author:** [@chris6](https://forum.ansible.com/u/chris6)\
**Replies:** 1\
**Last updated:** [August 28, 2012, 1:56pm UTC](https://forum.ansible.com/t/stupid-question-from-a-rookie/11836 "2012-08-28T13:56:08Z")

</div>

\- name: create folder action: raw mkdir /home/MYPC/${ansible\_hostname} Maybe try using the file module here instead of raw? - name: launch uname -a action: raw /uname -a \> /home/MYPC/${ansible\_host…

---

## [(developers) Feature freeze Thursday August 30th for Release September 6th](https://forum.ansible.com/t/developers-feature-freeze-thursday-august-30th-for-release-september-6th/11835)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [August 28, 2012, 12:02pm UTC](https://forum.ansible.com/t/developers-feature-freeze-thursday-august-30th-for-release-september-6th/11835 "2012-08-28T12:02:52Z")

</div>

I'm planning on releasing Ansible 0.7 on (approximately) September 6th, which is next Thursday. Feature patches received after August 30th will be held for Ansible 0.8. (As a reminder, we do monthly releases, so featu…

---

## [Register variables](https://forum.ansible.com/t/register-variables/11833)

<div class="topic-metadata">

**Author:** [@yerrysherry](https://forum.ansible.com/u/yerrysherry)\
**Replies:** 1\
**Last updated:** [August 27, 2012, 7:05pm UTC](https://forum.ansible.com/t/register-variables/11833 "2012-08-27T19:05:31Z")

</div>

Hi, Suppose, this ex.: cat zabbix.yml

---

## [systemd and journal support](https://forum.ansible.com/t/systemd-and-journal-support/11832)

<div class="topic-metadata">

**Author:** [@Mark\_Theunissen](https://forum.ansible.com/u/Mark_Theunissen)\
**Replies:** 1\
**Last updated:** [August 27, 2012, 12:19pm UTC](https://forum.ansible.com/t/systemd-and-journal-support/11832 "2012-08-27T12:19:57Z")

</div>

Hi all, Next week I’ll be attending a systemd code sprint, the specific goal of which is to improve journal support in the native libraries. This includes Python of course, and the others are talking of integrating into…

---

## [creating a directory](https://forum.ansible.com/t/creating-a-directory/11831)

<div class="topic-metadata">

**Author:** [@James8](https://forum.ansible.com/u/James8)\
**Replies:** 3\
**Last updated:** [August 26, 2012, 3:17pm UTC](https://forum.ansible.com/t/creating-a-directory/11831 "2012-08-26T15:17:24Z")

</div>

Hi, I have tried this a bunch of different ways, I'm just posting my last version. Wondering if this is working as expected. I want to create a directory using the command module and it will create it if I take the…

---

## [Proposal: More information about tags in Playbook output](https://forum.ansible.com/t/proposal-more-information-about-tags-in-playbook-output/11830)

<div class="topic-metadata">

**Author:** [@Mark\_Theunissen](https://forum.ansible.com/u/Mark_Theunissen)\
**Replies:** 7\
**Last updated:** [August 26, 2012, 3:10pm UTC](https://forum.ansible.com/t/proposal-more-information-about-tags-in-playbook-output/11830 "2012-08-26T15:10:10Z")

</div>

Currently the output of ansible-playbook doesn’t contain any clue about the tags that are being processed. The can lead to confusion, mostly if a user is developing a playbook which is tag-driven, and forgets to add ‘ta…

---

## ["Understanding Variable Precedence"](https://forum.ansible.com/t/understanding-variable-precedence/11827)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 6\
**Last updated:** [August 25, 2012, 9:48pm UTC](https://forum.ansible.com/t/understanding-variable-precedence/11827 "2012-08-25T21:48:28Z")

</div>

The question about how variables override each other has come up a few times in the last few days. As a result, I added documentation on this to the "Advanced Playbooks" chapter, and am including that here so folks ca…

---

## [Generating a config file with data from other servers](https://forum.ansible.com/t/generating-a-config-file-with-data-from-other-servers/11820)

<div class="topic-metadata">

**Author:** [@James8](https://forum.ansible.com/u/James8)\
**Replies:** 17\
**Last updated:** [August 25, 2012, 1:48pm UTC](https://forum.ansible.com/t/generating-a-config-file-with-data-from-other-servers/11820 "2012-08-25T13:48:15Z")

</div>

Hi, I'm not sure if I have missed the way to do this, but essentially I want to generate parts of my config file with Ansible. This is due in part because often I'm working late into the night and making mistakes wh…

---

## [Terminating a async background job](https://forum.ansible.com/t/terminating-a-async-background-job/11829)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 1\
**Last updated:** [August 25, 2012, 1:20pm UTC](https://forum.ansible.com/t/terminating-a-async-background-job/11829 "2012-08-25T13:20:22Z")

</div>

There is a timeout you can set for which the async engine will automatically kill the job if it runs longer than that. There is, however, no way to stop an async job on demand. Once started, they presently complete…

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

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