# Latest

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

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

**Page:** 928

---

## ["--host" functionality for a dynamic inventory](https://forum.ansible.com/t/host-functionality-for-a-dynamic-inventory/16537)

<div class="topic-metadata">

**Author:** [@Tomas\_Karasek](https://forum.ansible.com/u/Tomas_Karasek)\
**Replies:** 2\
**Last updated:** [October 17, 2014, 2:50pm UTC](https://forum.ansible.com/t/host-functionality-for-a-dynamic-inventory/16537 "2014-10-17T14:50:36Z")

</div>

Hello, is it necessary to implement the --host functionality when my dynamic inventroy script returns all the hosts in \_meta? I refer to http://docs.ansible.com/developing\_inventory.html#tuning-the-external-inventory-…

---

## [register variables and use these as role name](https://forum.ansible.com/t/register-variables-and-use-these-as-role-name/16512)

<div class="topic-metadata">

**Author:** [@Denis\_J\_Cirulis](https://forum.ansible.com/u/Denis_J_Cirulis)\
**Replies:** 4\
**Last updated:** [October 17, 2014, 7:42am UTC](https://forum.ansible.com/t/register-variables-and-use-these-as-role-name/16512 "2014-10-17T07:42:00Z")

</div>

Hello, let’s suppose I have multiple groups of virtual guests, all are split to different environments and are running 2 kinds of applications but with different configurations. In /etc/environment there env variables …

---

## [module.exit\_json doesn't parse my output correctly](https://forum.ansible.com/t/module-exit-json-doesnt-parse-my-output-correctly/16400)

<div class="topic-metadata">

**Author:** [@Timothy\_Vandenbrande](https://forum.ansible.com/u/Timothy_Vandenbrande)\
**Replies:** 5\
**Last updated:** [October 17, 2014, 7:26am UTC](https://forum.ansible.com/t/module-exit-json-doesnt-parse-my-output-correctly/16400 "2014-10-17T07:26:39Z")

</div>

The gist, here you’ll be able to find the sourcecome of my module. What I’m trying to do, is make a module that uses freeipa’s api to add dns record. Now the module does everything it should, but I keep getting a faile…

---

## [Copying file with roles using file glob](https://forum.ansible.com/t/copying-file-with-roles-using-file-glob/16450)

<div class="topic-metadata">

**Author:** [@Gerhard\_Hannemann](https://forum.ansible.com/u/Gerhard_Hannemann)\
**Replies:** 1\
**Last updated:** [October 17, 2014, 7:10am UTC](https://forum.ansible.com/t/copying-file-with-roles-using-file-glob/16450 "2014-10-17T07:10:00Z")

</div>

Hi Stumbling across a problem with copying a set of file to a remote server. I have a set of files within a particular role, under the file directory, that a I need to copy across to a set of remote server. I gave up …

---

## [How would I convert this docker using the ansible docker module?](https://forum.ansible.com/t/how-would-i-convert-this-docker-using-the-ansible-docker-module/16504)

<div class="topic-metadata">

**Author:** [@Chris\_Roebuck](https://forum.ansible.com/u/Chris_Roebuck)\
**Replies:** 1\
**Last updated:** [October 16, 2014, 4:57pm UTC](https://forum.ansible.com/t/how-would-i-convert-this-docker-using-the-ansible-docker-module/16504 "2014-10-16T16:57:44Z")

</div>

Command is from the google cAdvisor docker repo (https://github.com/google/cadvisor): sudo docker run \\ --volume=/:/rootfs:ro \\ --volume=/var/run:/var/run:rw \\ --volume=/sys:/sys:ro \\ --volume=/var/lib/docker/:/…

---

## [elastic search snapshot management](https://forum.ansible.com/t/elastic-search-snapshot-management/16527)

<div class="topic-metadata">

**Author:** [@skm](https://forum.ansible.com/u/skm)\
**Replies:** 2\
**Last updated:** [October 16, 2014, 4:09pm UTC](https://forum.ansible.com/t/elastic-search-snapshot-management/16527 "2014-10-16T16:09:19Z")

</div>

Hello List I want to do the following tasks using ansible in elastic search cluster create/verify s3 bucket by the name es\_backup create folder in s3 bucket by the name var {{ elasticsearch\_cluster\_id }} - s3 module -…

---

## [Feature idea: check\_mode for callbacks](https://forum.ansible.com/t/feature-idea-check-mode-for-callbacks/16524)

<div class="topic-metadata">

**Author:** [@Jesse\_Szwedko](https://forum.ansible.com/u/Jesse_Szwedko)\
**Replies:** 3\
**Last updated:** [October 16, 2014, 2:14pm UTC](https://forum.ansible.com/t/feature-idea-check-mode-for-callbacks/16524 "2014-10-16T14:14:05Z")

</div>

Hi all, Proposing the following feature idea in the hopes that someone will tell me it’s already available. We currently run all of our playbooks through ansible-playbook -c as part of automated testing. We also have a…

---

## [regarding inventory scripts](https://forum.ansible.com/t/regarding-inventory-scripts/16526)

<div class="topic-metadata">

**Author:** [@Florin\_Andrei](https://forum.ansible.com/u/Florin_Andrei)\
**Replies:** 2\
**Last updated:** [October 16, 2014, 7:14am UTC](https://forum.ansible.com/t/regarding-inventory-scripts/16526 "2014-10-16T07:14:24Z")

</div>

(New to Ansible, still figuring out things) If I have several inventory scripts, is it possible to use them all at once, e.g. like this? ansible -i ec2.py -i some-other-provider.py … Are there any guidelines or templa…

---

## [Include playbook from another role](https://forum.ansible.com/t/include-playbook-from-another-role/16528)

<div class="topic-metadata">

**Author:** [@anatoly\_techtonik](https://forum.ansible.com/u/anatoly_techtonik)\
**Replies:** 0\
**Last updated:** [October 16, 2014, 6:50am UTC](https://forum.ansible.com/t/include-playbook-from-another-role/16528 "2014-10-16T06:50:19Z")

</div>

I just want to confirm that there is no way to include playbook from a role different than current one without resorting to absolute paths. I want this: roles/ app-core/ tasks/ main.yml permissions.yml app2-core/ tas…

---

## [How to handle package manager depending installations?](https://forum.ansible.com/t/how-to-handle-package-manager-depending-installations/16513)

<div class="topic-metadata">

**Author:** [@thomas.lehmann1](https://forum.ansible.com/u/thomas.lehmann1)\
**Replies:** 2\
**Last updated:** [October 16, 2014, 5:31am UTC](https://forum.ansible.com/t/how-to-handle-package-manager-depending-installations/16513 "2014-10-16T05:31:43Z")

</div>

Hi, I would like to know how to organize one task that I can install packages depending on the ansible\_pkg\_mgr variable? Could you please provide an example, if possible? Please note: I know … I can create two tasks w…

---

## [Determine if on internal LAN](https://forum.ansible.com/t/determine-if-on-internal-lan/16518)

<div class="topic-metadata">

**Author:** [@Rishi](https://forum.ansible.com/u/Rishi)\
**Replies:** 2\
**Last updated:** [October 15, 2014, 8:17pm UTC](https://forum.ansible.com/t/determine-if-on-internal-lan/16518 "2014-10-15T20:17:23Z")

</div>

I perform a couple steps during server provisioning in-house prior to sending out to a data center. We have most installers/packages available on some internal http servers to speed up retrieving them, I would like to ke…

---

## [Variable used to lookup inventory value](https://forum.ansible.com/t/variable-used-to-lookup-inventory-value/14021)

<div class="topic-metadata">

**Author:** [@Gonzalo\_Servat](https://forum.ansible.com/u/Gonzalo_Servat)\
**Replies:** 5\
**Last updated:** [October 15, 2014, 6:18pm UTC](https://forum.ansible.com/t/variable-used-to-lookup-inventory-value/14021 "2014-10-15T18:18:35Z")

</div>

Hi All, This might be more of a Jinja question, but I couldn’t find an answer to this. Say I have an inventory value that stores the main NIC name and I want to lookup the IP address for it from a fact. How can this be…

---

## [syntax error in vars bubstution \[ shell module \]](https://forum.ansible.com/t/syntax-error-in-vars-bubstution-shell-module/16474)

<div class="topic-metadata">

**Author:** [@Subramanian\_Olagappa](https://forum.ansible.com/u/Subramanian_Olagappa)\
**Replies:** 5\
**Last updated:** [October 15, 2014, 4:25pm UTC](https://forum.ansible.com/t/syntax-error-in-vars-bubstution-shell-module/16474 "2014-10-15T16:25:08Z")

</div>

Hi,

---

## [Cloudformation - What Does This Mean?](https://forum.ansible.com/t/cloudformation-what-does-this-mean/16509)

<div class="topic-metadata">

**Author:** [@Tennis\_Smith](https://forum.ansible.com/u/Tennis_Smith)\
**Replies:** 2\
**Last updated:** [October 15, 2014, 3:57pm UTC](https://forum.ansible.com/t/cloudformation-what-does-this-mean/16509 "2014-10-15T15:57:46Z")

</div>

I’m using the cloudformation module to start a stack. Everything works. But, I’d like to update the stack now that it is running. According to the documentation, the stack can be updated if the template changed (below) …

---

## [Loop the Hosts in Ansible Playbook with\_item or with any condition](https://forum.ansible.com/t/loop-the-hosts-in-ansible-playbook-with-item-or-with-any-condition/16491)

<div class="topic-metadata">

**Author:** [@aditya\_varma](https://forum.ansible.com/u/aditya_varma)\
**Replies:** 1\
**Last updated:** [October 15, 2014, 10:13am UTC](https://forum.ansible.com/t/loop-the-hosts-in-ansible-playbook-with-item-or-with-any-condition/16491 "2014-10-15T10:13:27Z")

</div>

Want to pass a json variables containing couple of ansible hosts to a ansible-playbook so the variables can be looped in for hosts one by one.similar to

---

## [Relocate an rpm](https://forum.ansible.com/t/relocate-an-rpm/16466)

<div class="topic-metadata">

**Author:** [@James\_Morgan1](https://forum.ansible.com/u/James_Morgan1)\
**Replies:** 2\
**Last updated:** [October 15, 2014, 8:08am UTC](https://forum.ansible.com/t/relocate-an-rpm/16466 "2014-10-15T08:08:21Z")

</div>

Hi, I have a relocatable rpm that I would like to install into a different directory. I have read that Yum doesn’t really support this and a solution with yum is to use yum install XXX --downloadonly --downloaddir=/tm…

---

## [Looking for singleton...  sort of.](https://forum.ansible.com/t/looking-for-singleton-sort-of/16510)

<div class="topic-metadata">

**Author:** [@Tiglath](https://forum.ansible.com/u/Tiglath)\
**Replies:** 1\
**Last updated:** [October 14, 2014, 11:00pm UTC](https://forum.ansible.com/t/looking-for-singleton-sort-of/16510 "2014-10-14T23:00:04Z")

</div>

In my app deployment scheme the first part happens locally, and the second part in the remote targets. Now, I want the first part to be executed only once no matter how many hosts the run is for, then the second part ca…

---

## [Custom Windows module output problem](https://forum.ansible.com/t/custom-windows-module-output-problem/16486)

<div class="topic-metadata">

**Author:** [@Ivaylo\_Bratoev](https://forum.ansible.com/u/Ivaylo_Bratoev)\
**Replies:** 7\
**Last updated:** [October 14, 2014, 9:46pm UTC](https://forum.ansible.com/t/custom-windows-module-output-problem/16486 "2014-10-14T21:46:33Z")

</div>

I have a custom Windows module that uses DSC modules to perform some configuration (using Start-DscConfiguration commandlet). The important part is that this command output lines starting with “\[”. Ansible gets confused …

---

## [Role dependencies and ansible-galaxy](https://forum.ansible.com/t/role-dependencies-and-ansible-galaxy/16354)

<div class="topic-metadata">

**Author:** [@seaspicy](https://forum.ansible.com/u/seaspicy)\
**Replies:** 7\
**Last updated:** [October 14, 2014, 7:06pm UTC](https://forum.ansible.com/t/role-dependencies-and-ansible-galaxy/16354 "2014-10-14T19:06:22Z")

</div>

Hi there, I’m currently using the in-development 1.8 version of Ansible to get access to the enhanced requirements.yml features for the ansible-galaxy command line tool. I’m using it to install roles from GitHub with th…

---

## [Mapping out/visualizing Ansible Directory](https://forum.ansible.com/t/mapping-out-visualizing-ansible-directory/16507)

<div class="topic-metadata">

**Author:** [@Paul\_Angus1](https://forum.ansible.com/u/Paul_Angus1)\
**Replies:** 0\
**Last updated:** [October 14, 2014, 6:37pm UTC](https://forum.ansible.com/t/mapping-out-visualizing-ansible-directory/16507 "2014-10-14T18:37:43Z")

</div>

Hi all, Has anyone come up with a way/tool to map out the playbooks, roles, tasks, templates, custom modules maybe even variables in an Ansible directory. The use case is to: A. Be able to pick up playbooks and unders…

---

## [No color when running ansible SSH as an argument](https://forum.ansible.com/t/no-color-when-running-ansible-ssh-as-an-argument/16506)

<div class="topic-metadata">

**Author:** [@Kevin\_Burton](https://forum.ansible.com/u/Kevin_Burton)\
**Replies:** 3\
**Last updated:** [October 14, 2014, 6:26pm UTC](https://forum.ansible.com/t/no-color-when-running-ansible-ssh-as-an-argument/16506 "2014-10-14T18:26:15Z")

</div>

If I ssh into a box , interactively, then run ansible, I get color, without any issue. However, if I run it as a batch command, like: ssh release@myserver.com "ansible-playbook … " Then it doesn’t have color. The TER…

---

## [Escaping colon](https://forum.ansible.com/t/escaping-colon/16505)

<div class="topic-metadata">

**Author:** [@John\_Oliver](https://forum.ansible.com/u/John_Oliver)\
**Replies:** 1\
**Last updated:** [October 14, 2014, 5:52pm UTC](https://forum.ansible.com/t/escaping-colon/16505 "2014-10-14T17:52:42Z")

</div>

name: Set iptables to log rejected packets 5 lineinfile: dest=/etc/rsyslog.conf insertafter=“^#kern.\*\\ \\ \*/dev/console” line=“{{item}}” with\_items: “& ~” “:msg,contains,"iptables " /var/log/iptables.log” “# iptables…

---

## [template backups in conf.d style locations](https://forum.ansible.com/t/template-backups-in-conf-d-style-locations/16502)

<div class="topic-metadata">

**Author:** [@Josef\_Spak](https://forum.ansible.com/u/Josef_Spak)\
**Replies:** 2\
**Last updated:** [October 14, 2014, 4:47pm UTC](https://forum.ansible.com/t/template-backups-in-conf-d-style-locations/16502 "2014-10-14T16:47:49Z")

</div>

I’ve just been auditing things and found that sometimes we used the template module with backups=yes even though it was configuring e.g. logrotate stuff in /etc/logrotate.d/ However, programs like logrotate may/will rea…

---

## [just saying 'Hi'](https://forum.ansible.com/t/just-saying-hi/16499)

<div class="topic-metadata">

**Author:** [@vineet\_daniel](https://forum.ansible.com/u/vineet_daniel)\
**Replies:** 1\
**Last updated:** [October 14, 2014, 3:15pm UTC](https://forum.ansible.com/t/just-saying-hi/16499 "2014-10-14T15:15:37Z")

</div>

Hi Everybody, I have just joined this mailing list and have been following and working upon automating our Infra requirements using Ansible. Would love to share feedback, post questions and contribute (if need arises). …

---

## [Including and overriding Ansible galaxy roles in my roles](https://forum.ansible.com/t/including-and-overriding-ansible-galaxy-roles-in-my-roles/16503)

<div class="topic-metadata">

**Author:** [@Navid\_Paya](https://forum.ansible.com/u/Navid_Paya)\
**Replies:** 0\
**Last updated:** [October 14, 2014, 2:10pm UTC](https://forum.ansible.com/t/including-and-overriding-ansible-galaxy-roles-in-my-roles/16503 "2014-10-14T14:10:04Z")

</div>

Hi So this is a refined version of a question I asked before. I have a role that aims to: Do some specific change such as creating users Install nodejs and ruby using rbenv Run a rails app I’m using two dependencies …

---

## [Include ansible-galaxy playbooks from another playbook](https://forum.ansible.com/t/include-ansible-galaxy-playbooks-from-another-playbook/16489)

<div class="topic-metadata">

**Author:** [@Navid\_Paya](https://forum.ansible.com/u/Navid_Paya)\
**Replies:** 3\
**Last updated:** [October 14, 2014, 12:37pm UTC](https://forum.ansible.com/t/include-ansible-galaxy-playbooks-from-another-playbook/16489 "2014-10-14T12:37:04Z")

</div>

Hi all I’m using an ansible-galaxy playbook. Right now I’m having it included using my site.yml file: roles: nodesource.node base-ami Now try to use an include statement in my role playbook but it raises an error si…

---

## [Dependencies between tasks possible?](https://forum.ansible.com/t/dependencies-between-tasks-possible/16492)

<div class="topic-metadata">

**Author:** [@berndadamowicz](https://forum.ansible.com/u/berndadamowicz)\
**Replies:** 5\
**Last updated:** [October 14, 2014, 10:16am UTC](https://forum.ansible.com/t/dependencies-between-tasks-possible/16492 "2014-10-14T10:16:22Z")

</div>

Hi All! Just want to say hello to all first since this is my first post to this list! My questions is if there is a way to have dependencies between tasks. Example: I have one task which puts a shell script in place, a…

---

## [Globbing with Lookup](https://forum.ansible.com/t/globbing-with-lookup/16483)

<div class="topic-metadata">

**Author:** [@Navid\_Paya](https://forum.ansible.com/u/Navid_Paya)\
**Replies:** 4\
**Last updated:** [October 14, 2014, 8:12am UTC](https://forum.ansible.com/t/globbing-with-lookup/16483 "2014-10-14T08:12:27Z")

</div>

Hi all Not sure if this is even the right tile. So I have a set of SSH keys, I want to be used as authorized keys for users. I’ve put all of them in a directory and am trying to do the job but nothing happens. So I did …

---

## [invalid output was: /usr/bin/bash: syntax error at line 1: \`(' unexpected](https://forum.ansible.com/t/invalid-output-was-usr-bin-bash-syntax-error-at-line-1-unexpected/16501)

<div class="topic-metadata">

**Author:** [@Micky](https://forum.ansible.com/u/Micky)\
**Replies:** 0\
**Last updated:** [October 14, 2014, 7:22am UTC](https://forum.ansible.com/t/invalid-output-was-usr-bin-bash-syntax-error-at-line-1-unexpected/16501 "2014-10-14T07:22:21Z")

</div>

Hi, Ansible newbie here. A very basic playbook.

---

## [maintaining database users](https://forum.ansible.com/t/maintaining-database-users/16500)

<div class="topic-metadata">

**Author:** [@Ronald\_Rood](https://forum.ansible.com/u/Ronald_Rood)\
**Replies:** 0\
**Last updated:** [October 14, 2014, 6:12am UTC](https://forum.ansible.com/t/maintaining-database-users/16500 "2014-10-14T06:12:16Z")

</div>

Hi, I wrote a simple little oracle\_user module in bash that accepts a username and a state (present|absent) that creates or deletes a user depending on the requested state. No action when user exists and state is presen…

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

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