# Latest

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

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

**Page:** 1015

---

## [tags not working on post\_tasks include?](https://forum.ansible.com/t/tags-not-working-on-post-tasks-include/13802)

<div class="topic-metadata">

**Author:** [@Dave\_Stern1](https://forum.ansible.com/u/Dave_Stern1)\
**Replies:** 2\
**Last updated:** [October 31, 2013, 5:53pm UTC](https://forum.ansible.com/t/tags-not-working-on-post-tasks-include/13802 "2013-10-31T17:53:54Z")

</div>

I have this playbook:

---

## [Ansible playbook to deploy a personal server with Dockerized apps](https://forum.ansible.com/t/ansible-playbook-to-deploy-a-personal-server-with-dockerized-apps/13808)

<div class="topic-metadata">

**Author:** [@Tom\_Atkins](https://forum.ansible.com/u/Tom_Atkins)\
**Replies:** 1\
**Last updated:** [October 31, 2013, 5:07pm UTC](https://forum.ansible.com/t/ansible-playbook-to-deploy-a-personal-server-with-dockerized-apps/13808 "2013-10-31T17:07:48Z")

</div>

Just thought the list might be interested in my project: I have a working playbook to set up a server with a Ghost blog and piwik analytics. More apps to come soon: https://github.com/Keybits/keybits-server http://key…

---

## [Solr playbook](https://forum.ansible.com/t/solr-playbook/13816)

<div class="topic-metadata">

**Author:** [@Eric\_Palmer1](https://forum.ansible.com/u/Eric_Palmer1)\
**Replies:** 0\
**Last updated:** [October 31, 2013, 5:00pm UTC](https://forum.ansible.com/t/solr-playbook/13816 "2013-10-31T17:00:42Z")

</div>

Anyone have a lucene solr nutch playbook they can share. Nutch is a crawler so I'm looking for a website crawl search playbook. If there aren't any I will try to put one together by January. Thanks Eric

---

## [Ansible errors for non-root sudo users](https://forum.ansible.com/t/ansible-errors-for-non-root-sudo-users/13812)

<div class="topic-metadata">

**Author:** [@Ansible\_User1](https://forum.ansible.com/u/Ansible_User1)\
**Replies:** 1\
**Last updated:** [October 31, 2013, 4:24pm UTC](https://forum.ansible.com/t/ansible-errors-for-non-root-sudo-users/13812 "2013-10-31T16:24:40Z")

</div>

When I try to fire any sudo commands using ansible (both command line tool and Python API) using non-root sudo users, it throws errors as follows: (Note that “xyz” is a non-root user with sudo permissions) Error Patter…

---

## [Conditional expression if alice in \['alice', 'bob'\]](https://forum.ansible.com/t/conditional-expression-if-alice-in-alice-bob/13813)

<div class="topic-metadata">

**Author:** [@Deon\_Bredenhann](https://forum.ansible.com/u/Deon_Bredenhann)\
**Replies:** 1\
**Last updated:** [October 31, 2013, 2:04pm UTC](https://forum.ansible.com/t/conditional-expression-if-alice-in-alice-bob/13813 "2013-10-31T14:04:12Z")

</div>

Hi all So close. I’m trying to set up users by passing a list of users and a hash of user configs. #group\_vars/all user\_definitions: username: alice uid: 1101 username: bob uid: 1102 #group\_vars/web install\_use…

---

## [How do I add a line to a file?](https://forum.ansible.com/t/how-do-i-add-a-line-to-a-file/13806)

<div class="topic-metadata">

**Author:** [@klenwell](https://forum.ansible.com/u/klenwell)\
**Replies:** 6\
**Last updated:** [October 31, 2013, 11:59am UTC](https://forum.ansible.com/t/how-do-i-add-a-line-to-a-file/13806 "2013-10-31T11:59:24Z")

</div>

I would expect this to be pretty simple. I’m using the lineinfile module like so: name: Update bashrc for PythonBrew for foo user lineinfile: dest=/home/foo/.bashrc backup=yes line=“\[\[ -s ${pythonbrew.bashrc\_path} …

---

## [Accelerate mode syntax error on CentOS 5](https://forum.ansible.com/t/accelerate-mode-syntax-error-on-centos-5/13810)

<div class="topic-metadata">

**Author:** [@Kevin\_Sage](https://forum.ansible.com/u/Kevin_Sage)\
**Replies:** 2\
**Last updated:** [October 31, 2013, 5:33am UTC](https://forum.ansible.com/t/accelerate-mode-syntax-error-on-centos-5/13810 "2013-10-31T05:33:37Z")

</div>

I’m trying to switch to accelerate mode and I’m having trouble with my CentOS 5 clients (5.9 to be exact). I’m using the Ansible 1.3 release. It works ok for CentOS 6 clients, but for CentOS 5 I get the following: GAT…

---

## [Trouble accessing LXC container](https://forum.ansible.com/t/trouble-accessing-lxc-container/13779)

<div class="topic-metadata">

**Author:** [@Jay\_Pipes](https://forum.ansible.com/u/Jay_Pipes)\
**Replies:** 3\
**Last updated:** [October 31, 2013, 4:29am UTC](https://forum.ansible.com/t/trouble-accessing-lxc-container/13779 "2013-10-31T04:29:40Z")

</div>

Hi all, I’ve got a couple LXC containers running that I’m trying to experiment with Ansible on: $ sudo lxc-ls --fancy NAME STATE IPV4 IPV6 AUTOSTART

---

## [when\_string and only\_if don't seem to be expanding variables](https://forum.ansible.com/t/when-string-and-only-if-dont-seem-to-be-expanding-variables/13793)

<div class="topic-metadata">

**Author:** [@Andrew\_Martin](https://forum.ansible.com/u/Andrew_Martin)\
**Replies:** 4\
**Last updated:** [October 31, 2013, 2:07am UTC](https://forum.ansible.com/t/when-string-and-only-if-dont-seem-to-be-expanding-variables/13793 "2013-10-31T02:07:14Z")

</div>

Hello, I’m working on a playbook to install several packages and would like to add logic to handle installing to both Debian-based and RHEL-based distros. To this end, I’ve attempted to use “when\_string” and “only\_if” t…

---

## [devel branch users -- some template cleanup/changes](https://forum.ansible.com/t/devel-branch-users-some-template-cleanup-changes/13809)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Replies:** 0\
**Last updated:** [October 31, 2013, 1:42am UTC](https://forum.ansible.com/t/devel-branch-users-some-template-cleanup-changes/13809 "2013-10-31T01:42:29Z")

</div>

Hi all, As you know I posted recently about fixing some ways that references work so you could do things like vars: dog: fido: woof pet: “{{ dog }}” Where before you had to use old style variables like so: vars: …

---

## [automated sshkey distribution to known\_hosts](https://forum.ansible.com/t/automated-sshkey-distribution-to-known-hosts/13805)

<div class="topic-metadata">

**Author:** [@Kesten\_Broughton2](https://forum.ansible.com/u/Kesten_Broughton2)\
**Replies:** 2\
**Last updated:** [October 30, 2013, 9:38pm UTC](https://forum.ansible.com/t/automated-sshkey-distribution-to-known-hosts/13805 "2013-10-30T21:38:55Z")

</div>

I’d like to know what the best practice is for achieving passwordless logins BETWEEN ansible managed hosts. I have wrapped the user module with a playbook that creates sudo priveleged users. The authorized\_keys module …

---

## [Complex Variables from a File from GroupVars?](https://forum.ansible.com/t/complex-variables-from-a-file-from-groupvars/13807)

<div class="topic-metadata">

**Author:** [@Joe2](https://forum.ansible.com/u/Joe2)\
**Replies:** 0\
**Last updated:** [October 30, 2013, 9:23pm UTC](https://forum.ansible.com/t/complex-variables-from-a-file-from-groupvars/13807 "2013-10-30T21:23:59Z")

</div>

I’m new to ansible. I have used the group\_vars/dbservers file to reference a single simple variable but now trying to link a file containing complex variables list. Put most simply what is the syntax for adding a file o…

---

## [Accessing IP address of a virtual network interface](https://forum.ansible.com/t/accessing-ip-address-of-a-virtual-network-interface/13804)

<div class="topic-metadata">

**Author:** [@Guillem\_Liarte](https://forum.ansible.com/u/Guillem_Liarte)\
**Replies:** 1\
**Last updated:** [October 30, 2013, 11:59am UTC](https://forum.ansible.com/t/accessing-ip-address-of-a-virtual-network-interface/13804 "2013-10-30T11:59:52Z")

</div>

Hello all, using ansible-1.3.3-1 I have a similar problem as the one described here: https://github.com/ansible/ansible/issues/3916 From Centos 6.4 I see: eth0 Link encap:Ethernet HWaddr 00:19:99:D4:35:C9 inet addr…

---

## [with\_inventory\_hostnames and --limit](https://forum.ansible.com/t/with-inventory-hostnames-and-limit/13801)

<div class="topic-metadata">

**Author:** [@Nathan\_Howell](https://forum.ansible.com/u/Nathan_Howell)\
**Replies:** 5\
**Last updated:** [October 30, 2013, 3:11am UTC](https://forum.ansible.com/t/with-inventory-hostnames-and-limit/13801 "2013-10-30T03:11:43Z")

</div>

I’ve recently discovered with\_inventory\_hostnames, which seems like exactly what I need, but --limit doesn’t seem to affect it. A quick look at the code seems to tell me that it should work, but I’m not 100% sure. I’m us…

---

## [accelerate mode hanging?](https://forum.ansible.com/t/accelerate-mode-hanging/13800)

<div class="topic-metadata">

**Author:** [@Bryan\_Larsen](https://forum.ansible.com/u/Bryan_Larsen)\
**Replies:** 7\
**Last updated:** [October 30, 2013, 2:01am UTC](https://forum.ansible.com/t/accelerate-mode-hanging/13800 "2013-10-30T02:01:05Z")

</div>

I’m having trouble using accelerate. It fails with the message “timed out while waiting to receive data” Here’s the output from -vvvv if there’s no accelerate process running: attempting connection to play.clara.io via…

---

## [Templates & looping on json data structure](https://forum.ansible.com/t/templates-looping-on-json-data-structure/13760)

<div class="topic-metadata">

**Author:** [@Smain\_Kahlouch](https://forum.ansible.com/u/Smain_Kahlouch)\
**Replies:** 6\
**Last updated:** [October 30, 2013, 1:50am UTC](https://forum.ansible.com/t/templates-looping-on-json-data-structure/13760 "2013-10-30T01:50:44Z")

</div>

Hello, I have a data structure gathered from a postgres db (external inventory) with a list of json data structures as follows : \[ {‘name’: conf1, ‘myvar1’: 1, ‘myvar2’: blabla}, {‘name’: conf2, ‘myvar1’: 44, ‘myvar2…

---

## [handlers in roles list](https://forum.ansible.com/t/handlers-in-roles-list/13795)

<div class="topic-metadata">

**Author:** [@Vincent\_Van\_der\_Kuss](https://forum.ansible.com/u/Vincent_Van_der_Kuss)\
**Replies:** 1\
**Last updated:** [October 30, 2013, 1:50am UTC](https://forum.ansible.com/t/handlers-in-roles-list/13795 "2013-10-30T01:50:21Z")

</div>

Hi, I just wrote a quick playbook to deploy ActiveMQ here. To configure repos and iptables I’m using some existing roles The “iptables” role contains a handler to restart iptables on changes ( when the template changes…

---

## [Calling ansible.runner.Runner](https://forum.ansible.com/t/calling-ansible-runner-runner/13794)

<div class="topic-metadata">

**Author:** [@Ed\_Greenberg](https://forum.ansible.com/u/Ed_Greenberg)\
**Replies:** 1\
**Last updated:** [October 30, 2013, 1:49am UTC](https://forum.ansible.com/t/calling-ansible-runner-runner/13794 "2013-10-30T01:49:18Z")

</div>

In my pre 1.2 code, I would use a function like so: import ansible.runner def \_runner(inventory, module\_name, module\_args, pattern): import ansible.runner try: runner = ansible.runner.Runner( module\_name=module\_nam…

---

## [Should rax\_clb\_nodes exist independently?](https://forum.ansible.com/t/should-rax-clb-nodes-exist-independently/13595)

<div class="topic-metadata">

**Author:** [@sivel](https://forum.ansible.com/u/sivel)\
**Replies:** 11\
**Last updated:** [October 29, 2013, 12:41am UTC](https://forum.ansible.com/t/should-rax-clb-nodes-exist-independently/13595 "2013-10-29T00:41:41Z")

</div>

The ‘rax’ module was designed initially with the potential of supporting additional Rackspace public cloud products and supports a parameter ‘service’ that would be used to make this selection. It does however appear as…

---

## [Capture the output of a playbook and optionally insert it into mongodb](https://forum.ansible.com/t/capture-the-output-of-a-playbook-and-optionally-insert-it-into-mongodb/13789)

<div class="topic-metadata">

**Author:** [@cpatanaik](https://forum.ansible.com/u/cpatanaik)\
**Replies:** 2\
**Last updated:** [October 28, 2013, 5:15pm UTC](https://forum.ansible.com/t/capture-the-output-of-a-playbook-and-optionally-insert-it-into-mongodb/13789 "2013-10-28T17:15:16Z")

</div>

Hi, So I was using the ec2 module of ansible. I was able to sucessfully create a server and with -v option, ansible showed some details to stdout. I would like to know whether there is a way to get the output of the pl…

---

## [Security considerations for AWS EC2 UserData/Metadata in relation to ansible-pull](https://forum.ansible.com/t/security-considerations-for-aws-ec2-userdata-metadata-in-relation-to-ansible-pull/13785)

<div class="topic-metadata">

**Author:** [@josh2](https://forum.ansible.com/u/josh2)\
**Replies:** 1\
**Last updated:** [October 28, 2013, 5:07pm UTC](https://forum.ansible.com/t/security-considerations-for-aws-ec2-userdata-metadata-in-relation-to-ansible-pull/13785 "2013-10-28T17:07:16Z")

</div>

Hello, I’m concerned about the apparent lack of security around EC2 UserData/Metadata mechanism. I want to use the vanilla Amazon Linux AMI across the board in a project on which I’m working, but I’m not too keen on sto…

---

## [authorized\_keys and unique](https://forum.ansible.com/t/authorized-keys-and-unique/13791)

<div class="topic-metadata">

**Author:** [@James\_Cammarata1](https://forum.ansible.com/u/James_Cammarata1)\
**Replies:** 0\
**Last updated:** [October 28, 2013, 5:04pm UTC](https://forum.ansible.com/t/authorized-keys-and-unique/13791 "2013-10-28T17:04:51Z")

</div>

I noticed today that commit 346d46a appears to have the unintended consequence of making all keys in an authorized\_keys file unique, since they are now indexed in a dictionary rather than an array. This makes the “unique…

---

## [Reminder about other mailing lists - ansible-announce and ansible-devel](https://forum.ansible.com/t/reminder-about-other-mailing-lists-ansible-announce-and-ansible-devel/13775)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 1\
**Last updated:** [October 28, 2013, 4:20pm UTC](https://forum.ansible.com/t/reminder-about-other-mailing-lists-ansible-announce-and-ansible-devel/13775 "2013-10-28T16:20:24Z")

</div>

Hi all, Just wanted to share a quick reminder note for new users about the announce list, which is used for release announcements and event news only: https://groups.google.com/forum/#!forum/ansible-announce And also …

---

## [Confusing layout in Documentation](https://forum.ansible.com/t/confusing-layout-in-documentation/13790)

<div class="topic-metadata">

**Author:** [@David\_Long](https://forum.ansible.com/u/David_Long)\
**Replies:** 1\
**Last updated:** [October 28, 2013, 3:58pm UTC](https://forum.ansible.com/t/confusing-layout-in-documentation/13790 "2013-10-28T15:58:02Z")

</div>

I was reading through the documentation for installing Ansible and found, what was to me, a very confusing layout to the installation docs. In the second paragraph of the “Basics / What Will Be Installed” section, it say…

---

## [feature idea: modules forge plugin setup for non-core modules](https://forum.ansible.com/t/feature-idea-modules-forge-plugin-setup-for-non-core-modules/13777)

<div class="topic-metadata">

**Author:** [@Rene\_Moser](https://forum.ansible.com/u/Rene_Moser)\
**Replies:** 5\
**Last updated:** [October 28, 2013, 1:12pm UTC](https://forum.ansible.com/t/feature-idea-modules-forge-plugin-setup-for-non-core-modules/13777 "2013-10-28T13:12:59Z")

</div>

Hi again I like ansible has a lot of modules in the core. On the other hand, the core becomes bigger and messier…maybe “we” should think about a way for a “plug-in” functionality for modules. So the core can stay clean…

---

## [ansible playbook for sensu and graphite](https://forum.ansible.com/t/ansible-playbook-for-sensu-and-graphite/13788)

<div class="topic-metadata">

**Author:** [@rhanna](https://forum.ansible.com/u/rhanna)\
**Replies:** 1\
**Last updated:** [October 28, 2013, 12:34pm UTC](https://forum.ansible.com/t/ansible-playbook-for-sensu-and-graphite/13788 "2013-10-28T12:34:26Z")

</div>

I published a playbook for deploying sensu https://github.com/InformatiQ/sensu-ansible feel free to use it or fix it I would appreciate any feedback/comments on how it is implemented Thanks

---

## [Unifying inventory file format](https://forum.ansible.com/t/unifying-inventory-file-format/13781)

<div class="topic-metadata">

**Author:** [@Francois\_Durand](https://forum.ansible.com/u/Francois_Durand)\
**Replies:** 1\
**Last updated:** [October 28, 2013, 12:29pm UTC](https://forum.ansible.com/t/unifying-inventory-file-format/13781 "2013-10-28T12:29:48Z")

</div>

Hello, Everything in ansible is yaml, except inventory file which is INI, and inventory scripts which output JSON. Wouldn’t it be nice and more consistent to have inventory files in yaml, and inventory scripts outputin…

---

## [putting playbooks in subfolders while using roles](https://forum.ansible.com/t/putting-playbooks-in-subfolders-while-using-roles/13780)

<div class="topic-metadata">

**Author:** [@Francois\_Durand](https://forum.ansible.com/u/Francois_Durand)\
**Replies:** 1\
**Last updated:** [October 28, 2013, 12:26pm UTC](https://forum.ansible.com/t/putting-playbooks-in-subfolders-while-using-roles/13780 "2013-10-28T12:26:53Z")

</div>

Hi, I have many playbooks using several roles. The directory layout is: playbooks/ playbook1.yml playbook2.yml roles/ role1/… role2/… This is working nicely. However, I’d like to be able to group playbooks in diffe…

---

## [Managing multiple users across server types.](https://forum.ansible.com/t/managing-multiple-users-across-server-types/13778)

<div class="topic-metadata">

**Author:** [@Deon\_Bredenhann](https://forum.ansible.com/u/Deon_Bredenhann)\
**Replies:** 1\
**Last updated:** [October 28, 2013, 12:26pm UTC](https://forum.ansible.com/t/managing-multiple-users-across-server-types/13778 "2013-10-28T12:26:05Z")

</div>

Hi all I’m just starting out with Ansible and reading through the docs. I’m doing a template project as I go along. https://github.com/deonbredenhann/ansible\_template So now I need a playbook directory with my top le…

---

## [lookup error exception in /jinja2/environment.py" for apt\_key module since last weeks commits](https://forum.ansible.com/t/lookup-error-exception-in-jinja2-environment-py-for-apt-key-module-since-last-weeks-commits/13782)

<div class="topic-metadata">

**Author:** [@Kesten\_Broughton2](https://forum.ansible.com/u/Kesten_Broughton2)\
**Replies:** 1\
**Last updated:** [October 27, 2013, 10:18pm UTC](https://forum.ansible.com/t/lookup-error-exception-in-jinja2-environment-py-for-apt-key-module-since-last-weeks-commits/13782 "2013-10-27T22:18:20Z")

</div>

Yesterday I synched to the latest ansible head. ad5731b4a80355dbf5aa26db495f60e2e88131e1 When I run the ansible-hadoop playbook I now get failing errors below. Sorry I don’t have any experience with apt\_key to produc…

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

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