# Latest

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

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

**Page:** 881

---

## [How to organize hosts and the problem with vars](https://forum.ansible.com/t/how-to-organize-hosts-and-the-problem-with-vars/17928)

<div class="topic-metadata">

**Author:** [@Ruben\_Ortiz](https://forum.ansible.com/u/Ruben_Ortiz)\
**Replies:** 0\
**Last updated:** [April 8, 2015, 12:39pm UTC](https://forum.ansible.com/t/how-to-organize-hosts-and-the-problem-with-vars/17928 "2015-04-08T12:39:33Z")

</div>

Hi maybe it’s a silly question but I have been working with ansible since a year ago and still not comfortable with I organize my hosts. My scenario is quite easy, you’ll see: we have lot of ubuntu servers, most of th…

---

## [Single quotes in Powershell Module parameters are incorrectly escaped](https://forum.ansible.com/t/single-quotes-in-powershell-module-parameters-are-incorrectly-escaped/17926)

<div class="topic-metadata">

**Author:** [@Ian\_Clegg](https://forum.ansible.com/u/Ian_Clegg)\
**Replies:** 0\
**Last updated:** [April 8, 2015, 11:22am UTC](https://forum.ansible.com/t/single-quotes-in-powershell-module-parameters-are-incorrectly-escaped/17926 "2015-04-08T11:22:36Z")

</div>

Hi All, There appears to be a problem with how Ansible handles single quotes in ‘complex args’ for non native json modules. Lets start with an example: I have been working on a module to perform XPath operations on file…

---

## [Conditional notify based upon tag used](https://forum.ansible.com/t/conditional-notify-based-upon-tag-used/17925)

<div class="topic-metadata">

**Author:** [@Sarris\_Overbosch](https://forum.ansible.com/u/Sarris_Overbosch)\
**Replies:** 0\
**Last updated:** [April 8, 2015, 9:47am UTC](https://forum.ansible.com/t/conditional-notify-based-upon-tag-used/17925 "2015-04-08T09:47:15Z")

</div>

Hi, I was wondering if it is possible to not fire a notification if I use a certain tag when running a play. some.yml … changed\_when: tag != “templatetest” notify: tomcat\_restart … ansible-playbook some.yml --tag…

---

## [mount module](https://forum.ansible.com/t/mount-module/17924)

<div class="topic-metadata">

**Author:** [@Jeffrey\_Lageweg](https://forum.ansible.com/u/Jeffrey_Lageweg)\
**Replies:** 0\
**Last updated:** [April 8, 2015, 2:57am UTC](https://forum.ansible.com/t/mount-module/17924 "2015-04-08T02:57:39Z")

</div>

Hi there, I saw that the Ansible mount module has some issues, when i defined the fstab argument. For example: When I define an argument fstab (/tmp/fstab) and place the state on mounted. My mount point is /data/archi…

---

## [EC2 instances with tagged volumes that delete on termination](https://forum.ansible.com/t/ec2-instances-with-tagged-volumes-that-delete-on-termination/17906)

<div class="topic-metadata">

**Author:** [@Brenda\_Bell](https://forum.ansible.com/u/Brenda_Bell)\
**Replies:** 4\
**Last updated:** [April 8, 2015, 1:14am UTC](https://forum.ansible.com/t/ec2-instances-with-tagged-volumes-that-delete-on-termination/17906 "2015-04-08T01:14:55Z")

</div>

The subject says what I’m trying to do. I first tried to create the instances with a volume dictionary, but that method doesn’t let me tag the volumes. I then tried to first create the instances, then create the volume…

---

## [My Favorite Module](https://forum.ansible.com/t/my-favorite-module/17920)

<div class="topic-metadata">

**Author:** [@Greg\_DeKoenigsberg1](https://forum.ansible.com/u/Greg_DeKoenigsberg1)\
**Replies:** 2\
**Last updated:** [April 8, 2015, 12:12am UTC](https://forum.ansible.com/t/my-favorite-module/17920 "2015-04-08T00:12:46Z")

</div>

Hi folks. Have a favorite module? One that you use frequently, love deeply, understand fully, and wish were better known? Considering some kind of "module of the month" club. Talk about a module, explain what it does…

---

## [Need a Workaround of "include + with\_items" ? How to Loops over tasks with items and dicts combinaison ?](https://forum.ansible.com/t/need-a-workaround-of-include-with-items-how-to-loops-over-tasks-with-items-and-dicts-combinaison/17921)

<div class="topic-metadata">

**Author:** [@nicolas.wroclawski](https://forum.ansible.com/u/nicolas.wroclawski)\
**Replies:** 0\
**Last updated:** [April 7, 2015, 9:53pm UTC](https://forum.ansible.com/t/need-a-workaround-of-include-with-items-how-to-loops-over-tasks-with-items-and-dicts-combinaison/17921 "2015-04-07T21:53:36Z")

</div>

Hi, I use a generic playbook for provisionning multiple tomcat instance Many applications using this same playbook for provisionning tomcat environnment. Each application have a yaml file description of their own conf…

---

## [Roles with tags not respecting the tag, Instead playing all the tast defined](https://forum.ansible.com/t/roles-with-tags-not-respecting-the-tag-instead-playing-all-the-tast-defined/17919)

<div class="topic-metadata">

**Author:** [@Vijay\_Mohan](https://forum.ansible.com/u/Vijay_Mohan)\
**Replies:** 1\
**Last updated:** [April 7, 2015, 7:11pm UTC](https://forum.ansible.com/t/roles-with-tags-not-respecting-the-tag-instead-playing-all-the-tast-defined/17919 "2015-04-07T19:11:48Z")

</div>

Here is my play book: - name: Install MySQL with replication hosts: mysql-master:mysql-slave user: root sudo: false roles: - common - admin-users - generic-directories - { role: iptables, tags: \[…

---

## [module params doing JSON conversion?](https://forum.ansible.com/t/module-params-doing-json-conversion/15008)

<div class="topic-metadata">

**Author:** [@Scott\_Anderson](https://forum.ansible.com/u/Scott_Anderson)\
**Replies:** 8\
**Last updated:** [April 7, 2015, 5:56pm UTC](https://forum.ansible.com/t/module-params-doing-json-conversion/15008 "2015-04-07T17:56:39Z")

</div>

Hi all, I’ve got a JSON file, web\_iam\_trust\_policy.json: { "Version": "2012-10-17", "Statement": \[ { "Sid": "", "Effect": "Allow", "Principal": …

---

## [use default during conditional role statement?](https://forum.ansible.com/t/use-default-during-conditional-role-statement/17918)

<div class="topic-metadata">

**Author:** [@Tom\_Paine](https://forum.ansible.com/u/Tom_Paine)\
**Replies:** 1\
**Last updated:** [April 7, 2015, 2:21pm UTC](https://forum.ansible.com/t/use-default-during-conditional-role-statement/17918 "2015-04-07T14:21:51Z")

</div>

Goal: conditionally apply a role, but not be required to define the var in every target env. Can I default a var to empty or null if it isn’t defined as ‘bar’? e.g:

---

## [how to create many templates with an increasing variable (counter) in each?](https://forum.ansible.com/t/how-to-create-many-templates-with-an-increasing-variable-counter-in-each/17917)

<div class="topic-metadata">

**Author:** [@vovansystems](https://forum.ansible.com/u/vovansystems)\
**Replies:** 0\
**Last updated:** [April 7, 2015, 9:08am UTC](https://forum.ansible.com/t/how-to-create-many-templates-with-an-increasing-variable-counter-in-each/17917 "2015-04-07T09:08:03Z")

</div>

Hi, I need to create configuration files for php5-fpm and nginx for many domains. Each php5-fpm’s worker should run on separate port starting from 127.0.0.1:9001 and so on. I started with the following configuration: …

---

## [Developing a Ceph module: requirements or guidelines for inclusion](https://forum.ansible.com/t/developing-a-ceph-module-requirements-or-guidelines-for-inclusion/17909)

<div class="topic-metadata">

**Author:** [@Alistair\_Israel](https://forum.ansible.com/u/Alistair_Israel)\
**Replies:** 2\
**Last updated:** [April 7, 2015, 8:23am UTC](https://forum.ansible.com/t/developing-a-ceph-module-requirements-or-guidelines-for-inclusion/17909 "2015-04-07T08:23:39Z")

</div>

Hi, ansible-devel. So, we use Ansible a lot to deploy Ceph and our Ceph solutions, to the point where it started to make sense to develop our own custom Ansible modules for Ceph operations. I’d just like ask about any …

---

## [task local vars?](https://forum.ansible.com/t/task-local-vars/17916)

<div class="topic-metadata">

**Author:** [@Chris11](https://forum.ansible.com/u/Chris11)\
**Replies:** 1\
**Last updated:** [April 7, 2015, 2:54am UTC](https://forum.ansible.com/t/task-local-vars/17916 "2015-04-07T02:54:27Z")

</div>

I request comments on the following idea: The ability to specify vars directly on a task. I found myself needing something like this recently on a template task. The template required variables with some specific names…

---

## [Possible bug in split\_args](https://forum.ansible.com/t/possible-bug-in-split-args/17908)

<div class="topic-metadata">

**Author:** [@Gabriele\_Favalessa](https://forum.ansible.com/u/Gabriele_Favalessa)\
**Replies:** 2\
**Last updated:** [April 6, 2015, 10:15pm UTC](https://forum.ansible.com/t/possible-bug-in-split-args/17908 "2015-04-06T22:15:18Z")

</div>

Hi all, I’m wondering if this is the intended behavior of split\_args (ansible 1.9.0.1): from ansible.module\_utils.splitter import split\_args split\_args(‘content=" a b"’) \[u’content=" a b"'\] split\_args…

---

## [V2 status](https://forum.ansible.com/t/v2-status/17913)

<div class="topic-metadata">

**Author:** [@Eri\_Bastos](https://forum.ansible.com/u/Eri_Bastos)\
**Replies:** 1\
**Last updated:** [April 6, 2015, 9:07pm UTC](https://forum.ansible.com/t/v2-status/17913 "2015-04-06T21:07:22Z")

</div>

Hello, list. Where can I find more information about the V2 status? I was poking at the code due to bug #10619 and I thought I was breaking stuff when I tried to run the setup module. But after looking at it a little b…

---

## [mux\_client\_request\_session error](https://forum.ansible.com/t/mux-client-request-session-error/17914)

<div class="topic-metadata">

**Author:** [@Priscilla\_Muriithi](https://forum.ansible.com/u/Priscilla_Muriithi)\
**Replies:** 1\
**Last updated:** [April 6, 2015, 6:31pm UTC](https://forum.ansible.com/t/mux-client-request-session-error/17914 "2015-04-06T18:31:47Z")

</div>

I am getting this error when I run win\_ping: task. Any idea why? OpenSSH\_6.6.1, OpenSSL 1.0.1f 6 Jan 2014 debug1: Reading configuration data /etc/ssh/ssh\_config debug1: /etc/ssh/ssh\_config line 19: Applying options for …

---

## [HAProxy Module Question](https://forum.ansible.com/t/haproxy-module-question/17911)

<div class="topic-metadata">

**Author:** [@Zachary\_Buckholz](https://forum.ansible.com/u/Zachary_Buckholz)\
**Replies:** 1\
**Last updated:** [April 6, 2015, 5:54pm UTC](https://forum.ansible.com/t/haproxy-module-question/17911 "2015-04-06T17:54:32Z")

</div>

I am trying to update the haproxy.cfg with a new server entry and then add the required pool info for that new server. Currently I am attempting to use the lineinfile module to do this, it works but I want to make sure …

---

## [Querying AWS to add hosts with add\_host](https://forum.ansible.com/t/querying-aws-to-add-hosts-with-add-host/17912)

<div class="topic-metadata">

**Author:** [@M\_GS](https://forum.ansible.com/u/M_GS)\
**Replies:** 0\
**Last updated:** [April 6, 2015, 4:32pm UTC](https://forum.ansible.com/t/querying-aws-to-add-hosts-with-add-host/17912 "2015-04-06T16:32:35Z")

</div>

When using the ec2 module I can register hosts when they are initially created. Is it possible to query aws and register existing hosts? For example right now I start a few machines and set the exact\_count and count\_tag…

---

## [bug in service module when enabling multiple systemd (multi-instance) services?](https://forum.ansible.com/t/bug-in-service-module-when-enabling-multiple-systemd-multi-instance-services/17903)

<div class="topic-metadata">

**Author:** [@Nusenu1](https://forum.ansible.com/u/Nusenu1)\
**Replies:** 6\
**Last updated:** [April 6, 2015, 3:50pm UTC](https://forum.ansible.com/t/bug-in-service-module-when-enabling-multiple-systemd-multi-instance-services/17903 "2015-04-06T15:50:47Z")

</div>

Hi, I'm enabling multiple instances of a service via: service: name=tor@{{ item }}.service enabled=yes state=started with\_items: - foo - bar Both services get started properly but only the first gets enabled …

---

## [conditional in template?](https://forum.ansible.com/t/conditional-in-template/17897)

<div class="topic-metadata">

**Author:** [@J11](https://forum.ansible.com/u/J11)\
**Replies:** 1\
**Last updated:** [April 6, 2015, 3:48pm UTC](https://forum.ansible.com/t/conditional-in-template/17897 "2015-04-06T15:48:41Z")

</div>

All, I’m attempting to use a conditional in a template, without success. Specifically I’m trying to add an iptable rule that allows traffic sourced from eth1 on all hosts: Below is the relevant portion of the template: …

---

## [launch ec2 instance without instance\_ids](https://forum.ansible.com/t/launch-ec2-instance-without-instance-ids/17910)

<div class="topic-metadata">

**Author:** [@Pavel\_Barmotin](https://forum.ansible.com/u/Pavel_Barmotin)\
**Replies:** 0\
**Last updated:** [April 6, 2015, 12:40pm UTC](https://forum.ansible.com/t/launch-ec2-instance-without-instance-ids/17910 "2015-04-06T12:40:21Z")

</div>

Hello Guys, I want run stopped ec2 instance using count\_tag and exact\_count and not using instance\_ids. \` name: launch ec2 instance ec2: instance\_type: m3.medium key\_name: “{{ec2\_key}}” group: web image: “{{ec2\_…

---

## [Generating Ansible modules extras documentation](https://forum.ansible.com/t/generating-ansible-modules-extras-documentation/17825)

<div class="topic-metadata">

**Author:** [@Alistair\_Israel](https://forum.ansible.com/u/Alistair_Israel)\
**Replies:** 4\
**Last updated:** [April 6, 2015, 11:03am UTC](https://forum.ansible.com/t/generating-ansible-modules-extras-documentation/17825 "2015-04-06T11:03:43Z")

</div>

Hi, Ansible. I’ve written a couple of Ansible custom modules for managing Ceph pools and rbds here: https://github.com/aisrael/ansible-modules-extras/tree/wip-ceph It’s still a work in progress: I’ll be adding a couple …

---

## [fail to use uri to POST file to a service](https://forum.ansible.com/t/fail-to-use-uri-to-post-file-to-a-service/17907)

<div class="topic-metadata">

**Author:** [@Tzach\_Livyatan1](https://forum.ansible.com/u/Tzach_Livyatan1)\
**Replies:** 1\
**Last updated:** [April 6, 2015, 1:50am UTC](https://forum.ansible.com/t/fail-to-use-uri-to-post-file-to-a-service/17907 "2015-04-06T01:50:27Z")

</div>

Hello The following curl from the host to the provision servers works fine: \` curl -X POST --header “Content-Type: application/json” -d @file.json http://public-ip/api \` Trying to use uri module for the same, I used…

---

## [Organize playbooks in subdirectories](https://forum.ansible.com/t/organize-playbooks-in-subdirectories/17905)

<div class="topic-metadata">

**Author:** [@Andre](https://forum.ansible.com/u/Andre)\
**Replies:** 0\
**Last updated:** [April 4, 2015, 2:35pm UTC](https://forum.ansible.com/t/organize-playbooks-in-subdirectories/17905 "2015-04-04T14:35:48Z")

</div>

Hi, I am trying to find a suitable directory structure for my ansible files. I have come up with this structure which is not working with the playbooks in subdirectories: . ├── group\_vars ├── inventories │ ├── producti…

---

## [EC2 Instance Creation.](https://forum.ansible.com/t/ec2-instance-creation/17896)

<div class="topic-metadata">

**Author:** [@Nico\_K](https://forum.ansible.com/u/Nico_K)\
**Replies:** 2\
**Last updated:** [April 3, 2015, 8:39pm UTC](https://forum.ansible.com/t/ec2-instance-creation/17896 "2015-04-03T20:39:21Z")

</div>

Hi, I might be doing things backwards, but I’m gonna ask anyway. In my scenario, I first add the host\_vars/new\_host and only then do I run the ec2 create task (which is delegated to localhost obviously). After the ins…

---

## [substring variables?](https://forum.ansible.com/t/substring-variables/17902)

<div class="topic-metadata">

**Author:** [@Kyle](https://forum.ansible.com/u/Kyle)\
**Replies:** 4\
**Last updated:** [April 3, 2015, 2:53pm UTC](https://forum.ansible.com/t/substring-variables/17902 "2015-04-03T14:53:50Z")

</div>

I can’t find anything in ansible nor jinja documentation regarding substring. I’m looking for something such as this: \` variable passed at command line host=prd01denutl01 {{ host | substring(0,5) }} → prd01 {{ host…

---

## [Shell module failed](https://forum.ansible.com/t/shell-module-failed/17901)

<div class="topic-metadata">

**Author:** [@Sluge1\_Slug2](https://forum.ansible.com/u/Sluge1_Slug2)\
**Replies:** 3\
**Last updated:** [April 3, 2015, 2:00pm UTC](https://forum.ansible.com/t/shell-module-failed/17901 "2015-04-03T14:00:19Z")

</div>

Hello, ansible users, I have created a simple module for ansible: #!/bin/sh hostname exit 0 but this module failed to execute: ansible 192.168.1.10 -m test.sh -M /ans\_mod 192.168.1.10 | FAILED \>\> { “failed”: true, …

---

## [apt-get update fails](https://forum.ansible.com/t/apt-get-update-fails/17898)

<div class="topic-metadata">

**Author:** [@Tom\_Gertin](https://forum.ansible.com/u/Tom_Gertin)\
**Replies:** 1\
**Last updated:** [April 3, 2015, 1:23am UTC](https://forum.ansible.com/t/apt-get-update-fails/17898 "2015-04-03T01:23:23Z")

</div>

I am trying to run an 'apt-get update' command in my Ansible playbook but it is failing everytime. I am using the 'apt: update\_cache=yes' command found here: \[http://docs.ansible.com/apt\_module.html\](http://docs.ansibl…

---

## [(Derived) variable resolution bug?](https://forum.ansible.com/t/derived-variable-resolution-bug/17725)

<div class="topic-metadata">

**Author:** [@Ananda\_Debnath](https://forum.ansible.com/u/Ananda_Debnath)\
**Replies:** 3\
**Last updated:** [April 2, 2015, 7:55pm UTC](https://forum.ansible.com/t/derived-variable-resolution-bug/17725 "2015-04-02T19:55:31Z")

</div>

Is this a bug or am I misunderstanding how variables are resolved based on precedence? According to http://docs.ansible.com/playbooks\_variables.html, \* extra vars (-e in the command line) always win \* then comes connec…

---

## [Ansible + EC2 & Quoting.](https://forum.ansible.com/t/ansible-ec2-quoting/17891)

<div class="topic-metadata">

**Author:** [@Nico\_K](https://forum.ansible.com/u/Nico_K)\
**Replies:** 3\
**Last updated:** [April 2, 2015, 7:55pm UTC](https://forum.ansible.com/t/ansible-ec2-quoting/17891 "2015-04-02T19:55:09Z")

</div>

Hi, I’m trying to spawn an EC2 instance through a role. However, I can’t get “instance\_tags” to work when I try to pass in the value through a parameter. group\_vars/all: ec2\_instance\_tags: ‘{“name”:“test”}’ roles/ec…

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

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