# Latest

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

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

**Page:** 982

---

## [Managing groups of dynamic hosts](https://forum.ansible.com/t/managing-groups-of-dynamic-hosts/14852)

<div class="topic-metadata">

**Author:** [@Deyna\_Cegielski](https://forum.ansible.com/u/Deyna_Cegielski)\
**Replies:** 2\
**Last updated:** [March 25, 2014, 9:22pm UTC](https://forum.ansible.com/t/managing-groups-of-dynamic-hosts/14852 "2014-03-25T21:22:27Z")

</div>

Hey guys, I’ve written a playbook that defines the configuration policies for an “application server” running nodejs. I’ve been using this playbook to provision a vagrant box (local sandbox) with great success but now I…

---

## [Using Ansible for backups?](https://forum.ansible.com/t/using-ansible-for-backups/14857)

<div class="topic-metadata">

**Author:** [@Mark\_Casey](https://forum.ansible.com/u/Mark_Casey)\
**Replies:** 0\
**Last updated:** [March 25, 2014, 7:51pm UTC](https://forum.ansible.com/t/using-ansible-for-backups/14857 "2014-03-25T19:51:15Z")

</div>

Has any wisdom been established by the community or Ansible proper on which parts of a “backups infrastructure”, if any, Ansible could/should have a part in? Ansible deployments obviously maintain quite a lot of data fo…

---

## [using hostvars not resolving variables "calculated" from facts](https://forum.ansible.com/t/using-hostvars-not-resolving-variables-calculated-from-facts/14847)

<div class="topic-metadata">

**Author:** [@Matt\_Coddington](https://forum.ansible.com/u/Matt_Coddington)\
**Replies:** 9\
**Last updated:** [March 25, 2014, 7:18pm UTC](https://forum.ansible.com/t/using-hostvars-not-resolving-variables-calculated-from-facts/14847 "2014-03-25T19:18:22Z")

</div>

Using Ansible 1.5.3 I’m having some trouble with a situation where I have a variable that I’d like to use in a template that uses “hostvars” but the variable in question is calculated from facts. I have a template that…

---

## [Notify handler as different user](https://forum.ansible.com/t/notify-handler-as-different-user/14834)

<div class="topic-metadata">

**Author:** [@Wei\_Yen\_Lee](https://forum.ansible.com/u/Wei_Yen_Lee)\
**Replies:** 4\
**Last updated:** [March 25, 2014, 3:39pm UTC](https://forum.ansible.com/t/notify-handler-as-different-user/14834 "2014-03-25T15:39:54Z")

</div>

Hi, Long-time lurker, first time poster. First off, thanks for this excellent project. I’d like to know, is it possible to run the ‘notify’ handler as a different user from the task which notified it? E.g.

---

## [module - wait\_for - suggestion/offer of enhancement](https://forum.ansible.com/t/module-wait-for-suggestion-offer-of-enhancement/14854)

<div class="topic-metadata">

**Author:** [@Bryan\_Hunt](https://forum.ansible.com/u/Bryan_Hunt)\
**Replies:** 2\
**Last updated:** [March 25, 2014, 3:25pm UTC](https://forum.ansible.com/t/module-wait-for-suggestion-offer-of-enhancement/14854 "2014-03-25T15:25:45Z")

</div>

The idea behind wait\_for is really good, and essential when dealing with slow starting networking services, but in certain cases it may not be enough. The functionality of wait\_for is to wait for either a file to be cre…

---

## [Role defaults: appending to defaults?](https://forum.ansible.com/t/role-defaults-appending-to-defaults/14849)

<div class="topic-metadata">

**Author:** [@jimbobpalmer](https://forum.ansible.com/u/jimbobpalmer)\
**Replies:** 0\
**Last updated:** [March 25, 2014, 9:05am UTC](https://forum.ansible.com/t/role-defaults-appending-to-defaults/14849 "2014-03-25T09:05:37Z")

</div>

Is there a way to append to the role defaults, e.g. to append extra users to a list of allowed users in sshd?

---

## [date format](https://forum.ansible.com/t/date-format/14843)

<div class="topic-metadata">

**Author:** [@KSS](https://forum.ansible.com/u/KSS)\
**Replies:** 2\
**Last updated:** [March 25, 2014, 7:48am UTC](https://forum.ansible.com/t/date-format/14843 "2014-03-25T07:48:31Z")

</div>

Hi, I have a situation where I need to use the three letter abbreviation for the current month (i.e. Mar for March) rather than the numeric representation. Besides using the shell or command module to register it as a …

---

## [Traceback on group\_by](https://forum.ansible.com/t/traceback-on-group-by/14478)

<div class="topic-metadata">

**Author:** [@Mark\_Casey](https://forum.ansible.com/u/Mark_Casey)\
**Replies:** 7\
**Last updated:** [March 25, 2014, 12:19am UTC](https://forum.ansible.com/t/traceback-on-group-by/14478 "2014-03-25T00:19:48Z")

</div>

Hello, I’m getting a traceback on a group\_by, which is intended to create a group named after each of a host’s existing groups, prepended by a variable that is being set with ‘-e’ at invocation (a site/host-group ID): …

---

## [Ansible set variable task?](https://forum.ansible.com/t/ansible-set-variable-task/12504)

<div class="topic-metadata">

**Author:** [@willthames](https://forum.ansible.com/u/willthames)\
**Replies:** 11\
**Last updated:** [March 24, 2014, 10:39pm UTC](https://forum.ansible.com/t/ansible-set-variable-task/12504 "2014-03-24T22:39:19Z")

</div>

Let’s say that I want to use a variable if it’s passed to ansible-playbook (via -e) and derive it otherwise I can use register to get the results of the derivation, but the actual information I need is then typically in…

---

## [using nohup with ansible & ansible-playbook --\> python error](https://forum.ansible.com/t/using-nohup-with-ansible-ansible-playbook-python-error/14841)

<div class="topic-metadata">

**Author:** [@Lee\_Van\_Steerthem](https://forum.ansible.com/u/Lee_Van_Steerthem)\
**Replies:** 3\
**Last updated:** [March 24, 2014, 6:45pm UTC](https://forum.ansible.com/t/using-nohup-with-ansible-ansible-playbook-python-error/14841 "2014-03-24T18:45:30Z")

</div>

Hello, I want to use the command “nohup” together with ansible or ansible-playbook command so that the process would be detached form the current session. Unfortunately it doens’t work (I think it has problems with the…

---

## [Jinja accessing local dictionary with key as variable from loop](https://forum.ansible.com/t/jinja-accessing-local-dictionary-with-key-as-variable-from-loop/14844)

<div class="topic-metadata">

**Author:** [@thomas.lehmann.priva](https://forum.ansible.com/u/thomas.lehmann.priva)\
**Replies:** 0\
**Last updated:** [March 24, 2014, 6:35pm UTC](https://forum.ansible.com/t/jinja-accessing-local-dictionary-with-key-as-variable-from-loop/14844 "2014-03-24T18:35:14Z")

</div>

Hi, the first line provides a dictionary of actors (names). The values are a list of movies. In a loop over a movie and there over each actor I want to know in how many movies an actor plays a role. I’m not able to ac…

---

## [lineinfile insertbefore only works once using the same line](https://forum.ansible.com/t/lineinfile-insertbefore-only-works-once-using-the-same-line/14833)

<div class="topic-metadata">

**Author:** [@John\_Murphy](https://forum.ansible.com/u/John_Murphy)\
**Replies:** 1\
**Last updated:** [March 24, 2014, 5:15pm UTC](https://forum.ansible.com/t/lineinfile-insertbefore-only-works-once-using-the-same-line/14833 "2014-03-24T17:15:24Z")

</div>

I feel like I’m missing something obvious here: name: PostgreSQL install prep 1 lineinfile: dest=/etc/yum.repos.d/CentOS-Base.repo insertbefore=‘{{item}}’ line=‘exclude=postgresql\*’ state=present with\_items: ‘^#addit…

---

## [Run ansible playbook with only recent changes from repo.](https://forum.ansible.com/t/run-ansible-playbook-with-only-recent-changes-from-repo/14828)

<div class="topic-metadata">

**Author:** [@Bala\_Linux](https://forum.ansible.com/u/Bala_Linux)\
**Replies:** 1\
**Last updated:** [March 24, 2014, 4:59pm UTC](https://forum.ansible.com/t/run-ansible-playbook-with-only-recent-changes-from-repo/14828 "2014-03-24T16:59:59Z")

</div>

Hi Team, First of all, thanks for the great tool. We would like to maintain our servers using ansible. But I would like to know how the following case could be handled. Lets say I have written a playbook to build serv…

---

## [Using "free-form" arguments with the complex-arg passing syntax](https://forum.ansible.com/t/using-free-form-arguments-with-the-complex-arg-passing-syntax/14835)

<div class="topic-metadata">

**Author:** [@Charles\_Duffy](https://forum.ansible.com/u/Charles_Duffy)\
**Replies:** 1\
**Last updated:** [March 24, 2014, 3:23pm UTC](https://forum.ansible.com/t/using-free-form-arguments-with-the-complex-arg-passing-syntax/14835 "2014-03-24T15:23:59Z")

</div>

Howdy, all – I’m generating Ansible playbooks programmatically, and using the complex-args form documented by example at https://github.com/ansible/ansible-examples/blob/master/language\_features/complex\_args.yml. This …

---

## [complex when conditions](https://forum.ansible.com/t/complex-when-conditions/14696)

<div class="topic-metadata">

**Author:** [@Arie\_Skliarouk](https://forum.ansible.com/u/Arie_Skliarouk)\
**Replies:** 15\
**Last updated:** [March 24, 2014, 2:50pm UTC](https://forum.ansible.com/t/complex-when-conditions/14696 "2014-03-24T14:50:09Z")

</div>

Hi, I am migrating ansible from 0.9 to 1.5 and complex when condition don’t work anymore: vars: not\_main: “‘$c\_main’ == ‘no’” is\_main: “‘$c\_main’ == ‘yes’” not\_lxc: “‘$lxc’ != ‘yes’” tasks: This does not work prop…

---

## [Listing a host's roles](https://forum.ansible.com/t/listing-a-hosts-roles/14838)

<div class="topic-metadata">

**Author:** [@ralovely](https://forum.ansible.com/u/ralovely)\
**Replies:** 5\
**Last updated:** [March 24, 2014, 1:14pm UTC](https://forum.ansible.com/t/listing-a-hosts-roles/14838 "2014-03-24T13:14:08Z")

</div>

Hi. Is there any way to obtain the list of roles a Host will be playing ? Something in the same idea as --list-tasks. In the same way, being able to list the groups of a host, from outside a play (i.e… at the command …

---

## [Passing complex variables to a role](https://forum.ansible.com/t/passing-complex-variables-to-a-role/14813)

<div class="topic-metadata">

**Author:** [@Paul\_Oyston](https://forum.ansible.com/u/Paul_Oyston)\
**Replies:** 3\
**Last updated:** [March 24, 2014, 12:33pm UTC](https://forum.ansible.com/t/passing-complex-variables-to-a-role/14813 "2014-03-24T12:33:41Z")

</div>

I’m currently stuck on a bit of an issue trying to pass complex variables to a role that I’ve created, please see this Gist for an example: https://gist.github.com/Synforge/9665085 I’m currently using Ansible with hash…

---

## [Trouble parsing JSON data returned from URI call - making use of user-data in EC2](https://forum.ansible.com/t/trouble-parsing-json-data-returned-from-uri-call-making-use-of-user-data-in-ec2/14769)

<div class="topic-metadata">

**Author:** [@Ben\_Turner](https://forum.ansible.com/u/Ben_Turner)\
**Replies:** 9\
**Last updated:** [March 24, 2014, 2:58am UTC](https://forum.ansible.com/t/trouble-parsing-json-data-returned-from-uri-call-making-use-of-user-data-in-ec2/14769 "2014-03-24T02:58:53Z")

</div>

I’ve been trying to use the user-data provided by EC2 servers to determine a servers hostname. So currently new server come up with a hostname of “ec2-123-234-345-456” or similar, and I’d like in my ansible script to re…

---

## [Small one line change to add full hostname to Ansible facts](https://forum.ansible.com/t/small-one-line-change-to-add-full-hostname-to-ansible-facts/14837)

<div class="topic-metadata">

**Author:** [@herby.gillot1](https://forum.ansible.com/u/herby.gillot1)\
**Replies:** 0\
**Last updated:** [March 24, 2014, 2:19am UTC](https://forum.ansible.com/t/small-one-line-change-to-add-full-hostname-to-ansible-facts/14837 "2014-03-24T02:19:42Z")

</div>

Ansible isn’t providing the full content of platform.node() anywhere, and it’s very useful to have. Pull request: https://github.com/ansible/ansible/pull/6643

---

## [Callback calling a playbook or role](https://forum.ansible.com/t/callback-calling-a-playbook-or-role/14836)

<div class="topic-metadata">

**Author:** [@ralovely](https://forum.ansible.com/u/ralovely)\
**Replies:** 3\
**Last updated:** [March 23, 2014, 11:41pm UTC](https://forum.ansible.com/t/callback-calling-a-playbook-or-role/14836 "2014-03-23T23:41:39Z")

</div>

Hi List. We have a set of tasks in a role that we’d like to be run last on every single host, each time. It seems like a job for a callback. Before I dive into it, is it possible for a callback to run a role (the afte…

---

## [Large-scale deployments with Ansible?](https://forum.ansible.com/t/large-scale-deployments-with-ansible/14760)

<div class="topic-metadata">

**Author:** [@Patrick\_Galbraith](https://forum.ansible.com/u/Patrick_Galbraith)\
**Replies:** 4\
**Last updated:** [March 23, 2014, 6:56am UTC](https://forum.ansible.com/t/large-scale-deployments-with-ansible/14760 "2014-03-23T06:56:20Z")

</div>

Hi all! I’m wanting to talk to anyone who has some large-scale deployments with Ansible to chat about. Please do contact me at patg@patg.net to share or IRC “CaptTofu” Thanks! Regards, Patrick

---

## [Using --limit working on hosts with multiple tasks](https://forum.ansible.com/t/using-limit-working-on-hosts-with-multiple-tasks/14832)

<div class="topic-metadata">

**Author:** [@Mike\_Cavedon](https://forum.ansible.com/u/Mike_Cavedon)\
**Replies:** 5\
**Last updated:** [March 22, 2014, 7:56pm UTC](https://forum.ansible.com/t/using-limit-working-on-hosts-with-multiple-tasks/14832 "2014-03-22T19:56:18Z")

</div>

Hi, I have the following set-up: \[hosts\] am\[201:205\] am\[301:305\] \[matcher:children\] hosts \[memcached:children\] hosts I’m expecting to be able to use “–limit matcher” and have only the tasks associated with “matc…

---

## [Odd global variable substitition behavior](https://forum.ansible.com/t/odd-global-variable-substitition-behavior/14831)

<div class="topic-metadata">

**Author:** [@Aaron\_Hunter](https://forum.ansible.com/u/Aaron_Hunter)\
**Replies:** 0\
**Last updated:** [March 22, 2014, 6:01pm UTC](https://forum.ansible.com/t/odd-global-variable-substitition-behavior/14831 "2014-03-22T18:01:40Z")

</div>

I’m trying to do something complex with variables that allows me to auto-generate kickstart files for the VMs in my inventory. It almost works but I’m getting an odd error. The variables are spread across multiple files …

---

## [Vault pseudo leaf encryption](https://forum.ansible.com/t/vault-pseudo-leaf-encryption/14820)

<div class="topic-metadata">

**Author:** [@ralovely](https://forum.ansible.com/u/ralovely)\
**Replies:** 9\
**Last updated:** [March 22, 2014, 4:10pm UTC](https://forum.ansible.com/t/vault-pseudo-leaf-encryption/14820 "2014-03-22T16:10:24Z")

</div>

Hi all. (reposting because of a silly copy/paste error - sorry about that.) Vault was a great addition to Ansible. Some complained about the lack of leaf encryption. I just published a blog post about a few of our pr…

---

## [Using a list with lineinfile throws an undefined variable error](https://forum.ansible.com/t/using-a-list-with-lineinfile-throws-an-undefined-variable-error/14818)

<div class="topic-metadata">

**Author:** [@Simon\_Munoz](https://forum.ansible.com/u/Simon_Munoz)\
**Replies:** 6\
**Last updated:** [March 22, 2014, 10:54am UTC](https://forum.ansible.com/t/using-a-list-with-lineinfile-throws-an-undefined-variable-error/14818 "2014-03-22T10:54:04Z")

</div>

Hi all, I have tried all that I could think about this, but I wasn’t able to use a list inside a lineinfile call. This is my task code: \` name: php.ini hardening lineinfile: dest=/etc/php5/fpm/php.ini regexp=“{{ i…

---

## [custom hipchat url](https://forum.ansible.com/t/custom-hipchat-url/14829)

<div class="topic-metadata">

**Author:** [@Brent\_Langston1](https://forum.ansible.com/u/Brent_Langston1)\
**Replies:** 0\
**Last updated:** [March 22, 2014, 3:29am UTC](https://forum.ansible.com/t/custom-hipchat-url/14829 "2014-03-22T03:29:53Z")

</div>

It’s relatively new, but hipchat now allows you to self-host a hipchat server. This means the api url will need to be customizable. This is a relatively straightforward change, and should be no-op for existing hipchat m…

---

## [New argument type, int\_list?](https://forum.ansible.com/t/new-argument-type-int-list/14827)

<div class="topic-metadata">

**Author:** [@Romeo\_Theriault](https://forum.ansible.com/u/Romeo_Theriault)\
**Replies:** 3\
**Last updated:** [March 22, 2014, 2:46am UTC](https://forum.ansible.com/t/new-argument-type-int-list/14827 "2014-03-22T02:46:08Z")

</div>

I'm looking to enhance the 'uri' module to accept a list of integer status\_codes. Currently, the argument types are: str, list, dict, bool,int and float. Currently the status\_code parameter is using 'int', but I now n…

---

## [1.4.4 to 1.6 break on localhost playbook](https://forum.ansible.com/t/1-4-4-to-1-6-break-on-localhost-playbook/14822)

<div class="topic-metadata">

**Author:** [@Eric\_Palmer1](https://forum.ansible.com/u/Eric_Palmer1)\
**Replies:** 5\
**Last updated:** [March 21, 2014, 11:12pm UTC](https://forum.ansible.com/t/1-4-4-to-1-6-break-on-localhost-playbook/14822 "2014-03-21T23:12:24Z")

</div>

Hey all I have a set of roles and playbooks to do some configuration on the mac that the playbook is running on

---

## [Output a dynamic inventory](https://forum.ansible.com/t/output-a-dynamic-inventory/14817)

<div class="topic-metadata">

**Author:** [@Juergen\_Brendel](https://forum.ansible.com/u/Juergen_Brendel)\
**Replies:** 3\
**Last updated:** [March 21, 2014, 9:47pm UTC](https://forum.ansible.com/t/output-a-dynamic-inventory/14817 "2014-03-21T21:47:24Z")

</div>

Hello! I have a playbook, which dynamically creates hosts on Amazon EC2 and (also dynamically) adds them to various groups. Ideally, I would like to be able to revisit these hosts on a second run, just in case somethin…

---

## [Using Ansible Galaxy roles in shared project](https://forum.ansible.com/t/using-ansible-galaxy-roles-in-shared-project/14825)

<div class="topic-metadata">

**Author:** [@Shaunak\_Kashyap](https://forum.ansible.com/u/Shaunak_Kashyap)\
**Replies:** 1\
**Last updated:** [March 21, 2014, 8:57pm UTC](https://forum.ansible.com/t/using-ansible-galaxy-roles-in-shared-project/14825 "2014-03-21T20:57:07Z")

</div>

I’m very new to Ansible and just discovered Ansible Galaxy as a way to reuse roles. I’m trying to figure out how best to use it within a project I’m sharing with other team members. Specifically, If I use ansible-galaxy…

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

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