# Latest

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

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

**Page:** 1003

---

## [extract sublist out of list](https://forum.ansible.com/t/extract-sublist-out-of-list/14188)

<div class="topic-metadata">

**Author:** [@Johannes\_Zillmann](https://forum.ansible.com/u/Johannes_Zillmann)\
**Replies:** 1\
**Last updated:** [December 20, 2013, 3:33am UTC](https://forum.ansible.com/t/extract-sublist-out-of-list/14188 "2013-12-20T03:33:40Z")

</div>

Hey guys, i’m having following variable object structure: folders: {folder: ‘/’, owner: “owner1”, permission: ‘775’} {folder: ‘/tmp’, owner: “owner2”, permission: ‘777’} {folder: ‘/test’, owner: “owner3”, permission…

---

## [Call for testers: ansible-pull live stdout and verbosity levels](https://forum.ansible.com/t/call-for-testers-ansible-pull-live-stdout-and-verbosity-levels/14186)

<div class="topic-metadata">

**Author:** [@tannerjc](https://forum.ansible.com/u/tannerjc)\
**Replies:** 0\
**Last updated:** [December 19, 2013, 10:02pm UTC](https://forum.ansible.com/t/call-for-testers-ansible-pull-live-stdout-and-verbosity-levels/14186 "2013-12-19T22:02:59Z")

</div>

https://github.com/ansible/ansible/pull/5362 I'm interested in any feedback or test results.

---

## [Registered variables and templates](https://forum.ansible.com/t/registered-variables-and-templates/14110)

<div class="topic-metadata">

**Author:** [@Giorgio\_Valoti](https://forum.ansible.com/u/Giorgio_Valoti)\
**Replies:** 1\
**Last updated:** [December 19, 2013, 4:23pm UTC](https://forum.ansible.com/t/registered-variables-and-templates/14110 "2013-12-19T16:23:25Z")

</div>

Hi all, If I want to use the result of a command within a template I use \`register\`: - name: gather some facts command: ls -l /etc register: etc\_contents and then, in my template: # {{ ansible\_managed }} {% f…

---

## [How should I debug the git module hanging when specifying a hash for the version?](https://forum.ansible.com/t/how-should-i-debug-the-git-module-hanging-when-specifying-a-hash-for-the-version/14184)

<div class="topic-metadata">

**Author:** [@tannerjc](https://forum.ansible.com/u/tannerjc)\
**Replies:** 1\
**Last updated:** [December 19, 2013, 4:16pm UTC](https://forum.ansible.com/t/how-should-i-debug-the-git-module-hanging-when-specifying-a-hash-for-the-version/14184 "2013-12-19T16:16:35Z")

</div>

Tell ansible to keep the remote script and then use use python -m trace to walk through it ... ANSIBLE\_KEEP\_REMOTE\_FILES=1 ansible-playbook -vvvv # grab the remote filename ansible creates # ssh to the remote host py…

---

## [Help formatting local\_action output to facts](https://forum.ansible.com/t/help-formatting-local-action-output-to-facts/14182)

<div class="topic-metadata">

**Author:** [@David\_Neudorfer1](https://forum.ansible.com/u/David_Neudorfer1)\
**Replies:** 1\
**Last updated:** [December 19, 2013, 4:01pm UTC](https://forum.ansible.com/t/help-formatting-local-action-output-to-facts/14182 "2013-12-19T16:01:11Z")

</div>

How do I get my task to return the output as key=value pairs? I’d like to set the four values returned when I do msg= to key name nameserver1,2,3,4. debug: msg=“{{route53\_hosted\_zones.stdout.split() }}” debug: var=…

---

## [Overriding nested role variable from playbook](https://forum.ansible.com/t/overriding-nested-role-variable-from-playbook/14168)

<div class="topic-metadata">

**Author:** [@Brian\_Tatnall](https://forum.ansible.com/u/Brian_Tatnall)\
**Replies:** 1\
**Last updated:** [December 19, 2013, 3:50pm UTC](https://forum.ansible.com/t/overriding-nested-role-variable-from-playbook/14168 "2013-12-19T15:50:54Z")

</div>

I’m getting an error when I try to override a nested role variable from a playbook. Example: appservers.yml

---

## [service (systemd vs. init.d)](https://forum.ansible.com/t/service-systemd-vs-init-d/14183)

<div class="topic-metadata">

**Author:** [@tannerjc](https://forum.ansible.com/u/tannerjc)\
**Replies:** 0\
**Last updated:** [December 19, 2013, 3:47pm UTC](https://forum.ansible.com/t/service-systemd-vs-init-d/14183 "2013-12-19T15:47:12Z")

</div>

I think this would be addressed by: https://github.com/ansible/ansible/pull/5167 If you want to test the patch, feedback would be appreciated.

---

## [make ini\_file case sensitive](https://forum.ansible.com/t/make-ini-file-case-sensitive/14181)

<div class="topic-metadata">

**Author:** [@Leo\_Baltus](https://forum.ansible.com/u/Leo_Baltus)\
**Replies:** 1\
**Last updated:** [December 19, 2013, 3:43pm UTC](https://forum.ansible.com/t/make-ini-file-case-sensitive/14181 "2013-12-19T15:43:29Z")

</div>

Hi, It seems that the ini\_file module converts all options of the original file to lower case. I am not sure if this expected or not but it broke my displaymanager when configuring /etc/kde/kdm/kdmrc in Fedora 20. It…

---

## [When opening bugs and pull requests, new convention...](https://forum.ansible.com/t/when-opening-bugs-and-pull-requests-new-convention/14178)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 0\
**Last updated:** [December 19, 2013, 12:28pm UTC](https://forum.ansible.com/t/when-opening-bugs-and-pull-requests-new-convention/14178 "2013-12-19T12:28:29Z")

</div>

If the bug or pull request about a module, please open a bug like “description” as “module\_name module: description” This lets us easily tell what the ticket is about. Saves us from having to rename everything …

---

## [ec2\_elb doesn't really do what I'd expect](https://forum.ansible.com/t/ec2-elb-doesnt-really-do-what-id-expect/14176)

<div class="topic-metadata">

**Author:** [@willthames](https://forum.ansible.com/u/willthames)\
**Replies:** 2\
**Last updated:** [December 19, 2013, 1:10am UTC](https://forum.ansible.com/t/ec2-elb-doesnt-really-do-what-id-expect/14176 "2013-12-19T01:10:56Z")

</div>

I’d expect the ec2\_elb module to be able to manage the creation/destruction of ELBs themselves, rather than just manage the contents. Is there just no requirement for this or are people using cloudformation or other met…

---

## [refactor help needed](https://forum.ansible.com/t/refactor-help-needed/14126)

<div class="topic-metadata">

**Author:** [@Michael\_Baydoun](https://forum.ansible.com/u/Michael_Baydoun)\
**Replies:** 3\
**Last updated:** [December 19, 2013, 12:08am UTC](https://forum.ansible.com/t/refactor-help-needed/14126 "2013-12-19T00:08:58Z")

</div>

Can the following be refactored so the following array only appears once in the code? \[ ‘/home/youruser/a’, ‘/home/youruser/b’, ‘/home/youruser/c’, ‘/home/youruser/d’ \]

---

## [\[ansible\] Proposing fix for Issue #4324; adding support for su (#5325)](https://forum.ansible.com/t/ansible-proposing-fix-for-issue-4324-adding-support-for-su-5325/14174)

<div class="topic-metadata">

**Author:** [@Paul\_Durivage](https://forum.ansible.com/u/Paul_Durivage)\
**Replies:** 2\
**Last updated:** [December 18, 2013, 11:42pm UTC](https://forum.ansible.com/t/ansible-proposing-fix-for-issue-4324-adding-support-for-su-5325/14174 "2013-12-18T23:42:09Z")

</div>

Hey Michael, Jerome, and the rest of the devel list. I’m not very vocal on this list, and it seems everyone seems to do their best chatting on the mailing list, so I’m bringing my talk here. This about my pull request: h…

---

## [Marking commands as read-only](https://forum.ansible.com/t/marking-commands-as-read-only/14175)

<div class="topic-metadata">

**Author:** [@Giorgio\_Valoti](https://forum.ansible.com/u/Giorgio_Valoti)\
**Replies:** 4\
**Last updated:** [December 18, 2013, 8:18pm UTC](https://forum.ansible.com/t/marking-commands-as-read-only/14175 "2013-12-18T20:18:21Z")

</div>

Hi, When a shell command is executed, Ansible consider it as a modifying action. It’s a sensible default, because it can’t predict the command output, but I’m wondering if there’s a way to declare a command as safe/r…

---

## ["Old" variables vs. "new" variables.](https://forum.ansible.com/t/old-variables-vs-new-variables/13652)

<div class="topic-metadata">

**Author:** [@Dan\_J](https://forum.ansible.com/u/Dan_J)\
**Replies:** 19\
**Last updated:** [December 18, 2013, 4:01pm UTC](https://forum.ansible.com/t/old-variables-vs-new-variables/13652 "2013-12-18T16:01:15Z")

</div>

So, I’ve read in other posts here that the ${var} syntax is being deprecated in favor of the {{ var }} syntax. I’m in the process of replacing the old syntax with the new in my roles, but I’m seeing YAML syntax errors as…

---

## [authorized\_keys with fileglob](https://forum.ansible.com/t/authorized-keys-with-fileglob/14171)

<div class="topic-metadata">

**Author:** [@Yves\_Dorfsman](https://forum.ansible.com/u/Yves_Dorfsman)\
**Replies:** 4\
**Last updated:** [December 18, 2013, 5:15am UTC](https://forum.ansible.com/t/authorized-keys-with-fileglob/14171 "2013-12-18T05:15:58Z")

</div>

Hi, I'm trying to setup authorized\_keys without copying the key files over to the target. When I do this it works: - name: populate authorized\_keys authorized\_keys: user=blah key={{item}} state=present …

---

## [Move files?](https://forum.ansible.com/t/move-files/14165)

<div class="topic-metadata">

**Author:** [@Michael\_Jeffrey](https://forum.ansible.com/u/Michael_Jeffrey)\
**Replies:** 5\
**Last updated:** [December 17, 2013, 9:02pm UTC](https://forum.ansible.com/t/move-files/14165 "2013-12-17T21:02:31Z")

</div>

I am a complete newbie to Ansible and I’m piloting the tool at our company by writing a patching update playbook. I am trying to move all \*repo files in /etc/yum.repos.d to /etc/yum.repos.d/off so we can put our own cus…

---

## [Task workflow](https://forum.ansible.com/t/task-workflow/12065)

<div class="topic-metadata">

**Author:** [@Edgars](https://forum.ansible.com/u/Edgars)\
**Replies:** 10\
**Last updated:** [December 17, 2013, 4:48pm UTC](https://forum.ansible.com/t/task-workflow/12065 "2013-12-17T16:48:58Z")

</div>

Hi everyone! Before Ansible I was using Rundeck (actually I still am) and there is one thing which is in Rundeck and which I miss in Ansible (or I just cant find it) - task workflow. Is there a way to define in what ord…

---

## [re-using role handlers](https://forum.ansible.com/t/re-using-role-handlers/14162)

<div class="topic-metadata">

**Author:** [@Jerome\_Wagner](https://forum.ansible.com/u/Jerome_Wagner)\
**Replies:** 1\
**Last updated:** [December 17, 2013, 2:59pm UTC](https://forum.ansible.com/t/re-using-role-handlers/14162 "2013-12-17T14:59:24Z")

</div>

Hello, I have a role handler that I use to restart instances of node-logstash ; basically it does // roles/logstash/handlers/main.yml name: restart logstash service service: name={{ item.initd\_script }} state=restar…

---

## [Request for testing: upgraded ssh handling now on development HEAD](https://forum.ansible.com/t/request-for-testing-upgraded-ssh-handling-now-on-development-head/14121)

<div class="topic-metadata">

**Author:** [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Replies:** 5\
**Last updated:** [December 17, 2013, 2:47pm UTC](https://forum.ansible.com/t/request-for-testing-upgraded-ssh-handling-now-on-development-head/14121 "2013-12-17T14:47:49Z")

</div>

Hi all, A recent discussion on the development list introduced some great patches from Jerome Wagner, which have streamlined the number of SSH operations Ansible has to perform for a certain class of tasks. This makes t…

---

## [different setting in template for different inventory](https://forum.ansible.com/t/different-setting-in-template-for-different-inventory/14160)

<div class="topic-metadata">

**Author:** [@Marko\_Lisica](https://forum.ansible.com/u/Marko_Lisica)\
**Replies:** 5\
**Last updated:** [December 17, 2013, 1:10pm UTC](https://forum.ansible.com/t/different-setting-in-template-for-different-inventory/14160 "2013-12-17T13:10:11Z")

</div>

Hello, I am trying to make simple NGINX template. I have development inventory (it is vagrant) and staging which is remote VPS. I want to make different default root folder and different log location for these two enviro…

---

## [Regex in Ansible Playbook YAML](https://forum.ansible.com/t/regex-in-ansible-playbook-yaml/14167)

<div class="topic-metadata">

**Author:** [@Danny\_Beutler](https://forum.ansible.com/u/Danny_Beutler)\
**Replies:** 2\
**Last updated:** [December 17, 2013, 5:39am UTC](https://forum.ansible.com/t/regex-in-ansible-playbook-yaml/14167 "2013-12-17T05:39:48Z")

</div>

Hello, I am trying to configure a playbook for setting up nodes in an open stack cluster. As part of the openstack cluster, you can pass a “group” variable which will put nodes in the group on different compute nodes. W…

---

## [How do I pass in a vars\_file associated with a specific group/host?](https://forum.ansible.com/t/how-do-i-pass-in-a-vars-file-associated-with-a-specific-group-host/14163)

<div class="topic-metadata">

**Author:** [@Mike\_Cavedon](https://forum.ansible.com/u/Mike_Cavedon)\
**Replies:** 3\
**Last updated:** [December 16, 2013, 9:00pm UTC](https://forum.ansible.com/t/how-do-i-pass-in-a-vars-file-associated-with-a-specific-group-host/14163 "2013-12-16T21:00:48Z")

</div>

I have the following yml file: Kill RTS components

---

## [More fun with lists](https://forum.ansible.com/t/more-fun-with-lists/14164)

<div class="topic-metadata">

**Author:** [@Ross\_Becker](https://forum.ansible.com/u/Ross_Becker)\
**Replies:** 2\
**Last updated:** [December 16, 2013, 8:59pm UTC](https://forum.ansible.com/t/more-fun-with-lists/14164 "2013-12-16T20:59:23Z")

</div>

So, I’ve found another hiccup with lists. I’m trying to set a value through a python “split” call, and then access the individual pieces. I’ve verified that set\_fact does in fact, set a list, because I can use the result…

---

## [Sites & Roles](https://forum.ansible.com/t/sites-roles/13873)

<div class="topic-metadata">

**Author:** [@Mikhail\_Sobolev](https://forum.ansible.com/u/Mikhail_Sobolev)\
**Replies:** 2\
**Last updated:** [December 16, 2013, 7:04pm UTC](https://forum.ansible.com/t/sites-roles/13873 "2013-12-16T19:04:32Z")

</div>

Hi, (Disclaimer: I’m very new to ansible so I easily might miss something very straightforward.) I have a number of sites, e.g. site1, site2, …, siteN. Each site has a number of machines that play a particular “role”, …

---

## [delete example ldap db](https://forum.ansible.com/t/delete-example-ldap-db/14161)

<div class="topic-metadata">

**Author:** [@Marc\_Patermann](https://forum.ansible.com/u/Marc_Patermann)\
**Replies:** 3\
**Last updated:** [December 16, 2013, 5:12pm UTC](https://forum.ansible.com/t/delete-example-ldap-db/14161 "2013-12-16T17:12:24Z")

</div>

Hi, I'm building a playbook to install and configure openldap on SLES. The original openldap server installs an example db at /var/lib/ldap. This files have to be removed, before I can install my own db. What is the …

---

## [Only the vars associated with the first parent are getting defined even when the second parent is specified](https://forum.ansible.com/t/only-the-vars-associated-with-the-first-parent-are-getting-defined-even-when-the-second-parent-is-specified/14157)

<div class="topic-metadata">

**Author:** [@Mike\_Cavedon](https://forum.ansible.com/u/Mike_Cavedon)\
**Replies:** 8\
**Last updated:** [December 16, 2013, 3:39pm UTC](https://forum.ansible.com/t/only-the-vars-associated-with-the-first-parent-are-getting-defined-even-when-the-second-parent-is-specified/14157 "2013-12-16T15:39:43Z")

</div>

I have the following: name: router name: request\_router children: \[router\] vars: component\_script: ‘requestrouter.sh’ process\_identifier: ‘log4j-dxad-web.xml’ name: memcached\_router children: \[router\] vars: comp…

---

## [Role to encapsulate several OS specific "sub-roles"](https://forum.ansible.com/t/role-to-encapsulate-several-os-specific-sub-roles/14133)

<div class="topic-metadata">

**Author:** [@sebbrochet](https://forum.ansible.com/u/sebbrochet)\
**Replies:** 3\
**Last updated:** [December 16, 2013, 2:50pm UTC](https://forum.ansible.com/t/role-to-encapsulate-several-os-specific-sub-roles/14133 "2013-12-16T14:50:31Z")

</div>

Hello, I’ve written a role to install and configure Apache, the role is at the moment specific to Debian. This means my role/apache/tasks/main.yml contains corresponding tasks. I need also to support CentOS. I could …

---

## [issue when starting tomcat](https://forum.ansible.com/t/issue-when-starting-tomcat/13540)

<div class="topic-metadata">

**Author:** [@Jean\_Philippe\_Caruan](https://forum.ansible.com/u/Jean_Philippe_Caruan)\
**Replies:** 18\
**Last updated:** [December 16, 2013, 1:25pm UTC](https://forum.ansible.com/t/issue-when-starting-tomcat/13540 "2013-12-16T13:25:55Z")

</div>

Hi, I'm trying to install and run a tomcat instance. I followed the example code at https://github.com/ansible/ansible-examples/tree/master/tomcat-standalone and it works fine except for starting tomcat. My roles/to…

---

## [EC2 modules refactor](https://forum.ansible.com/t/ec2-modules-refactor/14159)

<div class="topic-metadata">

**Author:** [@willthames](https://forum.ansible.com/u/willthames)\
**Replies:** 1\
**Last updated:** [December 16, 2013, 1:01pm UTC](https://forum.ansible.com/t/ec2-modules-refactor/14159 "2013-12-16T13:01:54Z")

</div>

There is an awful lot of common code in the EC2 modules that would make a lot more sense to provide through module\_utils/ec2.py At the moment, the list of AWS regions and the code that determines what region to log into…

---

## [Issues with connecting to a host](https://forum.ansible.com/t/issues-with-connecting-to-a-host/14147)

<div class="topic-metadata">

**Author:** [@Drew\_Decker](https://forum.ansible.com/u/Drew_Decker)\
**Replies:** 15\
**Last updated:** [December 15, 2013, 6:11pm UTC](https://forum.ansible.com/t/issues-with-connecting-to-a-host/14147 "2013-12-15T18:11:39Z")

</div>

I’m having a weird issue with only one of my hosts that I’m trying to connect with. I initially had this issue with Ansible 1.3, but I decided to test it using the dev trunk (ansible 1.5 (devel dc41912158) last updated 2…

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

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