# Latest

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

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

**Page:** 1079

---

## [PostgreSQL database and user modules!](https://forum.ansible.com/t/postgresql-database-and-user-modules/11733)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [July 27, 2012, 10:36pm UTC](https://forum.ansible.com/t/postgresql-database-and-user-modules/11733 "2012-07-27T22:36:29Z")

</div>

Very similar to the MySQL modules Mark Theunissen has provided earlier, we now have some PostgreSQL modules from Lorin Hochstein. https://github.com/ansible/ansible/blob/devel/library/postgresql\_db https://github.com/a…

---

## [Run daemon on a server](https://forum.ansible.com/t/run-daemon-on-a-server/11729)

<div class="topic-metadata">

**Author:** [@paweu](https://forum.ansible.com/u/paweu)\
**Replies:** 7\
**Last updated:** [July 27, 2012, 6:28pm UTC](https://forum.ansible.com/t/run-daemon-on-a-server/11729 "2012-07-27T18:28:47Z")

</div>

Hi, I’m trying to run a daemon on a server with ansible: name: “Run daemon” action: shell if \[ -z “$(ps axu | grep daemon | grep -v grep)” \]; then /root/bin/daemon; fi I would like it to turn the daemon on and run t…

---

## [Choosing a subset of hosts to run a playbook on](https://forum.ansible.com/t/choosing-a-subset-of-hosts-to-run-a-playbook-on/11726)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 16\
**Last updated:** [July 27, 2012, 1:41pm UTC](https://forum.ansible.com/t/choosing-a-subset-of-hosts-to-run-a-playbook-on/11726 "2012-07-27T13:41:01Z")

</div>

We do not have any slicing yet. (Like ansible-playbook foo.yml --slice 0-10%) Options include: (A) Create subgroups and pass them in like so: hosts: $hosts ansible-playbook foo.yml --extra-vars=“hosts=blarg” (B) U…

---

## [Cannot get local connection to work](https://forum.ansible.com/t/cannot-get-local-connection-to-work/11731)

<div class="topic-metadata">

**Author:** [@Grzegorz\_Nosek](https://forum.ansible.com/u/Grzegorz_Nosek)\
**Replies:** 4\
**Last updated:** [July 27, 2012, 1:08pm UTC](https://forum.ansible.com/t/cannot-get-local-connection-to-work/11731 "2012-07-27T13:08:53Z")

</div>

Hi, I started playing with ansible playbooks and hit a wall with local connections. I was trying to gather some data (VM ssh keys to build a known\_hosts file) from a few hosts and postprocess them locally. The playboo…

---

## [Small bug in module development page](https://forum.ansible.com/t/small-bug-in-module-development-page/11732)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [July 27, 2012, 12:50pm UTC](https://forum.ansible.com/t/small-bug-in-module-development-page/11732 "2012-07-27T12:50:54Z")

</div>

Thanks, I’ll make a note to fix this when we role out 0.6 docs, right now the online docs cover the master branch for the most part and there are a lot of new 0.6 things not up there yet.

---

## [Who Uses Ansible page now up -- we need you!](https://forum.ansible.com/t/who-uses-ansible-page-now-up-we-need-you/11730)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [July 27, 2012, 3:50am UTC](https://forum.ansible.com/t/who-uses-ansible-page-now-up-we-need-you/11730 "2012-07-27T03:50:19Z")

</div>

I've started a page up here to list people who are using Ansible. http://ansible.github.com/who\_uses\_ansible.html This is very useful to new users deciding to pick up the project, which means more contributors and all …

---

## [copy fails.](https://forum.ansible.com/t/copy-fails/11725)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 3\
**Last updated:** [July 26, 2012, 7:31am UTC](https://forum.ansible.com/t/copy-fails/11725 "2012-07-26T07:31:42Z")

</div>

Hello. I’m loving ansible, but I’m having a little trouble with the copy module. Any advice appreciated. I’m using a playbook to create a directory and then copy some files. The directory creation works. The file copy…

---

## [Ansible-playbooks now in full technicolor](https://forum.ansible.com/t/ansible-playbooks-now-in-full-technicolor/11717)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 3\
**Last updated:** [July 26, 2012, 1:29am UTC](https://forum.ansible.com/t/ansible-playbooks-now-in-full-technicolor/11717 "2012-07-26T01:29:07Z")

</div>

@jp\_mens pushed some very nice additions this morning to colorize parts of playbooks. Failure counts in red, success in green, changes in yellow. I've taken this a bit further and applied this to the rest of ansible p…

---

## ["Who Uses Ansible" page -- want your company listed? send me url info off list](https://forum.ansible.com/t/who-uses-ansible-page-want-your-company-listed-send-me-url-info-off-list/11728)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [July 25, 2012, 10:49pm UTC](https://forum.ansible.com/t/who-uses-ansible-page-want-your-company-listed-send-me-url-info-off-list/11728 "2012-07-25T22:49:48Z")

</div>

Hi all, I received a list of several people who would like their companies and/or projects listed on a "Who Uses Ansible" page back when I did the user survey a couple of months ago. Unfortunately, I never got around t…

---

## [Ansible Resources (Contrib) repo](https://forum.ansible.com/t/ansible-resources-contrib-repo/11727)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [July 25, 2012, 10:37pm UTC](https://forum.ansible.com/t/ansible-resources-contrib-repo/11727 "2012-07-25T22:37:31Z")

</div>

To keep things simple, this is just a simple README with useful links. No standards or process really, though I think I might decline really terrible playbooks or blog posts that say Ansible sucks :slight\_smile: Volu…

---

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

<div class="topic-metadata">

**Author:** [@Cosmin\_Luta](https://forum.ansible.com/u/Cosmin_Luta)\
**Replies:** 13\
**Last updated:** [July 25, 2012, 7:09pm UTC](https://forum.ansible.com/t/ignore-errors/11723 "2012-07-25T19:09:28Z")

</div>

Try: action: shell rpm -e $item --nodeps ; /bin/true Not tested.

---

## [How I got this to talk to Python2.4 on CentOS 5.7](https://forum.ansible.com/t/how-i-got-this-to-talk-to-python2-4-on-centos-5-7/11500)

<div class="topic-metadata">

**Author:** [@Brock\_Angelo](https://forum.ansible.com/u/Brock_Angelo)\
**Replies:** 4\
**Last updated:** [July 25, 2012, 6:56pm UTC](https://forum.ansible.com/t/how-i-got-this-to-talk-to-python2-4-on-centos-5-7/11500 "2012-07-25T18:56:23Z")

</div>

As I’m not super familiar with python, and I’m guessing others who want to try ansible might be in the same boat, just thought I’d document what it took to get my MacBook talking to a CentOS 5 box that is running Python …

---

## [Using ansible to deploy software on an untrusted remote site, cloning from a GIT repository with HTTP authentication](https://forum.ansible.com/t/using-ansible-to-deploy-software-on-an-untrusted-remote-site-cloning-from-a-git-repository-with-http-authentication/11724)

<div class="topic-metadata">

**Author:** [@Ernest0x](https://forum.ansible.com/u/Ernest0x)\
**Replies:** 0\
**Last updated:** [July 25, 2012, 4:22pm UTC](https://forum.ansible.com/t/using-ansible-to-deploy-software-on-an-untrusted-remote-site-cloning-from-a-git-repository-with-http-authentication/11724 "2012-07-25T16:22:44Z")

</div>

Hello, Consider the scenario in which we want to use ansible to deploy software to a remote, non-trusted site by cloning from a GIT repository that needs HTTP authentication. A solution could be to include credentials …

---

## [db module?](https://forum.ansible.com/t/db-module/11720)

<div class="topic-metadata">

**Author:** [@jpmens1](https://forum.ansible.com/u/jpmens1)\
**Replies:** 1\
**Last updated:** [July 25, 2012, 12:04pm UTC](https://forum.ansible.com/t/db-module/11720 "2012-07-25T12:04:43Z")

</div>

I'm thinking about creating a 'db' module for Ansible with the following synopsis: module name: db args: init=template.j2 dest=dbname.ext type={anydbm…

---

## [Story of yum module and the magic code](https://forum.ansible.com/t/story-of-yum-module-and-the-magic-code/11721)

<div class="topic-metadata">

**Author:** [@nix85](https://forum.ansible.com/u/nix85)\
**Replies:** 1\
**Last updated:** [July 25, 2012, 11:28am UTC](https://forum.ansible.com/t/story-of-yum-module-and-the-magic-code/11721 "2012-07-25T11:28:15Z")

</div>

So I was working on changing the yum module to work with the magic module code and … we have a situation. The yum module accepts the following arguments state=installed pkg=pkgspec state=removed pkg=pkgspec state=lates…

---

## [Playbook broken when updating from 0.4.1 to 0.5](https://forum.ansible.com/t/playbook-broken-when-updating-from-0-4-1-to-0-5/11722)

<div class="topic-metadata">

**Author:** [@Cosmin\_Luta](https://forum.ansible.com/u/Cosmin_Luta)\
**Replies:** 1\
**Last updated:** [July 25, 2012, 11:26am UTC](https://forum.ansible.com/t/playbook-broken-when-updating-from-0-4-1-to-0-5/11722 "2012-07-25T11:26:21Z")

</div>

I’ve recently updated from ansible version 0.4.1 (commit f42b6308d3bd) to version 0.5 (commit 22f3967f2cd396) and I noticed my playbook is not working properly anymore. I have a group with two hosts called “vpn”, contain…

---

## [advanced varibles and string operations](https://forum.ansible.com/t/advanced-varibles-and-string-operations/11719)

<div class="topic-metadata">

**Author:** [@Derek\_Carter](https://forum.ansible.com/u/Derek_Carter)\
**Replies:** 0\
**Last updated:** [July 25, 2012, 4:59am UTC](https://forum.ansible.com/t/advanced-varibles-and-string-operations/11719 "2012-07-25T04:59:25Z")

</div>

Why is it that this variable assignment works: is\_cent5: “‘$ansible\_distribution’ == ‘CentOS’ and ‘$ansible\_distribution\_version’.startswith(‘5’)” But this one does not: inventory\_host: “‘$inventory\_hostname’.split(‘.…

---

## [Ranges of hosts in the inventory (INI) file](https://forum.ansible.com/t/ranges-of-hosts-in-the-inventory-ini-file/11718)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [July 25, 2012, 1:57am UTC](https://forum.ansible.com/t/ranges-of-hosts-in-the-inventory-ini-file/11718 "2012-07-25T01:57:20Z")

</div>

I've just pushed a very nice patch from Chin Fang that allows host ranges in the inventory file. It looks like this: \[webservers\] foo.example.com www\[001:050\].example.com If you put leading zeros in there, it will k…

---

## [SSH performance upgrades -- and more coming -- thanks to ANSIBLE\_MODULE\_COMMON bits](https://forum.ansible.com/t/ssh-performance-upgrades-and-more-coming-thanks-to-ansible-module-common-bits/11714)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 2\
**Last updated:** [July 24, 2012, 1:15am UTC](https://forum.ansible.com/t/ssh-performance-upgrades-and-more-coming-thanks-to-ansible-module-common-bits/11714 "2012-07-24T01:15:13Z")

</div>

If you are familiar with the internals of Ansible Runner, the arguments to a module used to be transferred over as a file. For regular modules, this is STILL true, and we'll continue to support that. However, I've mad…

---

## [extending conditional task execution](https://forum.ansible.com/t/extending-conditional-task-execution/11713)

<div class="topic-metadata">

**Author:** [@Timothy\_Appnel](https://forum.ansible.com/u/Timothy_Appnel)\
**Replies:** 2\
**Last updated:** [July 23, 2012, 11:42pm UTC](https://forum.ansible.com/t/extending-conditional-task-execution/11713 "2012-07-23T23:42:43Z")

</div>

Before I just code something up and submit it I wanted to float this one by the list to see if anyone had a different idea or opposed it entirely. I hit a situation today where I needed to conditional run a task based o…

---

## [(Developers): Module code sharing implemented, request for comment, plans going forward](https://forum.ansible.com/t/developers-module-code-sharing-implemented-request-for-comment-plans-going-forward/11704)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 22\
**Last updated:** [July 23, 2012, 6:08pm UTC](https://forum.ansible.com/t/developers-module-code-sharing-implemented-request-for-comment-plans-going-forward/11704 "2012-07-23T18:08:25Z")

</div>

WARNING: exciting but uber-technical internals discussion. If you're just using the app and not hacking on it, you may ignore this. I have implemented a method for Ansible to reuse code in modules without first havin…

---

## [YAML inventory format now deprecated in 0.6, gone in 0.7, here's a conversion script to switch to INI](https://forum.ansible.com/t/yaml-inventory-format-now-deprecated-in-0-6-gone-in-0-7-heres-a-conversion-script-to-switch-to-ini/11711)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 2\
**Last updated:** [July 22, 2012, 1:46pm UTC](https://forum.ansible.com/t/yaml-inventory-format-now-deprecated-in-0-6-gone-in-0-7-heres-a-conversion-script-to-switch-to-ini/11711 "2012-07-22T13:46:29Z")

</div>

I wrote a conversion script that helps users move from the YAML format to the INI format. The YAML parser now prints out a deprecation notice, this is the last release where the YAML inventory parser will be functional.…

---

## [When sudo isn't enough ...](https://forum.ansible.com/t/when-sudo-isnt-enough/11706)

<div class="topic-metadata">

**Author:** [@Steve\_Moyer](https://forum.ansible.com/u/Steve_Moyer)\
**Replies:** 2\
**Last updated:** [July 22, 2012, 11:14am UTC](https://forum.ansible.com/t/when-sudo-isnt-enough/11706 "2012-07-22T11:14:54Z")

</div>

I have an interesting edge case that I haven’t been able to solve and I was hoping someone smarter than I am had already conquered it. I have a normal user account on a Linux host with sudo privileges, but my user direc…

---

## [Improved ways to store host and group variables](https://forum.ansible.com/t/improved-ways-to-store-host-and-group-variables/11710)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 5\
**Last updated:** [July 22, 2012, 7:57am UTC](https://forum.ansible.com/t/improved-ways-to-store-host-and-group-variables/11710 "2012-07-22T07:57:56Z")

</div>

New minor feature. I really wanted to be able to store structured group and host variables separate from my inventory. Assume your inventory file is /etc/ansible/hosts and looks like this: ===== START ===== \[webserve…

---

## [starting to port modules over to the new common code stuff, need help … fire in the hole](https://forum.ansible.com/t/starting-to-port-modules-over-to-the-new-common-code-stuff-need-help-fire-in-the-hole/11712)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [July 21, 2012, 9:20pm UTC](https://forum.ansible.com/t/starting-to-port-modules-over-to-the-new-common-code-stuff-need-help-fire-in-the-hole/11712 "2012-07-21T21:20:11Z")

</div>

I just ported the copy module over, as well as added the md5 function to the core API (because it is useful), saving about 40 lines of code. See the source of library/copy for how it looks now -- this is the pattern to …

---

## [(developers/internals) useful module trick](https://forum.ansible.com/t/developers-internals-useful-module-trick/11709)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 3\
**Last updated:** [July 21, 2012, 11:17am UTC](https://forum.ansible.com/t/developers-internals-useful-module-trick/11709 "2012-07-21T11:17:50Z")

</div>

I cleaned up the way the template module and the copy module reuse the file module, to extend it to other modules. If you ever want to call another module with the EXACT SAME arguments fed to the original module, when y…

---

## [hostvars in actions.](https://forum.ansible.com/t/hostvars-in-actions/11708)

<div class="topic-metadata">

**Author:** [@Timothy\_Appnel](https://forum.ansible.com/u/Timothy_Appnel)\
**Replies:** 2\
**Last updated:** [July 21, 2012, 12:29am UTC](https://forum.ansible.com/t/hostvars-in-actions/11708 "2012-07-21T00:29:29Z")

</div>

I'm not sure if I have found a bug or I am misunderstanding the documentation. It may be related to the problem discussed in the "include variables in tasks" thread from the other day. Under "Accessing Information About…

---

## [(developers) Modules go for "commonality" upgrades](https://forum.ansible.com/t/developers-modules-go-for-commonality-upgrades/11707)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [July 20, 2012, 11:40pm UTC](https://forum.ansible.com/t/developers-modules-go-for-commonality-upgrades/11707 "2012-07-20T23:40:24Z")

</div>

For those that want to help port existing modules to use the new "common code" stuff, I have decided that the classes used (as detailed I prior emails) are fine to start with. Go ahead and have at! I will hold up the…

---

## [Contrib repo: revitalize?](https://forum.ansible.com/t/contrib-repo-revitalize/11692)

<div class="topic-metadata">

**Author:** [@Brad\_Olson](https://forum.ansible.com/u/Brad_Olson)\
**Replies:** 4\
**Last updated:** [July 20, 2012, 8:12pm UTC](https://forum.ansible.com/t/contrib-repo-revitalize/11692 "2012-07-20T20:12:51Z")

</div>

I really want to start collecting useful non-core modules. A while back we tried to resurrect the contrib repo, Right now it lives at bradobro/ansible-contrib. The plan was that once it gets some submissions, we’d tran…

---

## [Module writing guidelines](https://forum.ansible.com/t/module-writing-guidelines/11700)

<div class="topic-metadata">

**Author:** [@nix85](https://forum.ansible.com/u/nix85)\
**Replies:** 9\
**Last updated:** [July 20, 2012, 4:33pm UTC](https://forum.ansible.com/t/module-writing-guidelines/11700 "2012-07-20T16:33:05Z")

</div>

Hello guys, I was wondering if there are any specific module writing guidelines? Some of the modules tend to print stack trace or the standard python error when it does not get the required commandline parameter. I thin…

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

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