# Archives

**URL:** https://forum.ansible.com/c/archives/31.md?page=566

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

**Page:** 567

---

## [OpenStack heat ansible modules](https://forum.ansible.com/t/openstack-heat-ansible-modules/21571)

<div class="topic-metadata">

**Author:** [@Sridhar\_L](https://forum.ansible.com/u/Sridhar_L)\
**Replies:** 5\
**Last updated:** [August 3, 2016, 1:27am UTC](https://forum.ansible.com/t/openstack-heat-ansible-modules/21571 "2016-08-03T01:27:45Z")

</div>

I searched for heat ansible module for deploying the VMs in OpenStack cloud but could not find any. Are there any modules available for heat to deploy the stacks using ansible?

---

## [Role dependencies -  parent or calling role's path](https://forum.ansible.com/t/role-dependencies-parent-or-calling-roles-path/22196)

<div class="topic-metadata">

**Author:** [@knowshan](https://forum.ansible.com/u/knowshan)\
**Replies:** 0\
**Last updated:** [August 2, 2016, 11:20pm UTC](https://forum.ansible.com/t/role-dependencies-parent-or-calling-roles-path/22196 "2016-08-02T23:20:41Z")

</div>

Is there any way to pass a parent or calling role’s name or file-path to dependencies as variable?

---

## [version\_compare filter in template](https://forum.ansible.com/t/version-compare-filter-in-template/22194)

<div class="topic-metadata">

**Author:** [@mtovey](https://forum.ansible.com/u/mtovey)\
**Replies:** 1\
**Last updated:** [August 2, 2016, 8:36pm UTC](https://forum.ansible.com/t/version-compare-filter-in-template/22194 "2016-08-02T20:36:44Z")

</div>

I want to make a decision in a template using the version\_compare filter: {% if httpd\_version|version\_compare(‘2.4’, ‘\>=’) %} This fails with the message “{‘msg’: “TypeError: ‘in ’ requires string as left operand”, ‘fa…

---

## [Module for describing availability zones?](https://forum.ansible.com/t/module-for-describing-availability-zones/22183)

<div class="topic-metadata">

**Author:** [@tom.moretto](https://forum.ansible.com/u/tom.moretto)\
**Replies:** 3\
**Last updated:** [August 2, 2016, 5:22pm UTC](https://forum.ansible.com/t/module-for-describing-availability-zones/22183 "2016-08-02T17:22:52Z")

</div>

I’m not sure if I’m overlooking this or not, but is there a module from Ansible that will describe the availability zones in my AWS region? I typically use us-east-1 as my default region, which has 5 available availabil…

---

## [upgrading from 2.2.1.0.0 to 2.1.1.0 stops includes from being printed to the log. How do I get this back?](https://forum.ansible.com/t/upgrading-from-2-2-1-0-0-to-2-1-1-0-stops-includes-from-being-printed-to-the-log-how-do-i-get-this-back/22192)

<div class="topic-metadata">

**Author:** [@Benjamin\_Edwards](https://forum.ansible.com/u/Benjamin_Edwards)\
**Replies:** 0\
**Last updated:** [August 2, 2016, 4:36pm UTC](https://forum.ansible.com/t/upgrading-from-2-2-1-0-0-to-2-1-1-0-stops-includes-from-being-printed-to-the-log-how-do-i-get-this-back/22192 "2016-08-02T16:36:16Z")

</div>

If you have a bunch of condition includes including the same file repeatedly with different paramters the output is nonsense to read. And before someone says “put it in a different role” in this case the include manages …

---

## [Docker Compose with detached mode](https://forum.ansible.com/t/docker-compose-with-detached-mode/22190)

<div class="topic-metadata">

**Author:** [@Carl\_Wainwright](https://forum.ansible.com/u/Carl_Wainwright)\
**Replies:** 0\
**Last updated:** [August 2, 2016, 3:58pm UTC](https://forum.ansible.com/t/docker-compose-with-detached-mode/22190 "2016-08-02T15:58:59Z")

</div>

It’s not clear if the Ansible module docker-service supports the -d command line option. I would like to detach my services after bringing them up with docker-compose docker-compose up -d Alternatively I’ll have to use…

---

## [AWS Elasticache error:  CacheSubnetGroupNotFoundFault ... not sure why](https://forum.ansible.com/t/aws-elasticache-error-cachesubnetgroupnotfoundfault-not-sure-why/22189)

<div class="topic-metadata">

**Author:** [@tom.moretto](https://forum.ansible.com/u/tom.moretto)\
**Replies:** 1\
**Last updated:** [August 2, 2016, 3:16pm UTC](https://forum.ansible.com/t/aws-elasticache-error-cachesubnetgroupnotfoundfault-not-sure-why/22189 "2016-08-02T15:16:27Z")

</div>

I want to create an elasticache cluster group and I"m using the elasticache\_subnet\_group module. Here is my role: \` name: Create ElastiCache Subnets elasticache\_subnet\_group: aws\_access\_key: “{{aws\_access\_key}}” a…

---

## [How to use group\_by  to map a role only for a specific OS](https://forum.ansible.com/t/how-to-use-group-by-to-map-a-role-only-for-a-specific-os/22110)

<div class="topic-metadata">

**Author:** [@Jorg\_Kastning](https://forum.ansible.com/u/Jorg_Kastning)\
**Replies:** 3\
**Last updated:** [August 2, 2016, 12:21pm UTC](https://forum.ansible.com/t/how-to-use-group-by-to-map-a-role-only-for-a-specific-os/22110 "2016-08-02T12:21:20Z")

</div>

Dear all, I’d like to map a role to a group of hosts with a specific operating system. So far I read Applying ‘when’ to roles and includes and the module description of group\_by. But I could not figure out how to use g…

---

## [Ansible as alternative to celery or python-rq?](https://forum.ansible.com/t/ansible-as-alternative-to-celery-or-python-rq/22186)

<div class="topic-metadata">

**Author:** [@Thomas\_Guttler](https://forum.ansible.com/u/Thomas_Guttler)\
**Replies:** 0\
**Last updated:** [August 2, 2016, 7:19am UTC](https://forum.ansible.com/t/ansible-as-alternative-to-celery-or-python-rq/22186 "2016-08-02T07:19:03Z")

</div>

Hi, we need to implement a use case which looks like celery or python-rq could be used. We already use ansible in this context. I ask myself if it is good to have two systems for queueing jobs and processing them in t…

---

## [ansible windows raw module no response?](https://forum.ansible.com/t/ansible-windows-raw-module-no-response/22134)

<div class="topic-metadata">

**Author:** [@fcxjluo](https://forum.ansible.com/u/fcxjluo)\
**Replies:** 3\
**Last updated:** [August 2, 2016, 5:25am UTC](https://forum.ansible.com/t/ansible-windows-raw-module-no-response/22134 "2016-08-02T05:25:29Z")

</div>

I just want to run my bat by raw module,like \` name: exec run.bat raw: C:\\run.bat \` The bat is about a program that get logs,so it will be always running,like Daemon. When I exec ansible-playbook,the task can’t go …

---

## [Why a progress over when ansible exec all tasks on windows?](https://forum.ansible.com/t/why-a-progress-over-when-ansible-exec-all-tasks-on-windows/22177)

<div class="topic-metadata">

**Author:** [@fcxjluo](https://forum.ansible.com/u/fcxjluo)\
**Replies:** 1\
**Last updated:** [August 2, 2016, 5:08am UTC](https://forum.ansible.com/t/why-a-progress-over-when-ansible-exec-all-tasks-on-windows/22177 "2016-08-02T05:08:27Z")

</div>

ansible 2.2.0 I use raw module to run a bat,and the bat exec a jar,the jar will always run because it’s a monitoring program。But when ansible exec the taks over,the jar will also over,why?

---

## [Issue with Ansible](https://forum.ansible.com/t/issue-with-ansible/22166)

<div class="topic-metadata">

**Author:** [@GBANE\_FETIGUE](https://forum.ansible.com/u/GBANE_FETIGUE)\
**Replies:** 15\
**Last updated:** [August 2, 2016, 1:23am UTC](https://forum.ansible.com/t/issue-with-ansible/22166 "2016-08-02T01:23:55Z")

</div>

Hi guys, I have some issue with ansible I want to Convert a Json array in Ansible but still having error message here is the JSon. curl --basic -u admin:admin -d ‘{“name” : “ms3-simple-hello-world-app” , “servers”: \[ “…

---

## [ansible 2.1 setup fails  with this module requires key=value arguments (\['\<\<INCLUDE\_ANSIBLE\_MODULE\_ARGS\>\>'\])](https://forum.ansible.com/t/ansible-2-1-setup-fails-with-this-module-requires-key-value-arguments-include-ansible-module-args/21667)

<div class="topic-metadata">

**Author:** [@Greg\_Fausak](https://forum.ansible.com/u/Greg_Fausak)\
**Replies:** 3\
**Last updated:** [August 1, 2016, 11:28pm UTC](https://forum.ansible.com/t/ansible-2-1-setup-fails-with-this-module-requires-key-value-arguments-include-ansible-module-args/21667 "2016-08-01T23:28:35Z")

</div>

I am migrating to 2.1 from 1.9. I ran into a few issues, but it has been fairly painless. I’ve run across this, and I have narrowed it down to exactly how to recreate it. Once I get in this state ansible is not usable an…

---

## [Linode Module: StackScripts?](https://forum.ansible.com/t/linode-module-stackscripts/22139)

<div class="topic-metadata">

**Author:** [@Jonathan\_Duncan](https://forum.ansible.com/u/Jonathan_Duncan)\
**Replies:** 1\
**Last updated:** [August 1, 2016, 10:28pm UTC](https://forum.ansible.com/t/linode-module-stackscripts/22139 "2016-08-01T22:28:20Z")

</div>

It appears that in the linode module there is no mechanism currently in place for specifying a stackscript for the linode to use. Is this something in the works? Seems like a pretty significant missing feature.

---

## [with\_dict expects a dict - when evaluating a variable in ansible 2.0+](https://forum.ansible.com/t/with-dict-expects-a-dict-when-evaluating-a-variable-in-ansible-2-0/21607)

<div class="topic-metadata">

**Author:** [@Florian\_B](https://forum.ansible.com/u/Florian_B)\
**Replies:** 1\
**Last updated:** [August 1, 2016, 7:01pm UTC](https://forum.ansible.com/t/with-dict-expects-a-dict-when-evaluating-a-variable-in-ansible-2-0/21607 "2016-08-01T19:01:15Z")

</div>

Hi everyone, I’m trying to get this example to work with ansible 2.0+. It does work correctly with 1.9. \` hosts: localhost vars: input: “top” base: &base ? a ? b top: &top \<\< : \*base ? c ? d peak: &peak \<\< …

---

## [How to create a dynamic group using  group\_by and register a custom variable name](https://forum.ansible.com/t/how-to-create-a-dynamic-group-using-group-by-and-register-a-custom-variable-name/22185)

<div class="topic-metadata">

**Author:** [@GANA\_SAGAR](https://forum.ansible.com/u/GANA_SAGAR)\
**Replies:** 0\
**Last updated:** [August 1, 2016, 6:52pm UTC](https://forum.ansible.com/t/how-to-create-a-dynamic-group-using-group-by-and-register-a-custom-variable-name/22185 "2016-08-01T18:52:04Z")

</div>

0down votefavorite | How to create variable group based on ip address-range in ansible inventory groups ? I have two groups of servers in different location. I want to create the two groups based on their IP rang…

---

## [Openstack Dynamic Inventory Script](https://forum.ansible.com/t/openstack-dynamic-inventory-script/22182)

<div class="topic-metadata">

**Author:** [@Govindaraj\_Venkatesa](https://forum.ansible.com/u/Govindaraj_Venkatesa)\
**Replies:** 0\
**Last updated:** [August 1, 2016, 3:15pm UTC](https://forum.ansible.com/t/openstack-dynamic-inventory-script/22182 "2016-08-01T15:15:55Z")

</div>

Hi All, I tried setting multiple group names using nova meta tag as below but couldn’t get that working using openstack.py dynamic inventory script for openstack. Can you please suggest? http://docs.ansible.com/ansible/…

---

## [Docker privileged containers](https://forum.ansible.com/t/docker-privileged-containers/16142)

<div class="topic-metadata">

**Author:** [@Abed\_Halawi](https://forum.ansible.com/u/Abed_Halawi)\
**Replies:** 2\
**Last updated:** [August 1, 2016, 2:53pm UTC](https://forum.ansible.com/t/docker-privileged-containers/16142 "2016-08-01T14:53:31Z")

</div>

I am using a playbook task to run a docker containers, it’s running correctly except that it is not running with the --privileged option although I am choosing privileged=yes:

---

## [Essential improvements for LVM modules](https://forum.ansible.com/t/essential-improvements-for-lvm-modules/22140)

<div class="topic-metadata">

**Author:** [@Alexander\_Gordeev](https://forum.ansible.com/u/Alexander_Gordeev)\
**Replies:** 1\
**Last updated:** [August 1, 2016, 2:46pm UTC](https://forum.ansible.com/t/essential-improvements-for-lvm-modules/22140 "2016-08-01T14:46:55Z")

</div>

Hi, So far, ansible-extra-modules includes only two modules system/lvol.py and system/lvg.py which are responsible for configuring logical volumes and volume groups respectively. There’s no module for working with phys…

---

## [How to detect whether the init system is systemd or not in a module?](https://forum.ansible.com/t/how-to-detect-whether-the-init-system-is-systemd-or-not-in-a-module/22172)

<div class="topic-metadata">

**Author:** [@Hiroaki\_Nakamura](https://forum.ansible.com/u/Hiroaki_Nakamura)\
**Replies:** 1\
**Last updated:** [August 1, 2016, 2:41pm UTC](https://forum.ansible.com/t/how-to-detect-whether-the-init-system-is-systemd-or-not-in-a-module/22172 "2016-08-01T14:41:49Z")

</div>

Hi, In the hostname module http://docs.ansible.com/ansible/hostname\_module.html I'd like to detect whether the init system is systemd or not in a module. https://github.com/ansible/ansible-modules-core/issues/573#issu…

---

## [How do I use multiple ansible versions on the same machine for different playbooks that require specific versions?](https://forum.ansible.com/t/how-do-i-use-multiple-ansible-versions-on-the-same-machine-for-different-playbooks-that-require-specific-versions/20506)

<div class="topic-metadata">

**Author:** [@Philip\_Kirkland](https://forum.ansible.com/u/Philip_Kirkland)\
**Replies:** 6\
**Last updated:** [August 1, 2016, 1:38pm UTC](https://forum.ansible.com/t/how-do-i-use-multiple-ansible-versions-on-the-same-machine-for-different-playbooks-that-require-specific-versions/20506 "2016-08-01T13:38:20Z")

</div>

Hi all, Perhaps I’m approaching this the wrong way; I would appreciate some feedback. We have various playbooks that have been developed over a period of time. Due to the (sometimes) lack of backwards compatibility of …

---

## [working on playbook to check file exists](https://forum.ansible.com/t/working-on-playbook-to-check-file-exists/22156)

<div class="topic-metadata">

**Author:** [@venkat\_velpuri](https://forum.ansible.com/u/venkat_velpuri)\
**Replies:** 2\
**Last updated:** [August 1, 2016, 1:34pm UTC](https://forum.ansible.com/t/working-on-playbook-to-check-file-exists/22156 "2016-08-01T13:34:55Z")

</div>

I am new to ansible getting error ansible-playbook -vvvv -i apphosts file.yml ERROR: parse error: playbooks must be formatted as a YAML list, got \<type ‘dict’\> tasks: name: Check that the somefile.conf exists stat…

---

## [Scalable Spark Clusters (RE: Matt, Do you want your weekends back?)](https://forum.ansible.com/t/scalable-spark-clusters-re-matt-do-you-want-your-weekends-back/22175)

<div class="topic-metadata">

**Author:** [@Matt\_Jude1](https://forum.ansible.com/u/Matt_Jude1)\
**Replies:** 1\
**Last updated:** [August 1, 2016, 12:18pm UTC](https://forum.ansible.com/t/scalable-spark-clusters-re-matt-do-you-want-your-weekends-back/22175 "2016-08-01T12:18:49Z")

</div>

Good day, I wonder if you can possibly be able to assist me I am looking for a way to automate the newest versions of Apache Spark in Ansible Tower 3 - the objective is to eventually replace cloudera to handle the devil…

---

## [Ansible alternative to jq select](https://forum.ansible.com/t/ansible-alternative-to-jq-select/22179)

<div class="topic-metadata">

**Author:** [@kenjis15](https://forum.ansible.com/u/kenjis15)\
**Replies:** 0\
**Last updated:** [August 1, 2016, 8:46am UTC](https://forum.ansible.com/t/ansible-alternative-to-jq-select/22179 "2016-08-01T08:46:42Z")

</div>

Hi, I have command like this which picks up an element from a list of AWS hosted zones if hosted zone named “testinternal” is found in the list. If it finds it, extracts Id filed from that element. aws route53 list-hos…

---

## [Why the process over after completing tasks in windows?](https://forum.ansible.com/t/why-the-process-over-after-completing-tasks-in-windows/22178)

<div class="topic-metadata">

**Author:** [@fcxjluo](https://forum.ansible.com/u/fcxjluo)\
**Replies:** 0\
**Last updated:** [August 1, 2016, 8:42am UTC](https://forum.ansible.com/t/why-the-process-over-after-completing-tasks-in-windows/22178 "2016-08-01T08:42:07Z")

</div>

I use raw module ‘Start-Process -FilePath my.bat’ my.bat exec a process collect logs.But when the tasks over,the process will be also end.I believe the process can run no problem.

---

## [How to check if the current user has write access to a given path ?](https://forum.ansible.com/t/how-to-check-if-the-current-user-has-write-access-to-a-given-path/22143)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 2\
**Last updated:** [August 1, 2016, 6:13am UTC](https://forum.ansible.com/t/how-to-check-if-the-current-user-has-write-access-to-a-given-path/22143 "2016-08-01T06:13:17Z")

</div>

I am trying to check via Ansible that whether the user (being used to connect) has write access to a given path - both on linux hosts and windows hosts. I tried looking around but i could not get an easy way to do that.…

---

## [No epoch or seconds in windows facts ? How can i generate unique strings ?](https://forum.ansible.com/t/no-epoch-or-seconds-in-windows-facts-how-can-i-generate-unique-strings/22147)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 2\
**Last updated:** [August 1, 2016, 6:11am UTC](https://forum.ansible.com/t/no-epoch-or-seconds-in-windows-facts-how-can-i-generate-unique-strings/22147 "2016-08-01T06:11:59Z")

</div>

Here is a small part of windows facts: “ansible\_facts”: { “ansible\_architecture”: “64-bit”, “ansible\_date\_time”: { “date”: “13.07.2016”, “day”: “13”, “hour”: “06”, “iso8601”: “2016-07-13T06:34:29”, “minute”: “34”…

---

## [Support for adding security groups in AWS](https://forum.ansible.com/t/support-for-adding-security-groups-in-aws/22176)

<div class="topic-metadata">

**Author:** [@jduv](https://forum.ansible.com/u/jduv)\
**Replies:** 0\
**Last updated:** [August 1, 2016, 4:24am UTC](https://forum.ansible.com/t/support-for-adding-security-groups-in-aws/22176 "2016-08-01T04:24:38Z")

</div>

Hi all, I’m considering either a new module or modifications to an existing module for assigning a security group to an AWS instance given a VPC. This looks like a bug that was filed quite a while ago: https://github.co…

---

## [Assigning variable from jinja template evaluation](https://forum.ansible.com/t/assigning-variable-from-jinja-template-evaluation/22173)

<div class="topic-metadata">

**Author:** [@a\_akin](https://forum.ansible.com/u/a_akin)\
**Replies:** 6\
**Last updated:** [August 1, 2016, 1:12am UTC](https://forum.ansible.com/t/assigning-variable-from-jinja-template-evaluation/22173 "2016-08-01T01:12:28Z")

</div>

I am hoping someone would be able to point out what I’m doing wrong here- I have a jinja template: {% if subnet == ‘subnet-ab1’ %} subnet1 {% elif subnet == "subnetab2’ %} subnet2 {% elif subnet == "subnetab3’ %} …

---

## [Convert Json to Yaml](https://forum.ansible.com/t/convert-json-to-yaml/22174)

<div class="topic-metadata">

**Author:** [@GBANE\_FETIGUE](https://forum.ansible.com/u/GBANE_FETIGUE)\
**Replies:** 1\
**Last updated:** [July 31, 2016, 1:15pm UTC](https://forum.ansible.com/t/convert-json-to-yaml/22174 "2016-07-31T13:15:46Z")

</div>

Hi guys, I know this is a little of topic but it’s regarding unusable I have a curl command that i would like to translate in ansible but someway or somehow is not working. could anybody help me ? Here is the curl comma…

[Previous page](https://forum.ansible.com/c/archives/31.md?page=565)

[Next page](https://forum.ansible.com/c/archives/31.md?page=567)
