# Latest

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

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

**Page:** 738

---

## [How to add callback when i use ansible2.0 python api PlaybookCLI()](https://forum.ansible.com/t/how-to-add-callback-when-i-use-ansible2-0-python-api-playbookcli/22208)

<div class="topic-metadata">

**Author:** [@shaolongtan0886](https://forum.ansible.com/u/shaolongtan0886)\
**Replies:** 0\
**Last updated:** [August 4, 2016, 1:54am UTC](https://forum.ansible.com/t/how-to-add-callback-when-i-use-ansible2-0-python-api-playbookcli/22208 "2016-08-04T01:54:56Z")

</div>

Hello everybody, I am writing a python script by Asible2.0 python api. My script work well when I just run a playbook by PlaybookCLI(). Currently, I want to add a callback with running the playbook, but the callback fun…

---

## [Best practice and approach on how to check if the service is started and start if it is not](https://forum.ansible.com/t/best-practice-and-approach-on-how-to-check-if-the-service-is-started-and-start-if-it-is-not/22206)

<div class="topic-metadata">

**Author:** [@wiggler](https://forum.ansible.com/u/wiggler)\
**Replies:** 1\
**Last updated:** [August 4, 2016, 12:25am UTC](https://forum.ansible.com/t/best-practice-and-approach-on-how-to-check-if-the-service-is-started-and-start-if-it-is-not/22206 "2016-08-04T00:25:22Z")

</div>

Hello all, I would like to automate the checking of the services if is it properly chkconfig on and set to on if its off and start. also need to check if the service is on then start if its off in RHEL6. Thanks.

---

## [Performance improvements](https://forum.ansible.com/t/performance-improvements/22207)

<div class="topic-metadata">

**Author:** [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Replies:** 0\
**Last updated:** [August 3, 2016, 9:58pm UTC](https://forum.ansible.com/t/performance-improvements/22207 "2016-08-03T21:58:34Z")

</div>

Hi all, I’ve dedicated this week to begin looking into some of the performance issues people have reported since 2.0 was released, and I have a working branch I’d like some testing against: https://github.com/ansible/an…

---

## [ssh retry functionality (for flaky network responses)](https://forum.ansible.com/t/ssh-retry-functionality-for-flaky-network-responses/22164)

<div class="topic-metadata">

**Author:** [@Jeff\_Richards](https://forum.ansible.com/u/Jeff_Richards)\
**Replies:** 4\
**Last updated:** [August 3, 2016, 7:55pm UTC](https://forum.ansible.com/t/ssh-retry-functionality-for-flaky-network-responses/22164 "2016-08-03T19:55:58Z")

</div>

Hi, Is there any way, in Ansible 1.9.6, of having Ansible retry a failed connection attempt x times at y intervals? We are seeing flaky network behavior when deploying on AWS, with apparently random ssh failures causing…

---

## [Running powershell script with dependencies](https://forum.ansible.com/t/running-powershell-script-with-dependencies/22203)

<div class="topic-metadata">

**Author:** [@Ross\_Jones](https://forum.ansible.com/u/Ross_Jones)\
**Replies:** 1\
**Last updated:** [August 3, 2016, 6:59pm UTC](https://forum.ansible.com/t/running-powershell-script-with-dependencies/22203 "2016-08-03T18:59:23Z")

</div>

Hi all, Is it possible to execute a powershell script which depends on other scripts using the script task? Thanks

---

## [oVirt/RHEV storage management module](https://forum.ansible.com/t/ovirt-rhev-storage-management-module/22205)

<div class="topic-metadata">

**Author:** [@Ryan\_Groten](https://forum.ansible.com/u/Ryan_Groten)\
**Replies:** 0\
**Last updated:** [August 3, 2016, 4:54pm UTC](https://forum.ansible.com/t/ovirt-rhev-storage-management-module/22205 "2016-08-03T16:54:36Z")

</div>

Posted this on the oVirt mailing list but figured there may be some interested parties here as well. I wrote a module for storage management and created a pull request to have it added as an Extra module in Ansible. It c…

---

## [What do you prefer for your components - Roles or playbooks ?](https://forum.ansible.com/t/what-do-you-prefer-for-your-components-roles-or-playbooks/22200)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 3\
**Last updated:** [August 3, 2016, 1:05pm UTC](https://forum.ansible.com/t/what-do-you-prefer-for-your-components-roles-or-playbooks/22200 "2016-08-03T13:05:28Z")

</div>

Roles are reusable, well managed and promotes sharing - this i understand very well. But somehow, i do not like them much, specially in enterprise applications. The application i am working on is a monolith being conver…

---

## [How to define a base\_dir var so you can use {{ base\_dir }}/playbooks etc?](https://forum.ansible.com/t/how-to-define-a-base-dir-var-so-you-can-use-base-dir-playbooks-etc/22184)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 2\
**Last updated:** [August 3, 2016, 12:01pm UTC](https://forum.ansible.com/t/how-to-define-a-base-dir-var-so-you-can-use-base-dir-playbooks-etc/22184 "2016-08-03T12:01:20Z")

</div>

Hi, Ansible 2.1.1.0. Situation: Tim and Bob both deploy servers. Tim checks out the central ansible git repo to /home/tim/ansible while Bob checks it out to /home/bob/ansible. No special ansible.cfg is used by either. …

---

## [Ansible executes task regardless of conditional](https://forum.ansible.com/t/ansible-executes-task-regardless-of-conditional/22181)

<div class="topic-metadata">

**Author:** [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Replies:** 5\
**Last updated:** [August 3, 2016, 11:34am UTC](https://forum.ansible.com/t/ansible-executes-task-regardless-of-conditional/22181 "2016-08-03T11:34:14Z")

</div>

Hi all, I have this weird thing inside a role, hopefully someone can straighten me out: My role is a custom made one, which performs Azure vm deployments, supporting both Linux and Windows. The last steps of the role a…

---

## [How to easily configure DNS and NTP settings on my clients?](https://forum.ansible.com/t/how-to-easily-configure-dns-and-ntp-settings-on-my-clients/22201)

<div class="topic-metadata">

**Author:** [@Jorg\_Kastning](https://forum.ansible.com/u/Jorg_Kastning)\
**Replies:** 0\
**Last updated:** [August 3, 2016, 11:29am UTC](https://forum.ansible.com/t/how-to-easily-configure-dns-and-ntp-settings-on-my-clients/22201 "2016-08-03T11:29:09Z")

</div>

Hello, I’m still new to ansible and have a lot of questions on my mind. Maybe someone could answer two of them. In my environment I have a lot of Red Hat and some SUSE servers. I’d like to use ansible to configure the …

---

## [Has anyone used Ansible to generate a kind of report about certain checks on remote hosts ?](https://forum.ansible.com/t/has-anyone-used-ansible-to-generate-a-kind-of-report-about-certain-checks-on-remote-hosts/22074)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 6\
**Last updated:** [August 3, 2016, 9:49am UTC](https://forum.ansible.com/t/has-anyone-used-ansible-to-generate-a-kind-of-report-about-certain-checks-on-remote-hosts/22074 "2016-08-03T09:49:10Z")

</div>

Hi All, I am trying to prepare Ansible scripts to check remote hosts for certain things like - OS version, free disk space etc. I am able to create tasks for each of this check as Ansible already have a great support fo…

---

## [ProductId and/or Name does not match](https://forum.ansible.com/t/productid-and-or-name-does-not-match/22198)

<div class="topic-metadata">

**Author:** [@Deepak\_Kumar](https://forum.ansible.com/u/Deepak_Kumar)\
**Replies:** 0\
**Last updated:** [August 3, 2016, 7:15am UTC](https://forum.ansible.com/t/productid-and-or-name-does-not-match/22198 "2016-08-03T07:15:13Z")

</div>

Hi, I am trying to install SQL package in target machine. Though i have given the correct product id I am getting the following error. "module\_name": “win\_package”}, “msg”: “Package from D:\\SQL 2014\\SQLEXPR\_x64\_ENU\\SETU…

---

## [Network Modules Parents: as a list](https://forum.ansible.com/t/network-modules-parents-as-a-list/22187)

<div class="topic-metadata">

**Author:** [@emhgully](https://forum.ansible.com/u/emhgully)\
**Replies:** 1\
**Last updated:** [August 3, 2016, 3:05am UTC](https://forum.ansible.com/t/network-modules-parents-as-a-list/22187 "2016-08-03T03:05:48Z")

</div>

Hello, I am trying to setup a file as shown below. Where the command “switchport access vlan 10” is required on two separate parts of the configuration “GigabitEthernet1/0/2” and “GigabitEthernet1/0/30”. However it only…

---

## [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/…

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

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